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!