LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Force deluge to use vpn (https://www.linuxquestions.org/questions/linux-networking-3/force-deluge-to-use-vpn-4175469420/)

druisgod 07-12-2013 12:44 PM

Force deluge to use vpn
 
I've built a server that I'm using deluge-web and deluged on. I have a vpn connection and I'd like to force deluge to use the vpn connection.

My current config/solution is:

Code:

deluge --> dante proxy --> vpn
and when I kill vpn, the torrenting stops.

What I'm worried about it that I've heard other users say that they've noticed that deluge will sometimes pick up eth0 when tun0 disconnects.

I tried rejecting packets for the deluge user that are not headed to tun0 in iptables with:

Code:

iptables -A OUTPUT -m owner --uid-owner deluge \! -o tun0 -j REJECT
but it doesn't allow me to manage the ui even if I put in front:

Code:

iptables -A OUTPUT -m owner --uid-owner deluge -d 192.168.0.44 -j ACCEPT
Does anyone have a more elegant solution?

Thanks!


All times are GMT -5. The time now is 09:22 PM.