updated traffic shaping rules in tc script
authorroot <root@p2p-next-01.grid.pub.ro>
Tue, 26 Jan 2010 10:42:48 +0000 (12:42 +0200)
committerroot <root@p2p-next-01.grid.pub.ro>
Tue, 26 Jan 2010 10:42:48 +0000 (12:42 +0200)
scripts/tc.sh

index 557c3eb..3ba5ba7 100755 (executable)
@@ -11,7 +11,7 @@ case "$1" in
        tc class add dev venet0 parent 1: classid 1:1 htb rate 1000mbit
        tc class add dev venet0 parent 1:1 classid 1:10 htb rate 128kbit ceil 128kbit
        tc qdisc add dev venet0 parent 1:10 handle 10: sfq perturb 10
-       tc filter add dev venet0 parent 1:0 protocol ip u32 match ip dst 172.16.10.1/32 match ip sport 80 0xffff flowid 1:10
+       tc filter add dev venet0 parent 1:0 protocol ip u32 match ip dst 172.16.10.1/32 flowid 1:10
        ;;
        "u")
        tc qdisc add dev eth1 root handle 1: htb default 90
@@ -19,7 +19,6 @@ case "$1" in
        tc class add dev eth1 parent 1:1 classid 1:10 htb rate 128kbit ceil 128kbit
        tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
        tc filter add dev eth1 parent 1:0 protocol ip u32 match ip dport 22 0xffff flowid 1:10
-#      tc filter add dev eth1 parent 1:0 protocol ip u32 match ip src 172.16.10.1/32 flowid 1:10
        ;;
        "f")
        tc qdisc del dev venet0 root handle 1: