OpenVZ - FIX FATAL: Module ip tables not found
Revision as of 20:38, 12 June 2014 by Ndi (talk | contribs) (Ndi moved page OpenVZ - FIX FATAL: Module ip tables not found. to OpenVZ - FIX FATAL: Module ip tables not found)
If you got the next error while trying to configure NAT using iptables inside OpenVZ VPS:
[root@vpscontainer /]# iptables -t nat -nvL FATAL: Module ip_tables not found. iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
And iptables nat modules are enabled on the server node you should remove the next line from the <container_ID>.conf file:
NETFILTER="stateless"
Reboot container after.
Also this could be fixed using vzctl:
vzctl set <container_ID> --netfilter full --save
""