I want to set
IP Rotation
usingiptables
so I am using below code.My server Virtualization Type is
OpenVZ
.My server provider has enabled all the options then also don’t know what is the wrong, It is showing error
iptables: No chain/target/match by that name
.iptables -t nat -I POSTROUTING -m state --state NEW -p tcp --dport 25 -o venet0 -m statistic --mode nth --every 5 --packet 0 -j SNAT --to-source x.x.x.1 iptables -t nat -I POSTROUTING -m state --state NEW -p tcp --dport 25 -o venet0 -m statistic --mode nth --every 5 --packet 0 -j SNAT --to-source x.x.x.2 iptables -t nat -I POSTROUTING -m state --state NEW -p tcp --dport 25 -o venet0 -m statistic --mode nth --every 5 --packet 0 -j SNAT --to-source x.x.x.3
They are also ready to enable my needed options so if need any specific option to enable then please tell me.
Or is there any other problem ??? Please help me to solve this.
I found similar question here : Can’t resolve issue: iptables: No chain/target/match by that name, but I can find any specific answer there like how to solve it with
OpenVZ
. So, I have created new question for attention.
Answer
i think you are missing some kernel module in your openvz container, because if I use “iptables -t nat -I POSTROUTING -m state --state NEW -p tcp --dport 25 -o venet0 -m statistic --mode nth --every 5 --packet 0 -j SNAT --to-source 1.1.1.2
” in my linux workstation it works
Maybe the missing modules is "xt_statistic"
Attribution
Source : Link , Question Author : Jeeten Parmar , Answer Author : c4f4t0r