Windows 7 - cannot browse internet after connecting

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Windows 7 - cannot browse internet after connecting

Post by redtopia » Thu Jan 19, 2017 6:58 pm

We just setup an OpenVPN Access server on AWS using the prebuilt AMI. We are using the unlicensed version and installed all the updates.

The problem is that when i connect to the VPN using the OpenVPN Connect app, I am unable to access the internet. The VPN looks like it's connected, both in the client (or in the browser) and on the server. But I have no access to the internet.

I cannot ping the default gateway for the VPN, so I'm not even sure that I have a good connection or if ping is just turned off. I cannot go to https://123.123.123.123/admin (the server admin page) - the page doesn't load, though I am an OpenVPN admin user.

On my machine, Windows Firewall is turned off. I did bypass the chrome warning about the insecure connection when using the browser to connect.

There is another Windows 7 user who is connecting successfully with no problems.

redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Re: Windows 7 - cannot browse internet after connecting

Post by redtopia » Fri Jan 20, 2017 4:29 pm

UPDATE: I can go to the admin page when I am not connected to the VPN. Looking at the log files, it appears that I am being authenticated successfully, but then when the VPN is established, I lose all connectivity. I cannot ping the VPN gateway, which should be possible according to the other Windows 7 user who has no problems.

It appears that there may be a problem with the TAP Adapter. Any recommendations for troubleshooting?

redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Re: Windows 7 - cannot browse internet after connecting

Post by redtopia » Fri Jan 20, 2017 5:49 pm

UPDATE 2: I can now access the internet... In the properties for my wireless adapter, I clicked on properties for TCP/IPv4, then clicked on Advanced, and then unchecked "Automatic metric" and gave the Interface metric a value of 15. This changed my route table so that the wireless card was given a higher priority than the TAP adapter.

I'm still trying to figure out how why I cannot ping the VPN gateway.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Windows 7 - cannot browse internet after connecting

Post by novaflash » Fri Jan 20, 2017 6:12 pm

Try adding this line to Advanced VPN > Server config directives;

push "route-metric 1000"

And save settings and update running servers. Undo the change you made to your wifi interface and try connecting and see what happens.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Re: Windows 7 - cannot browse internet after connecting

Post by redtopia » Fri Jan 20, 2017 6:18 pm

UPDATE - SOLVED

All I needed to do was lower the metric of my LAN adapter as I specified in UPDATE 2. I verified that nobody can ping the VPN gateway, but once connected, I can ping other IP addresses for the users who are also connected. To do this, I made a change to the user permissions - "Allow access from" - all other VPN clients. I just changed that for testing.

redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Re: Windows 7 - cannot browse internet after connecting

Post by redtopia » Fri Jan 20, 2017 6:37 pm

@novaflash - I tried your suggestion and that works... thanks! (PS, at first I didn't realize I had to restart the server)
Last edited by redtopia on Fri Jan 20, 2017 6:40 pm, edited 1 time in total.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Windows 7 - cannot browse internet after connecting

Post by novaflash » Fri Jan 20, 2017 6:39 pm

It only works for the server config directives, and it will force the routes pushed by the server into a much higher route metric, which should result in a similar situation to lower the metric on your network interface. The difference will be visible in route print output on command line.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Re: Windows 7 - cannot browse internet after connecting

Post by redtopia » Fri Jan 20, 2017 6:43 pm

Thanks... I didn't see the button at the top of the page to restart after I made the change. I restarted and it worked... I can see the TAP adapter has a much higher metric now.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Windows 7 - cannot browse internet after connecting

Post by novaflash » Fri Jan 20, 2017 6:45 pm

Good. Now manually adjusting your route metric on your adapters should no longer be necessary.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

redtopia
OpenVpn Newbie
Posts: 14
Joined: Tue Jun 30, 2015 4:57 pm

Re: Windows 7 - cannot browse internet after connecting

Post by redtopia » Fri Jan 20, 2017 8:44 pm

Thank you very much! :)

Post Reply