hello, I have working htb system with about 1000 users. Until now I reload all rules at change, but it take too much time to apply. I cannot delete applyed filters. There is rules for one user: #!/bin/bash -v # Download shaper EX -> 2:20 /sbin/tc class add dev eth2 parent 2:20 classid 2:1775 htb rate 8000Kbit ceil 10000Kbit quantum 1514 /sbin/tc qdisc add dev eth2 parent 2:1775 sfq perturb 10 /sbin/tc filter add dev eth2 parent 2:20 protocol ip handle 1775 fw flowid 2:1775 # Download shaper peering -> 2:30 /sbin/tc class add dev eth2 parent 2:30 classid 2:2775 htb rate 100Kbit ceil 25000Kbit quantum 1514 /sbin/tc qdisc add dev eth2 parent 2:2775 sfq perturb 10 /sbin/tc filter add dev eth2 parent 2:30 protocol ip handle 1775 fw flowid 2:2775 # Download shaper international -> 2:40 /sbin/tc class add dev eth2 parent 2:40 classid 2:3775 htb rate 384Kbit ceil 800Kbit quantum 1514 /sbin/tc qdisc add dev eth2 parent 2:3775 sfq perturb 10 /sbin/tc filter add dev eth2 parent 2:40 protocol ip handle 1775 fw flowid 2:3775 I change 'add' with 'del' but only sfq qdisc are deleted: #!/bin/bash -v # Download shaper EX -> 2:20 /sbin/tc class del dev eth2 parent 2:20 classid 2:1775 htb rate 8000Kbit ceil 10000Kbit quantum 1514 RTNETLINK answers: Device or resource busy /sbin/tc qdisc del dev eth2 parent 2:1775 sfq perturb 10 /sbin/tc filter del dev eth2 parent 2:20 protocol ip handle 1775 fw flowid 2:1775 RTNETLINK answers: No such file or directory # Download shaper peering -> 2:30 /sbin/tc class del dev eth2 parent 2:30 classid 2:2775 htb rate 100Kbit ceil 25000Kbit quantum 1514 RTNETLINK answers: Device or resource busy /sbin/tc qdisc del dev eth2 parent 2:2775 sfq perturb 10 /sbin/tc filter del dev eth2 parent 2:30 protocol ip handle 1775 fw flowid 2:2775 RTNETLINK answers: No such file or directory # Download shaper international -> 2:40 /sbin/tc class del dev eth2 parent 2:40 classid 2:3775 htb rate 384Kbit ceil 800Kbit quantum 1514 RTNETLINK answers: Device or resource busy /sbin/tc qdisc del dev eth2 parent 2:3775 sfq perturb 10 /sbin/tc filter del dev eth2 parent 2:40 protocol ip handle 1775 fw flowid 2:3775 RTNETLINK answers: No such file or directory If I try to run this again result is: # Download shaper EX -> 2:20 /sbin/tc class del dev eth2 parent 2:20 classid 2:1775 htb rate 8000Kbit ceil 10000Kbit quantum 1514 RTNETLINK answers: Device or resource busy /sbin/tc qdisc del dev eth2 parent 2:1775 sfq perturb 10 RTNETLINK answers: Invalid argument /sbin/tc filter del dev eth2 parent 2:20 protocol ip handle 1775 fw flowid 2:1775 RTNETLINK answers: No such file or directory I think that class cannot be deleted becouse there is filter pointing to it. But how to delete that filters? Any hint will be extreme usefull. Svetozar Mihailov. _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/