I have been using deluge on my headless server for a while and have found it to be very good. Recently I have become concerned about exposing my IP address through torrents.
To solve this I have set up a vpn that I can connect using
This creates an interface (ppp0) that I wish to send all deluge traffic through. The problem is that I run a webserver and soon a mailserver from the same machine. I can't have the traffic for the servers going through the VPN so for the last few weeks I have been looking for a way to force all traffic from deluge only through the VPN.
I have iptables installed and have been trying to send all traffic for user deluge through the VPN. However when I do this the trackers don't connect.
I was wondering if anybody here has any ideas on either what I can try next?
The common solution for this is to route traffic based on ports, so that all the traffic going through your predefined ports are routed differently. As described in the UserGuide/VPN, this problem can be solved on FreeBSD with multiple default routing tables, by specifying which routing table a specific process should use. Linux doesn't have support for per-process routing table, but you may be able to use the iptables owner module to achieve the same thing (http://linuxpoison.blogspot.no/2010/11/ ... -user.html). How do your iptables rules look?
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
I'll have a look through those links now to see if I can find anything. My current iptables configuration is the result of trying a lot of different things over the last few weeks.
IF UID is deluge (ie. all traffic created by the user deluge, nothing else should be run as him.)
SEND via ppp0 (Possibly specifying via IP address)
ENDIF
Am I on the right track or do you think I'm barking up the wrong tree?