From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Policy Routing Help
Date: Wed, 03 Apr 2002 16:40:18 +0000 [thread overview]
Message-ID: <marc-lartc-101785209813485@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101768403719512@msgid-missing>
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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2002-04-03 16:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-01 17:45 [LARTC] Policy Routing Help russ
2002-04-02 8:31 ` Arthur van Leeuwen
2002-04-03 16:40 ` Patrick McHardy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101785209813485@msgid-missing \
--to=kaber@trash.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.