I can connect to VPN using openvpn but I can't get internet

12,328

I had a feeling that OpenVPN not working had something to do with faulty drivers (software that tells the operating system how to use the hardware), so I followed the following steps.

Uninstall the OpenVPN software. This will also uinstall the TAP adapter. This is what you want. Then you want to uninstall your computer's wifi drivers, but it has to be done properly.

Then you want to go to your computer manufacturer's website, and download the latest drivers for the wifi adapter (drivers are located in the support section). Make sure you download the correct installer.

Open Device Manager. It can be opened by using the Windows + X shortcut, or going to Start then Run Windows + R and typing in devmgmt.msc, or searching for it in the Start menu, or going to Control Panel then clicking Device Manager (under Hardware and Sound if you're on "category view").

Once open, expand Network adapters and right click the one that says Wi-Fi Adapter then click uninstall.

check this box to delete the wifi driver from your computer

Important! Check the box to delete the wifi drivers from your computer.

The reason why you must do this, is because if you don't, when you restart your computer, windows will automatically install the driver again (as it does with all drivers you uninstall if you don't check the box). You want the wifi driver (and it's installer) to be completely gone from your computer, so windows does not install it again when you restart your computer.

Once checked, click OK.

Important! What windows does not tell you (as the windows usability is terrible and appalling), is that when you uninstall drivers from your computer using Device Manager and click OK, even though the driver list flashes and the driver you chose is gone from the list, it does not actually uninstall when you click OK. To finalise the installation, you must restart your computer. (Reinstalling the driver now won't work, as it will install corrupted due to traces of the faulty driver still existing on your computer, despite the software telling you that it uninstalled successfully.)

So restart your computer.

Once you have restarted your computer, you might notice that the wifi icon in the system tray (the icons where the clock is) has a red X on it, indicating that your computer does not have the ability to scan for wifi networks. This is good.

Do not install your wifi driver yet. There are steps you must do, before you do that.

The first thing you must do, is make sure that the installer for your wifi driver runs as administrator. On Windows, .exe executables (or programs), by default (the decision that happens unprompted), do not run with full permissions. They run with limited permissions. This means that they cannot use the full capabilities that Windows has. As you want to install a driver (a wifi driver to be specific), you want it to run with full privileges, or in Windows speak, make it run as administrator.

You could right click the .exe installer and click run as administrator, but what if you forget to do that, double click the file instead, then have to do the whole instructions again?

What you want to do is right click the installer for the driver, then click properties. Then go to the compatibilty tab. Then check the run as administrator tab then click OK.

check the box run as admistrator under the compatibility tab under file properties

Do not install the driver yet.

Another thing that might be happening is that your antivirus software might be blocking the driver. Even if the installer file itself isn't blocked (or you antivirus says the file is safe), it might be a file that extracts lots of files to your computer, and one of those files it extracts might be blocked.

What you must do is disable your security software. Security software is notorious for interfering with the installation of drivers. Security software is also notorious for blocking the functionality of software and installers without giving you a visual indication/notification that the software has been blocked (which happened to me). You might want to check your security software to see which files have been sandboxed or quarantined to mark them as safe.

I use Comodo Internet Security (it's free xD), so I disabled both the antivirus and auto-sandbox. What you must do will depend on what security software you have installed.

For me, the process is simple.

comodo internet security (disable the antivirus and sandbox)

Now you are ready to install the wifi driver on your computer. You better of downloaded the right installer onto your computer LOL.

Once you have installed your wifi driver, you then have to install OpenVPN, but must also be run as administrator. (Well you are installing a TAP driver.)

install openvpn as administrator

Once done, enable your security software, and the whole process is done. That's the end of the instructions.

Now you should be able to connect to your wifi network, and then your vpn using openvpn.

Note that when you uninstall openvpn, your connection profiles are not deleted, so you might want to delete duplicate profiles from your computer.

Now everything should work.

Share:
12,328

Related videos on Youtube

desbest
Author by

desbest

Microsoft Windows has the worst usability of any popular software ever created.

Updated on September 18, 2022

Comments

  • desbest
    desbest over 1 year

    I cannot ping google.com or bing.com while connected to my VPN or access any website. I can connect to my VPN, but I do not have internet access while connected.

    Below is what I have tried

    • Disabling windows firewall and comodo firewall
    • Setup my DNS routing to Cloudflare 1.1.1.1 and Google Public DNS 8.8.8.8
    • Uninstalled my wireless driver then installed it again as administrator then uninstall openvpn client and install it again as administrator
    • Make the openvpn client run as administrator
    • Change the interface metric for my wifi adapter to 15 or 350
    • See below

    ...

    netsh winsock reset
    netsh winsock reset catalog
    ipconfig /flushdns
    ipconfig /release
    ipconfig /renew
    netsh int ip reset 
    netsh int ip reset.log
    netsh winsock reset catalog
    

    How can I make my vpn connection have internet. I am using Windows 8.1 64 bit. The VPN connection works on my android phone.

    • Zoredache
      Zoredache almost 6 years
      What are you connecting to with openvpn? A server you manage, or something you pay for? What happens if you ping 8.8.8.8? What happens if you do a traceroute to 8.8.8.8? Does DNS resolution when you are connected to openvpn? Can you ping www.google.com?
    • desbest
      desbest almost 6 years
      I pay for it. I do not manage it. I get this error ping 8.8.8.8 Request timed out. Ping statistics for 8.8.8.8: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), C:\Users\Owner>nslookup google.com DNS request timed out. timeout was 2 seconds. Server: UnKnown Address: 8.8.8.8 DNS request timed out. timeout was 2 seconds. , ping google.com Ping request could not find host google.com. Please check the name and try again.
    • harrymc
      harrymc almost 6 years
      You say "I have fixed the problem with my own solution", so what is it?
    • desbest
      desbest almost 6 years
      @harrymc I have posted my working answer now.
  • desbest
    desbest almost 6 years
    It works on my android phone so my VPN does have internet access. It just doesn't work on my windows computer.
  • Nelson
    Nelson almost 6 years
    Turn off your phone's mobile data and connect to the VPN via WiFi. Does the internet still work via the VPN?
  • desbest
    desbest almost 6 years
    Yes it works if I do that.
  • mic84
    mic84 almost 6 years
    welcome to superuser: some more detail would be useful, Please take a couple of minutes and read:- superuser.com/help .Answering: superuser.com/help/how-to-answer, again welcome to superuser.Thankyou
  • desbest
    desbest almost 6 years
    I have fixed the problem with my own solution.
  • harrymc
    harrymc almost 6 years
    @desbest: Then post up an answer with your solution, for future readers.
  • desbest
    desbest almost 6 years
    I'll do it later today or tomorrow. I'm busy.
  • desbest
    desbest almost 6 years
    I have posted my working answer now.