I followed this guide
IPTABLES inside container guide @ openvz.org
I'm running Debian 7 Wheezy x64 which was dist-updgrade'd before installing OpenVZ. The container is Debian7 x64 minimal.
It's working really well except now I need to have some IPTABLES rules inside one of my containers (VM's).
I tried to load the module on the host node like this:
root@baremetal-openvz-hostnode:~# modprobe xt_tcpudp
And got this error:
libkmod: ERROR ../libkmod/libkmod.c:505 kmod_lookup_alias_from_builtin_file: could not open builtin file '/lib/modules/2.6.32-openvz-042stab093.5-amd64/modules.builtin.bin'
FATAL: Module xt_tcpudp not found.
root@baremetal-openvz-hostnode:~# ls /lib/modules/
uname -r/kernel/net/netfilter | grep xt_tcp
xt_tcpmss.ko
The other two modules mentioned in the guide (linked above) loaded without issues.
The reason I need the xt_tcpudp module
I'm trying to set these IPTABLES rules inside the container:
iptables -A OUTPUT -o ppp0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp --sport 80 -m state --state ESTABLISHED -j ACCEPT
I get these errors (the above mentioned guide says they occur because the kernel module is missing)
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
===========