From: Christoph Georgi <christoph.georgi@web.de>
To: ro0ot <ro0ot@phreaker.net>
Cc: Netfilter list <netfilter@lists.netfilter.org>
Subject: Re: Two link adsl on the same server
Date: Wed, 11 May 2005 19:22:07 +1200 [thread overview]
Message-ID: <4281B29F.4090302@web.de> (raw)
In-Reply-To: <4280EA95.8020306@phreaker.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I don't quite get, why this has to be made so "complicated". I have two
uplinks and do the following:
Mark the traffic according to the uplink that I want to use
* no mark -> default/non-priority traffic
* -j MARK 1 for priority traffic (over the fast line, usually ISP 1)
* -j MARK 2 for traffic always over ISP 1
* -j MARK 3 for traffic always over ISP 2
Accordingly I have four routing tables:
* 201 for priority traffic just containing
~ 'default via <gateway of isp 1> dev eth0
* 202 for traffic static over ISP 1
~ 'default via <gateway of isp 1> dev eth0
* 203 for traffic static over ISP 2
~ 'defualt via <gateway of isp 2> dev ppp0
* default routing table (254)
~ after all the "strange" entries
~ 'default via <gateway of isp 2> dev ppp0
I have to SNAT the traffic that is routed via the priority table (201)
and the 202 table, as the kernel uses the IP of the ISP in the default
routing table (254) as source, and I have to disable rp_filters. No more
fancy routing stuff set up.. And everything works fine.
Am I missing an important point?
thanks
.christoph
ro0ot wrote:
| Below is only examples: -
|
[...]
- --
Christoph Georgi
- -----------------------------
email. christoph.georgi@web.de
fon. +64 (0)9 815 8259
registered linux user #380268
ubuntu 5.04 (ubuntu.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCgbJ/gQyJJUB4UhwRAgZgAKCDhqb6b/uBlALc8JNdhfnEe69aQwCg7QS6
HQmCzmKJMLTvnQ7UanmYicA=
=t3Ur
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2005-05-11 7:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-10 16:32 Two link adsl on the same server Sebastião Antônio Campos (GWA)
2005-05-10 17:08 ` ro0ot
2005-05-10 23:58 ` Alexander Samad
2005-05-11 14:46 ` ro0ot
2005-05-11 5:37 ` Sebastião Antônio Campos (GWA)
2005-05-11 7:22 ` Christoph Georgi [this message]
2005-05-10 17:30 ` Eduardo Spremolla
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=4281B29F.4090302@web.de \
--to=christoph.georgi@web.de \
--cc=netfilter@lists.netfilter.org \
--cc=ro0ot@phreaker.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox