Problem mldonkey traffic shaping
Hi!
i try to shape my upload from mldonkey
mldonkey runs with useruid 1003
my max_hard_upload_rate is set to 0
my shaping script succesfully shapes the upload to 64kbit
mldonkey seems to connect to enough sources so setting syn,ack ... to 1:30 seems to work
but my dl stucks at 0-3kb
what could be wrong any help?
------------------------------------------------------------------------------------
#! /bin/sh
set -evx
logger "firewall: initializing for $IFNAME (local IP $IPLOCAL, DNS servers
$DNSSERVERS)"
# --- shaping ----------------------------------------------------------
tc qdisc del dev $IFNAME root || true
tc qdisc add dev $IFNAME root handle 1: htb default 10
tc class add dev $IFNAME parent 1: classid 1:1 htb rate 128kbit
burst 2k
tc class add dev $IFNAME parent 1:1 classid 1:10 htb rate 126kbit ceil 128kbit
burst 2k
tc class add dev $IFNAME parent 1:1 classid 1:20 htb rate 1kbit ceil 64kbit
burst 2k
tc class add dev $IFNAME parent 1:1 classid 1:30 htb rate 1kbit ceil 64kbit
burst 2k
tc qdisc add dev $IFNAME parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $IFNAME parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $IFNAME parent 1:30 handle 30: sfq perturb 10
tc filter add dev $IFNAME parent 1:0 protocol ip prio 1 handle 4 fw classid 1:20
tc filter add dev $IFNAME parent 1:0 protocol ip prio 1 handle 5 fw classid 1:30
## mark mldonkey for shaping
iptables -t mangle -A OUTPUT -m owner --uid-owner 1003 -j MARK --set-mark 4
iptables -t mangle -A OUTPUT -p tcp --tcp-flags SYN,ACK,FIN,RST NONE -m owner
--uid-owner 1003 -j MARK --set-mark 5
|