All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Routing with two net connections
@ 2001-05-20  1:31 bob
  0 siblings, 0 replies; only message in thread
From: bob @ 2001-05-20  1:31 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

Hello,

I've got a question about routing under the 2.2.15 kernel.

I have two connections to the internet, say 1.2.3.4 (gateway 1.2.3.1) and
20.20.20.20 (gateway 20.20.20.1).  

Currently, it seems I can only set one "default" gateway.  So if traffic 
comes into 1.2.3.4, and my default gw is 20.20.20.1, all the return traffic
goes out 20.20.20.1.

The weird thing is that if I set my default gw to be 20.20.20.1, pings to 
20.20.20.20 work fine, and pings to 1.2.3.4 work ok (the return goes through
20.20.20.1).  However, if I have my gw set to 1.2.3.1, I can ping 1.2.3.4 ok,
but not 20.20.20.20.  I see the return ping from 20.20.20.20 going out to
the 1.2.3.4 interface, but it never seems to get back.  Could this be some sort
of ISP configuration issue?  In my case, the 1.2.3.4 line goes to a dsl router.

Can Linux's routing be configured such that incoming traffic (http, mail, etc..) 
on 1.2.3.4 returns back thru 1.2.3.1, and traffic coming into 20.20.20.20
returns back thru its same interface (20.20.20.1)?

Bob


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-20  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-20  1:31 [LARTC] Routing with two net connections bob

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.