[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tc download always to "default"



Mihamina Rakotomandimby wrote at 2010-03-22 05:42 -0500:
> My problem is all the traffic is caught by "classid 1:10", the default
> class.
> 
> Nothing is trapped by "classid 1:301" -> "classid 1:426"
> 
> At a first glance, would you see something wrong in these?

I don't see anything, sorry; I suggest trying on the debian-firewall list.

Also:
- You might want to try out hfsc instead of htb

- You could use iptables CLASSIFY instead of filters

- Instead of all those lines you could use (untested):
for IP in $( seq 129 254 | awk '{ print "10.150.0."$1 }' ); do
IPID=$( echo "$( echo $IP | cut -d . -f 4 ) + 172" | bc )"
tc class add dev eth1 parent 1:30 classid 1:$IPID htb rate 100kbit ceil 200kbit
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst $IP/32 flowid 1:$IPID
done

Attachment: signature.asc
Description: Digital signature


Reply to: