[LARTC] Policy Routing Help

Linux Advanced Routing and Traffic Control

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

 



On Mon, 1 Apr 2002 russ@essentialmix.ca wrote:

> Hopefully everyone can interperet my diagram.  Anyhow, I have an FTP 
> server running off the Linux Box.  The DNS resolves to Eth0 which is the 
> NIC attached to the Cable modem provider and the default route is set to 
> the Cable next-hop.  Eth1 is attached to My Network.  What I would like to 
> happen is that all incoming FTP traffic to Eth0 will always return out 
> Eth0 through the Cable ISP.  Any other traffic will take the DSL provider 
> via a default route to the DSL next-hop

add a new table named cable.out
ip rule add from <eth0-ip> lookup cable.out
ip route add default via x.x.x.x dev eth0 table cable.out
ip route add default via y.y.y.y dev eth1

bye patrick



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