From: Rokas <rokasz@centras.lt>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB shaping on the router with multiple LAN interfaces
Date: Sun, 08 Feb 2004 12:19:08 +0000 [thread overview]
Message-ID: <495796951.20040208141908@centras.lt> (raw)
Hello!
I have been using HTB+SFQ shaping successfully for a LINUX router with
one internet connection and one LAN interface.
I put htb qdisc and htb classes on eth1 (Internet) interface to shape
outgoing traffic. Then I mark the packets I need with IPTABLES -t
mangle POSTROUTING and put them into appropriate HTB classes of eth1
interface.
For incoming traffic (download) I put htb qdisc and htb classes on
eth0 (LAN) interface. Then I also mark the packets with IPTABLES and
put them into appropriate HTB classes of eth0 interface.
Such configuration works rather well for me, and I can filter and
shape traffic "looking" at a LAN user IP or at a port the packet
travels.
But now I need to add some more LAN interfaces and also do NAT on
them. I need to shape traffic for all LAN users, so how should I
control incoming (download) traffic ? Should I add htb qdiscs on all
LAN interfaces and do shaping ? But what about "borrowing" download
traffic among LAN interfaces ? I have heard something about IMQ device
and read some information about it, but I don't really understand how
could I use it in my situation. Is IMQ working stable ? Perhaps I
could solve my problem without completely rewriting my scripts ?
Maybe it would be easier to build another router with several LAN
cards and connect it to my working router leaving the same
configuration ?
-----------------------------------------------------
|
| eth1 (INET)
------------
| NAT + HTB|
| | <--------- Static routes and NAT for
------------ Networks NET1, NET2, NET3...
| eth0 (LAN1)
|
|
| eth0 (LAN1)
----------------------
| router without NAT |
| |
----------------------
|eth1 |eth2 |eth3
| | |
| | |
NET1 NET2 NET3
-------------------------------------------------------
I would be very grateful for your suggestions and comments.
Rokas Zakarevicius
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2004-02-08 12:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=495796951.20040208141908@centras.lt \
--to=rokasz@centras.lt \
--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