Re: 2 gateways - routing based in source address

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

First of all, thank you for your help.

 

And how can i put all the traffic comming from anywhere with destination port 80 or 443 to go out by the gateway 192.168.1.254, while all the rest going out by 192.168.0.254 ?

 

Im trying here different ways with ToS but it isn’t working. Thank you for any Tip.

 

Regards

 

>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

> 

> 

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux