LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-05-2012, 06:06 PM   #1
lidbjork
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:

Code:
Anonymous             Real
IP number             IP number
(for bittorrent)      (for http, etc.)
    \                  /
     \                /
     VPN             /
       \            /
        \          /
         \        /
          \      /
           \    /
            \  /
           (eth1)
       Server/firewall
           (eth0)
             |
             |
         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
deadeyes
Member
 
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.
  


Reply

Tags
firewall, network, openvpn, shorewall, vpn



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 06-22-2018 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

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

All times are GMT -5. The time now is 01:57 AM.

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