hi there, is there any possible way to control traffic in child??? class with selected protocols for example http i try to use this script but its now working in theory: there is root class 1:0 with subclass 1:2 in class 1:2 all ip adresses have their bandwidth limit 1:{iden} and now i try also control bandwith in this class i.e. if class 1:{iden} have 190kbit i want 95kbit with burst to 190kbit for port 80 and 95kbit with burst to 190kbit for port 110 and 40kbit with burt to 95kbit for rest of his traffic. i attach my script whit should do that in theory but its not doing this any one can help correct my errors or tell how to do that? best regards szogunek ------> script start here <---- tc filter add dev $SIECETH0 protocol ip preference 2 parent 1:0 u32 match ip dst $host flowid 1:1${iden} tc class add dev $SIECETH0 parent 1:2 classid 1:${iden} htb rate ${down}kbit ceil ${downmax}kbit prio $prio tc filter add dev $SIECETH0 protocol ip preference 2 parent 1:2 u32 match ip dst $host flowid 1:${iden} tc class add dev $SIECETH0 parent 1:${iden} classid 1:${iden}1 htb rate ${p2pd}kbit ceil ${downmax}kbit prio 2 tc qdisc add dev $SIECETH0 parent 1:${iden}1 handle 9${iden}: sfq perturb 5 tc filter add dev $SIECETH0 protocol ip preference 2 parent 1:${iden} u32 match ip sport 80 0xffff flowid 1:${iden}1 tc class add dev $SIECETH0 parent 1:${iden} classid 1:${iden}2 htb rate ${p2pd}kbit ceil ${downmax}kbit prio 2 tc qdisc add dev $SIECETH0 parent 1:${iden}2 handle 2${iden}: sfq perturb 5 tc filter add dev $SIECETH0 protocol ip preference 2 parent 1:${iden} u32 match ip sport 110 0xffff flowid 1:${iden}2 tc class add dev $SIECETH0 parent 1:${iden} classid ${iden}3 htb rate ${p2pd}kbit ceil ${downmax}kbit prio 7 tc qdisc add dev $SIECETH0 parent 1:${iden}3 handle 3${iden}: sfq perturb 5 tc filter add dev $SIECETH0 protocol ip preference 2 parent 1:${iden} u32 match ip protocol 17 0xff flowid 1:${iden}3 tc class add dev $SIECETH0 parent 1:${iden} classid 1:${iden}4 htb rate ${p2pd}kbit ceil ${p2pd}kbit prio 2 tc filter add dev $SIECETH0 protocol ip preference 2 parent 1:${iden} u32 match ip sport 22 0xffff flowid 1:${iden}2 ---->script end <-----
On Wednesday 02 November 2005 14:59, szogunek wrote:> i.e. if class 1:{iden} have 190kbit > i want 95kbit with burst to 190kbit for port 80 > and 95kbit with burst to 190kbit for port 110 > and 40kbit with burt to 95kbit for rest of his traffic.So 95kbit+95kbit+40kbit=190kbit? What do you want? Script is too hard to read, and I''m lazy today... HTH Andreas