Results 1 to 5 of 5

Thread: No internet connection during OpenVPN session

  1. #1
    Join Date
    Jan 2013
    Beans
    10

    Question No internet connection during OpenVPN session

    Hi all,

    a few days ago finally I switched to Ubuntu 12.10 after many years of suffering with Windows or MacOSX. Now I think I found what I really need. But... I've got a problem. I'm working on a project and I need to connect to a remote intranet server through VPN. Since I have to use certificates I'm using OpenVPN. (I used OpenVPN on Windows as well). My problem is when I'm connecting with VPN my internet connection stops working and I can't browse any site, use ftp, mail etc. How could I configure my VPN client to keep my internet connection alive during a session?

    Thanks!

  2. #2
    ahallubuntu is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Jul 2005
    Beans
    2,050

    Re: No internet connection during OpenVPN session

    Do you have no internet connection or no DNS?

    Can you ping this IP address while connected to the VPN?

    Code:
    ping 173.194.33.34
    (That's a Google IP.)

    If you can ping it, then you just don't have DNS. In your OpenVPN config, under IPv4 Settings, choose "Automatic (VPN) addresses only" and then fill in some DNS servers. Try Google's: 8.8.8.8 and 8.8.4.4 .

  3. #3
    Join Date
    Jan 2013
    Beans
    10

    Re: No internet connection during OpenVPN session

    Hi,

    thank you for the quick reply. I tried to do a ping but it doesn't work. I can not ping any server... But I still access the VPN server. (btw much faster than on Windows. )

  4. #4
    ahallubuntu is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Jul 2005
    Beans
    2,050

    Re: No internet connection during OpenVPN session

    It's possible your OpenVPN server does not route gateway traffic out to the internet.

    As I recall, by default the Windows (free) OpenVPN client does not by default route all traffic through the VPN but the Linux/Network Manager client does. So in Windows, your non-VPN traffic may never have been routed through the VPN and thus you wouldn't have seen this problem.

    You can tell the Network Manager plug-in not to route traffic through the VPN as well. There's an option under "IPv4 Settings" - click the "Routes" button and then check the box next to "Use this connection only for resources on its network" and see if that works.

  5. #5
    Join Date
    Jan 2013
    Beans
    10

    Re: No internet connection during OpenVPN session

    Cool, thank you very much, that was the main problem! Thanks again, now runs everything well!

Tags for this Thread

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
  •