I need to throttle in an almost binary way my bittorrent traffic.
I have seen some posts on the subject on how to deal with nasty users - the answers are more targeted at how to make their life difficult than on the limitation itself. I read M0n0wall and pfSense articles mentioned in other posts but they do not address my specific need. I also searched on google and read on tc (with limited understanding)
So I must not be too clever but I still fail to understand in practical words how to achieve:
an untamed bittorrent traffic on certain ports (which I can set) when nobody is using other protocols (read HTTP) on the network
a squeeze of the availble bandwidth for bittorrent (down to almost zero) when there is other traffic.
I am specifically looking for a "squeeze" of the bandwidth, not hard limits. I can only estimate the upload/download on my link as it changes form reboot to reboot of the ADSL box.
I use a linux (debian) server which also acts as router / firewall / wifi access point -- so I guess that it is the ideal setup as all the traffic sources are plugged right on it. This is a home LAN where i control all the activities (namely - I do bittorrent in a headless way (with deluge) and other users (as well as myself) browse the web). Since the ADSL connection is poor I need to restrict p2p to have workable web access.