On Sun, 07 Feb 2010 22:53:45 +0100, Andy master@adminz.pl wrote:
Witam,
Probuje ustawic regolki HTB z piorytetami ICMP/DNS/Voip per user.
Ponizej kodzik:
$TC class add dev eth1 parent 1:2 classid 1:%x htb rate %downratekbit
ceil
%downceilkbit $BURST prio 2 quantum 1500 $TC qdisc add dev eth1 parent 1:%x esfq perturb 10 hash dst $TC class add dev eth1 parent 1:%x classid 1:1%x htb rate 64.0000kbit
ceil
96.0000kbit $BURST #ICMP $TC filter add dev eth1 parent 1:%x protocol ip prio 1 u32 match ip protocol 1 0xff flowid 1:1%x #DNS $TC filter add dev eth1 parent 1:%x protocol ip prio 2 u32 match ip
dport
53 0xffff flowid 1:1%x #VOIP $TC filter add dev eth1 parent 1:%x prio 1 protocol ip u32 match ip tos 0x68 0xff match ip protocol 0x11 0xff flowid 1:1%x $TC filter add dev eth1 parent 1:%x prio 1 protocol ip u32 match ip tos 0xb8 0xff match ip protocol 0x11 0xff flowid 1:1%x $TC filter add dev eth1 parent 1:0 protocol ip prio 5 handle %x fw
flowid
1:%x nn
Problem polega na tym, iz po dodaniu priorytetow transfer klienta idzie pelna predkoscia lacza nie zas jego kolejka. Jesli ktos ma jakis pomysl chetnie wyslucham :)
Próbowałeś parent 1:0 we wszystkich poleceniach tc filter?
Pozdrawiam