LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can I do this with OpenVPN (and Shorewall) ... (http://www.linuxquestions.org/questions/linux-networking-3/can-i-do-this-with-openvpn-and-shorewall-4175425849/)

lidbjork 09-05-2012 06:06 PM

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.

deadeyes 09-06-2012 03:14 AM

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.


All times are GMT -5. The time now is 02:47 PM.