Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-23-2005, 05:22 AM   #1
Registered: Jan 2003
Posts: 36

Rep: Reputation: 15
Question 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 --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.
Old 03-23-2005, 06:37 AM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

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

Last edited by fr_laz; 03-23-2005 at 06:39 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
iptables on router: simple port forwarding not working hamish Linux - Networking 1 10-27-2005 06:06 AM
IPtables port-forwarding not working. Ratclaws Linux - Networking 3 04-12-2005 08:14 AM
Port forwarding with iptables is not working?!! philipina Linux - Networking 1 04-03-2004 03:18 PM
iptables and port forwarding jamesws Linux - Networking 0 02-10-2002 06:57 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration