LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2013, 12:44 PM   #1
druisgod
Member
 
Registered: Jun 2004
Location: Maine
Distribution: LFS Mint OS, LFS, CENTos,
Posts: 119

Rep: Reputation: 18
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force all internet traffic through tun0 (Vpn Interface) dschuett Linux - Security 3 08-10-2011 08:36 AM
Force all internet traffic through tun0 (Vpn Interface) dschuett Linux - Security 2 08-10-2011 12:24 AM
Force VPN NiGhtMarEs0nWax Linux - Networking 4 06-02-2010 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration