I am trying to route Deluge through my TorGuard OpenVPN. Deluge is running on an Ubuntu 14.04 machine that also serves as a Plex server/XBMC frontend. I don't want all of my computer traffic to go through the VPN, just Deluge.
I have iptables set up with:
Code: Select all
iptables -A OUTPUT -m owner --uid-owner deluge-x -d 192.168.2.0/24 -j ACCEPT
iptables -A OUTPUT -m owner --uid-owner deluge-x -d 127.0.0.1 -j ACCEPT
iptables -A OUTPUT -m owner --uid-owner deluge-x \! -o tun0 -j REJECT
Code: Select all
client
dev tun
proto tcp
remote-random
remote ...
remote ... #bunch of IPs
resolv-retry 5
nobind
fast-io
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca globalca.crt
auth-user-pass
comp-lzo
route-delay 5 30
script-security 3 system
mute-replay-warnings
verb 3
The problem is when I add the line
Code: Select all
route-noexec
EDIT: So with the default config (ALL traffic through VPN), and no iptables set, everything works fine. With the iptables settings set, Deluge can't find trackers anymore although downloads will continue. When I add route-noexec, then Deluge fails completely
Thanks,
Cory