Download your favorite Linux distribution at LQ ISO.
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 08-03-2004, 05:39 AM   #1
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
port forwarding problem

im trying to get bit torrent to work through my firewall.

im using the command :

iptables -t nat -I PREROUTING -p tcp --dport 6881:6889 -j DNAT --to-destination

but i get an error...

iptables v1.2.10: can't initialize iptables table `-nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

the table does exist as my firewall script initalises it with...

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

and its also listed in lsmod

iptable_nat 15438 1 (autoclean) [ipt_MASQUERADE]

any ideas as to where im going wrong? im kinda new to iptables and such.

thanks alot.
Old 08-03-2004, 05:43 AM   #2
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Original Poster
Rep: Reputation: 30
i fixed it.

sorry :/
Old 08-03-2004, 07:10 AM   #3
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 623

Rep: Reputation: 31
how to please

I want to use , on suse 9.1 , same thing on Redhat, a forwarding ; so one card has an addresse connected to a subnet another card is connected to another subnet,
I flush the iptables : iptables -F

echo "1" > /proc/sys/net/ipv4/ip_forward ,

but I could not see the second subnet from the first subnet

Is there other thing to do , to see the other subnet?
I noticed also that the card is declared with ipv6, when I ran the ifconfig
perhaps a rule to send from one card to another ?
Old 08-13-2004, 08:13 PM   #4
Registered: May 2004
Distribution: Slackware 10
Posts: 63

Rep: Reputation: 15
Originally posted by bruj3w
i fixed it.

sorry :/
Well if you've fixed it, then post up the solution, so others can learn.


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
Problem with Port Forwarding Zorrocaesar Linux - Networking 1 10-25-2005 07:18 AM
Problem with Port forwarding :( aronnok Linux - Networking 2 04-06-2005 02:16 PM
port forwarding problem syrtsardo Linux - Networking 6 07-19-2004 01:50 AM
port forwarding problem roueleader Linux - Newbie 9 06-11-2002 04:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:55 AM.

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