Custom Bittorrent Queue
-
I would like to set up a custom Bittorrent queue for a server of mine. While the default queue may be fine for everyone else who uses the network. I'd like to reserve more of my bandwidth for that specific server. I attempted to do it using the default queues and rules as a template. But the traffic does not seem to want to go into the queue. I did make sure that the custom Bittorrent queues and Rules were before the regular queues and rules. I suspect that it may be the way that I set up the ports in the rules, but I'm not entirely sure. Any suggestions?
-
bittorrent is difficult to handle as it spreads its port usage far and wide, uTorrent allows your incoming request port to be tied to a specific port, but I still could not find a sensible way of handling it (at least with uTorrent). There is some info about it in the multiWan wiki here http://doc.pfsense.org/index.php/Multi-Wan/Load-Balancing#Supporting_bittorrents, this should help you understand what needs to be setup for traffic shaping
-
One helpful tool for me has been a program called TCPView
http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx
You can see your local and remote ports when you use bit torrent. Once you see what a pattern in which ports it is using, then you can classify it with the traffic shaper. You're looking for a state of "ESTABLISHED". I would take the approach of referring to the ports in my bit torrent queue as an alias also. Then instead of updating the ports you are working with in the actual rules, just update the alias. -
But the problem I see is that (with uTorrent at least) the source port number it uses to outward connect just keeps incrementing. See the notes I have written up here http://doc.pfsense.org/index.php/Multi-Wan/Load-Balancing#Supporting_bittorrents
If you know a better way of doing this, I'm keen to hear it… ;D