Hi all, I'm using this script to do some traffic control on my network.
I wanna to limit the traffic to 64kb on my network interface that
goes to Internet, but the script isn't working.
When I try do to a download, the bandwidth goes to 11MB/s.
The rule need to be added on the eth0 (outgoing traffic) or the
eth1 (incoming traffic from internet called inside).
Bye
Internet --> eth0 Linux eth1 --> Private Network.
tc qdisc add dev eth0 root handle 100: cbq bandwidth 1Mbit avpkt 1000
tc class add dev eth0 parent 100:0 classid 100:1 cbq bandwidth 10Mbit \
rate 64Kbit allot 1514 weight 6Kbit prio 8 maxburst 8 avpkt 1000 \
bounded
tc class add dev eth0 parent 100:1 classid 100:2 cbq bandwidth 64Kbit \
rate 32Kbit allot 1513 weight 2Kbit prio 5 maxburst 8 avpkt 1000
tc class add dev eth0 parent 100:1 classid 100:3 cbq bandwidth 64Kbit \
rate 32Kbit allot 1513 weight 2Kbit prio 5 maxburst 9 avpkt 1000
tc qdisc add dev eth0 parent 100:2 sfq quantum 1514b perturb 15
tc qdisc add dev eth0 parent 100:3 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 100:0 protocol ip prio 25 u32 match ip \
dst 192.168.0.2 flowid 100:2
tc filter add dev eth0 parent 100:0 protocol ip prio 25 u32 match ip \
dst 192.168.0.1 flowid 100:3
--
=================================================
Netsite Internet Provider - +55(0xx16) 605-4000
Security Officer
Profissional Certificado Conectiva Linux
www.netsite.com.br/kidmumu - UIN 4553082-LC 83522
=================================================