On Tue, Oct 30, 2001 at 05:33:22AM +1100, Howard Lowndes wrote: > I'm wanting to set up a multi-homed Internet gateway so that traffic > initiated from the intranet is masqueraded via connection A, ie. the > default route; traffic initiated from the Internet targetted at connection > A is responded to on that same connection; but traffic initiated from the > Internet targetted at connection B is responded to on that connection and > not on connection A.
There are better ways of doing this, but here's a simple one for 2.4 kernels. Ignore connection B entirely, other than interface setup, configure routing to function happily for connection A. Then create a separate routing table for connection B that disregards connection A (I'm presuming that sending traffic on A with B's address is never correct). ip route add default via gateway-on-B table 2 Then arrange for traffic with a source address of B to use that routing table. ip rule add from B.add.re.ss/32 lookup 2 And that should do it. m. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
