From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Date: Wed, 03 Apr 2002 16:40:18 +0000 Subject: Re: [LARTC] Policy Routing Help Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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 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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/