Try something like this
# modprobe xt_statistic
# iptables -t nat -I PREROUTING -p tcp --dport 80 -m statistic --mode nth --every 3 --packet 0 -j DNA... [by ALex_hha]
Hei! I have two webservers and I need to balance packets between them. I want every other packet to be be serve by the other webserver, but for some reason this doesn't seem to work.
I want to set IP Rotation using iptables so I am using below code.