From: bert hubert <ahu@ds9a.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] shaping/routing
Date: Wed, 19 Dec 2001 11:41:40 +0000 [thread overview]
Message-ID: <marc-lartc-100876219631536@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100874938007273@msgid-missing>
On Wed, Dec 19, 2001 at 02:06:01AM -0600, Daniel Wittenberg wrote:
> I've been doing ipchains/tables firewalls for quite a while now, but I'd
> like to be able to do some bandwith shaping, and src-address based
> routing to specific net connections. From what I've read so far, tc/ip
> can do that, correct? Here's simply what I've got: Linux firewall,
> 2.4.x, iptables, MASQ, about 10 internal subnets all going out as 1 IP
> now. I have 1 T1 now, 2 more on the way. I'd like to say internal
> subnets 1-5 go out T1 #1 6-7 go out T1 #2, etc. I'd also like to be
> able to say that subnets 1-5 can only have 50% of that T1. I know these
> are 2 seperate questions, but that's where I would like to be. Can
> someone point me in the direction of some good docs/examples on how to
> set this up? What I'm also unclear about, is if I'm using ip rules to
You need:
- to mark traffic coming in from different subnets
- route based on that mark
You can achieve the first with iptables in the mangle/PREROUTING target with
fwmark.
The second can be done with 'ip rule add' and 'ip route add .. table x'.
> reroute traffic to specific out-going routers, do I still need MASQ, and
> what role does it play?
MASQ leaves the fwmark alone, so it doesn't interfere.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next prev parent reply other threads:[~2001-12-19 11:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-19 8:06 [LARTC] shaping/routing Daniel Wittenberg
2001-12-19 11:41 ` bert hubert [this message]
2001-12-19 18:07 ` Jerome PETAZZONI
2001-12-19 23:49 ` bert hubert
2001-12-20 5:46 ` Daniel Wittenberg
2001-12-20 5:55 ` Jim Fleming
2001-12-20 6:37 ` Daniel Wittenberg
2001-12-20 10:34 ` Jerome Petazzoni
2001-12-20 10:43 ` Jerome Petazzoni
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-100876219631536@msgid-missing \
--to=ahu@ds9a.nl \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox