Results 1 to 7 of 7

Thread: Bypass OpenVPN

  1. #1
    Join Date
    Mar 2013
    Beans
    31

    Question Bypass OpenVPN

    BUMP ! i have the same problem, only i don't have the answer. Would appreciate if someone (if not author) could explain what he/she did ? Thanks !

  2. #2
    Join Date
    Nov 2005
    Location
    Tumba, Sweden
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Bypass OpenVPN

    Well my solution was not pretty.
    Basically I opted to upgrade my VPN to 30mbit, that satisfied most of my needs.
    But for certain services I simply added their IP range as a separate route, and set the gateway of that route to use my home router, this way the traffic to those services use my main Internet connection, and all other traffic use the VPN.

  3. #3
    Join Date
    Mar 2013
    Beans
    31

    Re: Bypass OpenVPN

    so there would be no way for my server to be accessible to all queries made at xxx.dyndns.com ? Can't apache listen specifically to the non-vpn ip ?

  4. #4
    Join Date
    Nov 2005
    Location
    Tumba, Sweden
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Bypass OpenVPN

    Well, the VPN connection is only grabbing outbound traffic by setting itself as the default route.
    Unless you specify Apache to only listen to the VPN interface, it should also server traffic coming in on other interfaces.

    If you do not want Apache to listen on the VPN, then you need to specify what interface it should listen to, I think by default it listens to all.

    I should not that I no longer run a webserver, nor do I have the VPN anymore. I do still have my server, but it is only used for outbound traffic, so I have no need for the VPN anymore.

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,660
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Bypass OpenVPN

    You can specify which interface a virtual server binds to in the <VirtualHost> directive.

    Code:
    NameVirtualHost   10.10.10.10:80
    
    <VirtualHost 10.10.10.10:80>
        ServerName ...
    </VirtualHost>
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  6. #6
    Join Date
    Mar 2013
    Beans
    31

    Re: Bypass OpenVPN

    Quote Originally Posted by SeijiSensei View Post
    You can specify which interface a virtual server binds to in the <VirtualHost> directive.

    Code:
    NameVirtualHost   10.10.10.10:80
    
    <VirtualHost 10.10.10.10:80>
        ServerName ...
    </VirtualHost>
    Sorry but I don't understand what you mean by that.

    What I've understood so far, and i am sure to be wrong so please correct me, is I could create a "virtual interface" connected straight to internet, and have an another one, I suppose default eth0 that would be connected to the vpn, and map apache to the new virtual interface, thus bypassing the vpn.

    How could I do that ?

    Quote Originally Posted by eldaria
    Well, the VPN connection is only grabbing outbound traffic by setting itself as the default route.
    Unless you specify Apache to only listen to the VPN interface, it should also server traffic coming in on other interfaces.
    Only when I am connected to the VPN I cannot connect to my server. Maybe this is due to the VPN's falt, but going having my hostname point to the vpn's address isn't really an option as I would be seriously damaging connection times to the webserver.
    Last edited by SASDOE2; March 28th, 2013 at 07:59 PM.

  7. #7
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    17,060
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Bypass OpenVPN

    Moved to own thread! Please do not post in a thread that has been a year or so without a reply.
    Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •