Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] multiple ingresses
@ 2002-05-24 13:43 Alexander Brill
  0 siblings, 0 replies; only message in thread
From: Alexander Brill @ 2002-05-24 13:43 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

Is it possible to have multiple filters around an ingress so that you
can police your downloads more specific. What I'm trying to achieve is
to have all my ftp-traffic limited to 1024kbit on downloads. I included
some commands below so that you might better understand my thoughts on
the matter.

tc qdisc add dev eth0 root handle 1: htb default 2
tc class add dev eth0 parent 1: classid 1:1 htb rate 2048kbit ceil
2048kbit prio 1
tc class add dev eth0 parent 1:1 classid 1:2 htb prio 2 rate 1kbit ceil
2048kbit
tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src
0.0.0.0/0 police rate 2048kbit burst 47.0kb drop flowid 1:
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 1024kbit ceil
1024kbit prio 1
tc qdisc add dev eth0 parent 1:3 handle 3 sfq perturb 10
tc filter add dev eth0 parent 1:3 protocol ip u32 match ip dport 21
0xffff flowid 1:3
tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src
0.0.0.0/0 police rate 1024kbit burst 23.5kb drop flowid 1:3


-- 
Alexander Brill <kiowa@project23.no>
http://www.project23.no
PGP-key: http://alexb.egil.org/key.pub

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-24 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 13:43 [LARTC] multiple ingresses Alexander Brill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox