Did you know LQ has a Linux Hardware Compatibility List?
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 05-07-2007, 05:01 AM   #1
LQ Newbie
Registered: Jan 2007
Posts: 20

Rep: Reputation: 0
Packet Forwarding from eth0 to eth1 isn't working

Hi Folks,

I have a FC6 machine, kernel 2.6.18. I'm trying to forward packets from my eth0 interface to eth1 interface. It is not working. I have disabled the firewall as well.

Eth0 is on the network : , netmask -
Eth1 is on the network :, netmask -

I have done the following settings in my machine:

1. Turned ON the packet forwarding by setting net.ipv4.ip_forward to 1 in the /etc/sysctl.conf file.

2. Added static routes to the file static-routes in /etc/sysconfig. The contents of this file are as under:
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0
any: host dev eth0

The same configuration works on my other FC2 machine, kernel 2.6.5

Please suggest what's wrong with the FC6 machine. Is there any more setting to be done in the FC6 box?

Thanks and regards,
Old 05-07-2007, 05:24 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
When I routed my desktop through my laptop in order to have access to my wireless router, I didn't add host routes like you are doing. However, I found out that I needed to modprobe ip_conntrack before it would work.


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
forwarding a specific port from eth0 to eth1 zovres Linux - Networking 2 05-02-2006 11:01 PM
port forwarding from eth0 to eth1 ? overproof Linux - Networking 7 05-16-2005 03:48 AM
iptables: forwarding SSH connection: eth0 to eth1 hamish Linux - Networking 12 01-14-2005 04:07 PM
IP forwarding from eth0 to eth1 musicman_ace Linux - Networking 5 08-01-2004 05:39 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM

All times are GMT -5. The time now is 08:27 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