From: "Daniel Cabezas" <daniel@seriousworks.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Little question about imq device
Date: Sun, 15 Aug 2004 18:38:39 +0000 [thread overview]
Message-ID: <20040815183608.M49742@seriousworks.net> (raw)
In-Reply-To: <714155614.20040815190358@op.pl>
On Sun, 15 Aug 2004 19:03:58 +0200, Marcin Sura wrote
> Witam
>
> I've found many examples where packets are redirected to IMQ device
> in PREROUTING chain for ingress traffic shaping purposes.
>
> But is there any sense in redirecting packets to IMQ in FORWARD
> chain also for ingress traffic shaping purposes?
Yes, I think, imagine something like this. Imagine you are the gateway of a
whole class C , with ip 192.168.0.1 then :
tc qdisc add dev imq0 handle 1: root htb default 1
tc class add dev imq0 parent 1: classid 1:1 htb rate 64kbit
tc qdisc add dev imq0 parent 1:1 handle 2 sfq
iptables -t mangle -A FORWARD -i eth0 -d 192.168.0.X -j IMQ
would prevent traffic coming from an outside network attached to the gw going
to the 192.168.0.x host.
Daniel . ------- daniel_at_seriousworks.net
/Cabezas SeriousWorks Solutions, SCP
______/ Barcelona, Spain
www: http://www.seriousworks.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2004-08-15 18:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-15 17:03 [LARTC] Little question about imq device Marcin Sura
2004-08-15 18:38 ` Daniel Cabezas [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=20040815183608.M49742@seriousworks.net \
--to=daniel@seriousworks.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.