i forgot to attach the script to my previous message, im sorry for the inconvenience.
- tomas bonnedahl
Skicka snabbmeddelanden till dina vänner online med MSN Messenger: Klicka här
tc qdisc del root dev eth1 tc qdisc add dev eth1 root handle 1:0 htb default 222 tc class add dev eth1 parent 1:0 classid 1:1 htb rate 4Mbit ceil 4Mbit tc class add dev eth1 parent 1:1 classid 1:10 htb rate 2Mbit ceil 2Mbit tc class add dev eth1 parent 1:1 classid 1:20 htb rate 2Mbit ceil 2Mbit tc class add dev eth1 parent 1:20 classid 1:210 htb rate 512kbit ceil 2Mbit tc class add dev eth1 parent 1:20 classid 1:220 htb rate 1536kbit ceil 1536kbit tc class add dev eth1 parent 1:220 classid 1:221 htb rate 307kbit ceil 1536kbit tc class add dev eth1 parent 1:220 classid 1:222 htb rate 1229kbit ceil 1536kbit tc qdisc add dev eth1 parent 1:210 sfq perturb 10 tc qdisc add dev eth1 parent 1:221 sfq perturb 10 tc qdisc add dev eth1 parent 1:222 sfq perturb 10 tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 172.16.1.0/24 flowid 1:10 tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 10.47.17.23/32 flowid 1:210 tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 10.46.23.0/24 flowid 1:221 tc filter add dev eth1 protocol ip parent 1:1 prio 2 u32 match ip dport 0x19 0xffff flowid 1:221 tc filter add dev eth1 protocol ip parent 1:1 prio 2 u32 match ip dport 0x6e 0xffff flowid 1:221