Networking Forums

Networking Forums > Computer Networking > Linux Networking > Routing problem with linux

Reply
Thread Tools Display Modes

Routing problem with linux

 
 
Christian Vorholt
Guest
Posts: n/a

 
      12-02-2003, 12:40 PM
hi folks!
I've got a strange routing problem between my networks.
Here's the situation:

----------
Linux box
with iptables v1.2.7a
eth0 192.168.2.1/255.255.255.0
eth1 182.168.0.1/255.255.255.0 (ADSL connection, masquerading)
eth2 192.168.3.1/255.255.255.0
-----------

eth1 points to the internet.
At the moment it is possible to reach the internet from eth0 and eth2.

The problem is:
You can ping hosts on eth0 and eth2 on the linux box,
but no ping is possible from a host on eth0 to a host on eth2.

Please help!

--
--------------------------------
In the end, all the world's wealth
and a thousand armies are no match
for the strength and decency of the
human spirit
--------------------------------


 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      12-03-2003, 01:40 PM
On Tue, 2 Dec 2003 14:40:21 +0100, Christian Vorholt <(E-Mail Removed)> wrote:
> hi folks!
> I've got a strange routing problem between my networks.
> Here's the situation:
>
> ----------
> Linux box
> with iptables v1.2.7a
> eth0 192.168.2.1/255.255.255.0
> eth1 182.168.0.1/255.255.255.0 (ADSL connection, masquerading)
> eth2 192.168.3.1/255.255.255.0
> -----------
>
> eth1 points to the internet.
> At the moment it is possible to reach the internet from eth0 and eth2.
>
> The problem is:
> You can ping hosts on eth0 and eth2 on the linux box,
> but no ping is possible from a host on eth0 to a host on eth2.


You need to insert (-I) rules in your forwarding chain to ALLOW forwarding
both ways between 192.168.2.1/24 and 192.168.3.1/24 networks (before any
masquerading rules).

If you are doing pppoe, your IP on eth0 is not used and should probably be
in one of the other private network ranges (10.x.x.x or 172.16.x.x) just
so it is not confused with your LANs (182.168.0.1 must be a slip of the
fingers).

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux ipv6 routing problem ayqazi Linux Networking 7 10-29-2007 08:20 PM
Linux subnet routing problem. rickpratt@gmail.com Linux Networking 1 07-11-2007 12:44 PM
routing problem of Linux box CS Linux Networking 1 05-09-2006 08:47 PM
Linux Gateway routing problem KeesS Linux Networking 9 08-19-2005 09:08 AM
Linux Firewall / Routing Problem Idris Saliu Linux Networking 2 02-14-2004 05:13 PM



1 2 3 4 5 6 7 8 9 10 11