* [LARTC] Little question about imq device
@ 2004-08-15 17:03 Marcin Sura
2004-08-15 18:38 ` Daniel Cabezas
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Sura @ 2004-08-15 17:03 UTC (permalink / raw)
To: lartc
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?
--
Pozdrawiam
Marcin mailto:slacklist@op.pl
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Little question about imq device
2004-08-15 17:03 [LARTC] Little question about imq device Marcin Sura
@ 2004-08-15 18:38 ` Daniel Cabezas
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Cabezas @ 2004-08-15 18:38 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-15 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 17:03 [LARTC] Little question about imq device Marcin Sura
2004-08-15 18:38 ` Daniel Cabezas
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.