On Saturday 19 June 2004 12:48, you wrote:> Rio,
> Can you share your Squid and HTB configuration with us
> ?
> Shakir
Shakir,
Sorry for this, to avoid someone asking again the same question to me, i
forward the information to LARTC list.
This is my HTB script, this incoming traffic only, if you need to manage
outgoing traffic also, add eth0 or interface you use for upstream.
#!/bin/sh
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 0
tc class add dev eth1 parent 1: classid 1:1000 htb rate 256Kbit ceil 256Kbit
burst 1 cburst 1
tc qdisc add dev eth1 parent 1:1000 handle 1000 sfq perturb 10 quantum 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 1000 fw classid
1:1000
tc class add dev eth1 parent 1:1000 classid 1:1001 htb rate 8Kbit ceil 256Kbit
burst 1 cburst 1
tc qdisc add dev eth1 parent 1:1000 handle 1001 sfq perturb 10 quantum 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 2 handle 1001 fw classid
1:1001
tc class add dev eth1 parent 1:1000 classid 1:1002 htb rate 8Kbit ceil 256Kbit
burst 1 cburst 1
tc qdisc add dev eth1 parent 1:1000 handle 1002 sfq perturb 10 quantum 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 2 handle 1001 fw classid
1:1002
- - - this is similar for classid 1:1003 until classid 1:1040 - - -
#EOF
After that, manage all the traffic to client IP by putting it into iptables
mangle.
For Squid, i dont do delay-pools much, just slowing down file extensions my
users often to download to 128Kbit only.
Thats all.
Regards,
Rio Martin.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org