I have ISDN connection to Internet that I share with few other offices
at work.
Sometimes someone starts downloading big files, and all of the other
users can not do anything.
How can I put some speed limit to such users? Say 1/3 of a full speed,
or 2000 bytes/sec or something?
I found something on the Internet, and tried to adapt for my situation,
but no luck. Hire:
/sbin/tc class add dev eth0 parent 1: classid 1:1 htb rate 16kbps\
ceil 16kbps
/sbin/tc class add dev eth0 parent 1:1 classid 1:10 htb rate 1kbps\
ceil 1kbps
/sbin/tc class add dev eth0 parent 1:1 classid 1:11 htb rate 1kbps\
ceil 1kbps
/sbin/tc class add dev eth0 parent 1:1 classid 1:12 htb rate 1kbps\
ceil 1kbps
/sbin/tc class add dev eth0 parent 1:1 classid 1:13 htb rate 1kbps\
ceil 1kbps
/sbin/tc class add dev eth0 parent 1:1 classid 1:15 htb rate 8kbps\
ceil 16kbps
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32\
match ip src 192. 168.0.9 match ip dport 80 0xffff flowid 1:10
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32\
match ip src 192. 168.0.14 match ip dport 80 0xffff flowid 1:11
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32\
match ip src 192. 168.0.15 match ip dport 80 0xffff flowid 1:12
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32\
match ip src 192. 168.0.28 match ip dport 80 0xffff flowid 1:13
/sbin/tc qdisc add dev eth0 parent 1:10 handle 20: pfifo limit 5
/sbin/tc qdisc add dev eth0 parent 1:11 handle 30: pfifo limit 5
/sbin/tc qdisc add dev eth0 parent 1:12 handle 40: pfifo limit 5
/sbin/tc qdisc add dev eth0 parent 1:13 handle 50: pfifo limit 5
/sbin/tc qdisc add dev eth0 parent 1:15 handle 60: sfq perturb 10
Any ides how to fix this, or any other way I can limit speed for some
users? I am not linux expert, so gui tool would be great :-)
--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** Registered Linux user #291606 **
/__/\____/--\__\ **
http://counter.li.org/ **