iptables port forwarding not working!
I am getting the following error when I run the iptables rule below.
[root@vps07 cpins]# iptables -t nat -A PREROUTING -i eth0 -p tcp -d shell.somedomain.com --dport 443 -j REDIRECT --to-port 22 iptables v1.2.8: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. What's wrong? My support company (Exovian) says that I need to create the table "nat". I however thing the tables are there by defualt, since that's how iptables work! Well, so what do I tell my support company (they sold me thier VPS). I believe I have been given a box with broken iptables. Sigh! Please help. |
Hi,
if iptables works, then nat should be supported. you should check wether the nat support is enabled in your kernel : in 2.6.9 kernel, there are 2 options that are needed Reject target support Full NAT did you try a more simple rule, such as : iptables -t nat -A PREROUTING -j ACCEPT the rule itself is useless, but this will validate that nat table is working.... |
All times are GMT -5. The time now is 10:20 AM. |