All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] limit ftp bandwidth
@ 2002-04-15 20:05 Omar Armas
  2002-04-16  8:14 ` Stef Coene
  2002-04-16 11:42 ` Patrick McHardy
  0 siblings, 2 replies; 3+ messages in thread
From: Omar Armas @ 2002-04-15 20:05 UTC (permalink / raw)
  To: lartc


I want to limit ftp bandwith to 128Kb. In a RH 7.2 box I have:

eth0: 200.39.186.1
eth1: 192.168.1.1

I use these rules:


tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000
tc class add dev eth0 parent 10:0 classid 10:1282 cbq bandwidth 10Mbit
rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000
bounded
tc qdisc add dev eth0 parent 10:1282 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip
dport 21 0xffff flowid 10:1282

But users accesing ftp from 192.168.1.0/24 are allowed more that 128K,
any idea aboout how to solve it?
Or do you have any other solution for this?

Thanks,

Omar




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-16 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-15 20:05 [LARTC] limit ftp bandwidth Omar Armas
2002-04-16  8:14 ` Stef Coene
2002-04-16 11:42 ` Patrick McHardy

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.