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  |
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
|
|
|