Can't use IPTables inside a VE - still broken [message #11904] |
Wed, 11 April 2007 09:52 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
jarcher
Messages: 91 Registered: August 2006 Location: Smithfield, Rhode Island
|
Member |
|
|
Hi All...
I'm running Debian Etch AMD64 with kernel 2.6.18. I am unable to use IPTables inside a VPS. IPTables seems to work fine on the HN. If I try to use IPTables inside a VPS I see this:
Quote: |
vps1001:/# iptables -t nat -L -v --line-number
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.
|
I looked at the wiki entry for using NAT with VE for private IPs here:
http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs
But it was not much help.
Is it possible to use IPTables inside a VPS and if so, what am I missing? Thanks.
[Updated on: Wed, 11 April 2007 21:40] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Can't use IPTables inside a VE, here iptable_nat [message #12603 is a reply to message #11919] |
Thu, 03 May 2007 23:26 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
chase
Messages: 4 Registered: May 2007
|
Junior Member |
|
|
jarcher wrote on Wed, 11 April 2007 17:41 | Well, as it turns out, this worked to get the list of chains to work, but I am unable to add rules. Here is the error I get when I try:
# iptables -t nat -A PREROUTING -d 72.46.65.43 -p tcp --dport 43 -j REDIRECT --to-ports 10043
iptables: No chain/target/match by that name
|
Not sure (worked for me) but I think if you want to do REDIRECT you need to make sure that iptables module is loaded. Edit:
/etc/vz/vz.conf
IPTABLES="ipt_REDIRECT ....."
/etc/sysconfig/iptables-config
IPTABLES_MODULES="ipt_REDIRECT ....."
After I did that I could run my rule of
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 2525 -j REDIRECT --to-ports 25
|
|
|