Cusik lidi, v soucasne dobe se potykame v ramci Freenetove site v Liberci s problemem stahovacu. Nejlepsi by bylo sprovoznit nejaky traffic shaping na IP stahovacu, aby neblokovali linku.
prozatim tam mame tento script:
# Function to set HTB/SFQ shaper with fixed bandwidth on an IP address
set_shaper() {
IP=$1
SPEED=$2
ID=$3
tc class add dev eth0 parent 1:1 classid 1:$ID htb rate $SPEED ceil $SPEED
tc qdisc add dev eth0 parent 1:$ID handle $ID: sfq perturb 10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst $IP/32 flowid 1:$ID
tc class add dev netcs0 parent 1:1 classid 1:$ID htb rate $SPEED ceil $SPEED
tc qdisc add dev netcs0 parent 1:$ID handle $ID: sfq perturb 10
tc filter add dev netcs0 protocol ip parent 1:0 prio 1 u32 match ip src $IP/32 flowid 1:$ID
}
### Individual IP address shaping example ###
### NOTE: ID should be a unique value >= 100
set_shaper 10.101.12.160 64kbit 100
set_shaper 10.101.20.137 64kbit 101
set_shaper 10.101.12.134 64kbit 102
#########################
Bohuzel to nefunguje..:o(( Pokud by nekdo nasel v cem je problem, tak at mi pisne..
Diky...