Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-05-2012, 06:06 PM   #1
LQ Newbie
Registered: Jan 2009
Location: Uppsala, Sweden
Distribution: Ubuntu and Debian
Posts: 5

Rep: Reputation: 0
Question Can I do this with OpenVPN (and Shorewall) ...

I'm running a webserver which also acts as a router/firewall, routing my internet traffic via masquerading to my desktop Linux computer. The firewall is set up with Shorewall and works great.

Now I wanna anonymize my bittorrent traffic by using an external OpenVPN service provider which tunnels my internet connection to another IP number (which is not associated with me). But I still want to run my webserver through my real IP. As such:

Anonymous             Real
IP number             IP number
(for bittorrent)      (for http, etc.)
    \                  /
     \                /
     VPN             /
       \            /
        \          /
         \        /
          \      /
           \    /
            \  /
         Desktop PC
I'm running my bittorrent client on the server, so the bittorrent traffic does not need to be routed to the desktop pc.

Is this setup possible?
If so, are there any howtos explaining this? I know people run OpenVPN and Shorewall simultaneously, but I'm not sure if my exact setup works.

Last edited by lidbjork; 09-05-2012 at 06:12 PM. Reason: Fixed the drawing
Old 09-06-2012, 03:14 AM   #2
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
I believe this is possible.
However you probably need source based routing.

Then, depending on the source IP of the traffic you can send it to either the VPN interface or the normal interface that is connected to the internet.
1 members found this post helpful.


firewall, network, openvpn, shorewall, vpn

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
Using Rsyslog to redirect Shorewall messages but Shorewall is not a facility dman777 Linux - Software 3 Today 05:23 PM
How does OpenVPN Linux server issues IP and netmask to OpenVPN clients on Windows XP pssompura Linux - Networking 0 12-24-2009 02:42 AM
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM
example of OpenVPN behind firewall shorewall manchox Linux - Networking 1 10-16-2006 12:22 PM
openvpn and shorewall problem from outside network nbccbn Linux - Networking 1 07-12-2005 01:24 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:01 PM.

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