> I am running a linux box (IP a.b.c.76) attached to a local subnet at my
> university a.b.c.xxx with gateway a.b.c.1 . This is working fine. To
> enhance download speed I have also an DSL router attached. It is also
> hooked up one the network a.b.c.xxx and has IP a.b.c.88. I have set up
> routing to use this DSL router as the default gateway. So far so good.
I will assume that these IPs are valid public static IPs, and that the
uni gw has a permanent connection to the net. - Now, how does the DSL
router connect to the internet. Is it via Your local ISP? - I think so.
Quote:> The trouble starts when I want to connect to my computer from outside, say
> with a HTTP or ssh request. The request gets routed via a.b.c.1 into my
> computer a.b.c.76 but the answer packets are sent out via the default
> gateway a.b.c.88, namely the DSL router, and get lost.
> So how do I convince the linux kernel to send the answer via a.b.c.1 ?
You needn't do that. - You have to ensure that the sender address of
the reply packet is that of Your .76 box. Most DSL routers that connect
to an ISP (that will probably assign dynamic IP addresses) do some
NATting on those packets; in this case, SNAT to that dynamically
assigned IP from the ISPs address range. Just make sure that this does
not take place. Apart from that, You needn't worry about how the packets
will be routed between Your .76 box and the outside world.
One note on Your setup design...: Perhaps You want to think over that
as a whole...?
Cheers, Jack. Greetings go to Hannover, City of CeBIT in March, 2003.
--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...