I know is going to be hard to prevent users from using these torrent clients, I guess the easiest way is just to throttle that traffic. Only give certain amount of bandwidth to those ports. Now, today I used ethereal to analyze some traffic and I noticed BitCommet uses tcp protocol instead of udp. That caught me by surprise. I thought it was supposed to use udp protocols.
I would like to use tc / iptables to assign only 56kbps to those traffic with a low priority. Maybe this way, the network speed would get better.
What would happen if I did this:
iptables -t mangle -A FORWARD -o $ext -p udp --dport 1025:65535 -j MARK --set-mark 1
iptables -t mangle -A FORWARD -o $ext -p tcp --dport 1025:65535 -j MARK --set-mark 1
and use tc to throttle bandwidth to 50kbit to all the packet with mark 1?
What would happen to voip, bittorrents, etc... Would my idea work here?
Last edited by landysaccount; 04-13-2009 at 08:16 PM.