OpenVZ Forum


Home » General » Support » iptables: No chain/target/match by that name while setting IP Rotation (iptables: No chain/target/match by that name while setting IP Rotation)
icon1.gif  iptables: No chain/target/match by that name while setting IP Rotation [message #51947] Thu, 26 March 2015 17:19
jeetenfriend@gmail.com is currently offline  jeetenfriend@gmail.com
Messages: 1
Registered: March 2015
Location: India
Junior Member

I want to set IP Rotation using iptables so I am using below code. 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

Please help me to solve this. I am using Centos. Its Virtualization Type is OpenVZ
Previous Topic: OpenVZ veth and few ips in CT
Next Topic: Internal ant external ip
Goto Forum:
  


Current Time: Sat Apr 27 12:15:28 GMT 2024

Total time taken to generate the page: 0.02383 seconds