VPS OS: CentOS 6
I added below lines in the "/etc/sysconfig/iptables"
Code:
-A INPUT -p udp --dport 500 -j ACCEPT
-A INPUT -p udp --dport 4500 -j ACCEPT
-t nat -A POSTROUTING -s 10.12.0.0/24 -o eth0 -j MASQUERADE
-A FORWARD -s 10.12.0.0/24 -j ACCEPT
Then the command "service iptables restart" said:
iptables: Setting chains to policy ACCEPT: security raw nat[ OK ]filter
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: iptables-restore: line 3 failed
[FAILED]It seem that the POSTROUTING line encountered errors.
Would you please help me check this issue and give me some suggestion on it?