I have gotten policy based rules routing so that I can route only specific ports from my deluge box out over the VPN, whereas everything else goes out over normal wan traffic.
The problem is I can't determine how I can configure the deluge to only work over specific ports.
To be exact, I need to ensure that all connections I make will match a port on my policy rule to route over VPN.
I'm confused about the incoming and outgoing ports on the Network tab. Also, I'm confused if the outgoing ports is the same as the outgoing_port(s) in libtorrent/ltConfig. This is even more confusing because the libtorrent docs define this setting as "outgoing_ports", but in ltConfig this setting doesn't exist, but there is one called "outgoing_port". Also the libtorrent docs issue a warning about using this setting:
So, even if this is the only way to get it to connect, it may have a major performance hit?WARNING
setting outgoing ports will limit the ability to keep multiple connections to the same client, even for different torrents. It is not recommended to change this setting. Its main purpose is to use as an escape hatch for cheap routers with QoS capability but can only classify flows based on port numbers.
I haven't found a lot of data about routing torrent traffic in this manner, it seems most people are either configuring the VPN client on their machine and routing it with application specific policies, or they are running the torrent client on their router and restricting routing it based on a specific UID for the the deluge process. In this case, all I have is the IP/port combination of the windows box to uniquely identify the traffic to the iptables rules on the router.
help?