Do they charge you for download traffic or both for dowload/upload? If you
are in the first case, this slight modification in the wondershaper script
should do the trick.
########## downlink #############
# slow downloads down to somewhat less than the real speed to prevent
# queuing at our ISP. Tune to see how high you can set it.
# ISPs tend to have *huge* queues to make sure big downloads are fast
#
# attach ingress policer:
tc qdisc add dev $DEV handle ffff: ingress
HERE BEGINS THE CHANGE
# filter for your roomate, drop everything that's
# coming faster than half the DOWNLINK value:
tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
192.168.10.3/24 police rate $[$DOWNLINK/2]kbit burst 10k drop flowid :1
HERE ENDS THE CHANGE
# filter *everything* to it (0.0.0.0/0), drop everything that's
# coming in too fast:
tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc