iptables with nat inside guest [message #22437] |
Sun, 28 October 2007 21:42 |
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
|
|
|