Hello David.

Thanks for your help. It works nicely.

David Ford wrote:
> Get the 'ip' tool and use it to specify the src.
> ftp://ftp.inr.ac.ru/pub/ip-routing/
> a 'howto' of sorts is at http://dawn.elte.hu/~endre/ip-cref/

/sbin/ip route add default via 192.168.0.1 src x.x.x.1
causes the kernel to do what i need.

> Michael Marxmeier wrote:
> > I setup a linux box to work as a router/fw. It has 3 nw cards
> > which are connected to different networks. To connect to the
> > cisco router (provided by the ISP) we used a rfc1597 address
> > space.
> >
> >               ^ ISP
> >               |
> >           ---------
> >           | Cisco |
> >           ---------
> >               | 192.168.0.1
> >               |
> >               | 192.168.0.2
> >           ---------
> >           | Linux | x.x.x.1
> >           |       |-------- other boxes x.x.x.2 .. 10
> >           ---------
> >               |
> >               |
> >           Other boxes (private addresses)
> >
> > The x.x.x.x addresses are "official" addresses.
> >
> > Problem is that a package originating on the Linux gw and going
> > to the Cisco has a src address of 192.168.0.2 which of course
> > is dropped. The Cisco cannot easily be re-configured.
> > Is there any sane way to force the src address of packages
> > originating on the linux gw to a particular interface?


Michael

-- 
Michael Marxmeier           Marxmeier Software AG
E-Mail: [EMAIL PROTECTED]      Besenbruchstrasse 9
Phone : +49 202 2431440     42285 Wuppertal, Germany
Fax   : +49 202 2431420     http://www.msede.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to