[LARTC] 2 gateways - routing based in source address
Jorge Evangelista
netsecuredata at gmail.com
Tue May 29 06:32:25 CEST 2007
Hi Pablo,
You have to configure your box linux similar to:
ip rule add from 10.20.0.0/24 to 0.0.0.0/0 table 100
ip route add default via 192.168.0.254 table 100
ip rule add from 10.30.0.0/24 to 0.0.0.0/0 table 200
ip route add default via 192.168.1.254 table 200
On 5/28/07, Marek Kierdelewicz <marek at piasta.pl> wrote:
> >Hello,
>
>
> >I don't have IP on this ranges in my linux box. There is another router
> >under my linux box in my topology. But this customers arrives in my
> >eth2 interface. I make SNAT fort his networks in my linux box.
> >...
>
> What you need is simple source address based policy routing as
> described here:
> http://lartc.org/howto/lartc.rpdb.html
>
> Example on lartc howto is pretty straightforward. Many inpolite
> people would even say "RTFM".
>
> pozdrawiam,
> Marek Kierdelewicz
> KoBa ISP
> _______________________________________________
> LARTC mailing list
> LARTC at mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
--
"The network is the computer"
More information about the LARTC
mailing list