LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-20-2003, 12:43 PM   #1
mortsahl
LQ Newbie
 
Registered: Aug 2003
Location: Littleton, CO
Distribution: Red Hat 9
Posts: 8

Rep: Reputation: 0
Help with iptables


I'm a newbie and confused! Confusion is my normal state, not necessarily become I'm a newbie.

On my machine (Red Hat 9) I executed the following ...

[root@www bin]# /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

Everything worked as intended.

On a friend's machine, running Red Hat 7.3, I did the same, here's what I got ...

[root@www bin]# /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables v1.2.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

[root@www bin]# rpm -q iptables
iptables-1.2.5-3

How do I get it to work on his machine?

Thanks
 
Old 08-20-2003, 03:01 PM   #2
kbr
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: Debian Woody, SuSE8.2
Posts: 3

Rep: Reputation: 0
Maybe you need to build "iptable_nat" in your kernel or as a module. Try "modprobe iptable_net".
Loaded modules you can show with "lsmod".

Klaus!
 
  


Reply



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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:56 PM.

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