OpenVZ Forum


Home » General » Support » iptables with nat inside guest
iptables with nat inside guest [message #22437] Sun, 28 October 2007 21:42 Go to previous message
tpso
Messages: 19
Registered: September 2006
Location: Denmark
Junior Member
Hi,

I trying to use iptables inside a guest, to do some port-forwarding.

The host has a lot of ip-tables running to separate access from the
different guests, so all iptables kernel modules should be loaded.

When I run : iptables -L
inside the guest it shows empty chain - which I expect.

When I try to run the following command:

/sbin/iptables -t nat -A PREROUTING -p tcp -i venet0 -d
192.168.217.200 --dport 25 -j DNAT --to 192.168.217.200:1025


it fails with an error :

iptables v1.2.11: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Any hint's on what is wrong?

Host is running: vmlinuz-2.6.18-8.1.4.el5.028stab035
guest is a contos 5.

regards
Thomas
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ blanks out in CentOS 4.5
Next Topic: network issue
Goto Forum:
  


Current Time: Mon Aug 12 07:28:45 GMT 2024

Total time taken to generate the page: 0.02845 seconds