Kamen wrote:
helper () {
        ...
        iptables -t mangle -A $CHAIN -p tcp -m tcp --sport 80 --source 
my-domain.com -j MARK --set-mark 0x2
        iptables -t mangle -A $CHAIN -p tcp -m tcp --sport 80 -j RETURN
        ...
}

        tc class add dev ${WAN_IF} parent 1:1 classid 1:10 htb rate 64kbit ceil 
64kbit prio 0
        tc class add dev ${WAN_IF} parent 1:1 classid 1:11 htb rate 64kbit ceil 
${UPLINK} prio 1

        tc filter add dev ${WAN_IF} parent 1:0 protocol ip prio 1 handle 1 fw 
classid 1:10
        tc filter add dev ${WAN_IF} parent 1:0 protocol ip prio 2 handle 2 fw 
classid 1:11
        ...
}

Здравей,
да си призная, не съм пипал tc от години, но си мисля, че си объркал приоритетите на класовете. Така като гледам, си вкарал трафика от WEB сървъра във клас 1:11, който има по-нисък приоритет (prio 1) от клас 1:10 (Prio 0) . Мисля, че там ти се крие разковничето!

Цитат:

"The class with the lowest prio, has the highest priority. If 2 classes are asking for extra bandwidth (after they received the rate), the class with the lowest prio will get all the bandwidth. The delay of the class with the lowest priority will also be the lowest."


Поздрави,
Данаил Петров

--
Danail Petrov
Senior Network Administrator
Evolink, Sofia
+359(2)9691650
www.evolink.com
icq uin 989677

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Lug-bg mailing list
[email protected]
http://linux-bulgaria.org/mailman/listinfo/lug-bg

Reply via email to