openvpn connect, but no internet access

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nadav96

openvpn connect, but no internet access

Post by nadav96 »

Hey there!

I recently tried connecting to a vpn server through openvpn (for web browsing)
after following several manuals, it connected sucssesfuly (at least I think it was, it gave me "Initialization Sequence Completed"), but there was no internet...

I installed those packages: openvpn, network-manager-openvpn and network-manager-openvpn-gnome.
I tried to connect to several vpn providers (such as freevpnme, vpnbook...), but no sucsess there (same problem every time)...

Another problem I've encountered was when I tried adding a network connection vpn (gui network setting), imported .ovpn files, every time it gave me this error:
Cannot import VPN connection
The file 'FreeVPN.me[Server1]-TCP80.ovpn' could not be read or does not contain recognized VPN connection information

Error: unknown error.
I didn't find any help in the web that helped troubleshoot my problem, so hopefully I will find an answer here :?

My op is cinnamon 17.1, 64

Thanks in advance! :)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
CompSciGuy
Level 1
Level 1
Posts: 24
Joined: Mon Jul 21, 2014 5:07 pm

Re: openvpn connect, but no internet access

Post by CompSciGuy »

I am having the same issue. The vpn connects, but my browser just times out whenever I go to any webpage.
Did you manage to solve the problem?
Gubagu

Re: openvpn connect, but no internet access

Post by Gubagu »

Hey there,
Hope that helps

Click on the Network Manager icon and choose "VPN Connections" -> "Configure
VPN...". Then choose the connection name and click "Edit". Go to "IPv4
Settings" tab and click the "Routes" button at the lower-right corner.
Check off "Use this connection only for resources on its network".

Found it long time ago on some forum cannot remember which one. It should be still out there.

Cheerz,
Guby
jalirious

Re: openvpn connect, but no internet access

Post by jalirious »

For me, I had to enable LZO compression in the advanced options (17.1 linum mint, pia vpn)

I use the network-manager-openvpn-gnome package.
Bobo-the-Cat
Level 3
Level 3
Posts: 111
Joined: Tue Jun 03, 2008 1:03 pm

Re: openvpn connect, but no internet access

Post by Bobo-the-Cat »

I have the opposite problem with openvpn. It connects OK, and I can access the internet OK (http and https), but I cannot connect to servers using PUTTY (ssh) - the connections time out. Any ideas?
mramirez686

Re: openvpn connect, but no internet access

Post by mramirez686 »

Thank you, Guby! I was having the same internet access issue and that resolved the problem. Greatly appreciated--cheers.
Lanser

Re: openvpn connect, but no internet access

Post by Lanser »

If your new OpenVPN service is indicating it's connected, but your browser is timing out. It could be that your DNS cache just needs clean out.
As suggested by others, I have used both of the following with success.

Code: Select all

sudo /etc/init.d/nscd restart
or

Code: Select all

sudo /etc/init.d/dns-clean start
Lanser
germsrosolino

Re: openvpn connect, but no internet access

Post by germsrosolino »

I am having a similar issue. I use HMA VPN Pro. I followed all the proper installation procedures, and when I connect it says "VPN Connection Successfully Established. But when I attempt to load any site (even my homepage) I immediately receive a Server Not Found error. No timeout, it happens instantly. I have tried every fix listed here. Any help would be greatly appreciated. Still relatively new to linux. Just switched over from Windows 8.1 (gag)
germsrosolino

Re: openvpn connect, but no internet access

Post by germsrosolino »

For those of you having a similar problem to what I posted above try adding two nameservers to your resolv.conf file with the following code:

sudo echo nameserver 208.67.222.222 > /etc/resolv.conf

sudo echo nameserver 208.67.220.220 > /etc/resolv.conf

I had to login as root before it would grant access to modify the files, so you may run across that. I hope this helps someone.

Oh, and if you restart the computer, you may need to rerun the commands if you have the same issue.
ka1axy
Level 1
Level 1
Posts: 3
Joined: Tue Jul 04, 2017 8:14 pm

Re: openvpn connect, but no internet access

Post by ka1axy »

Your addition of the nameserver addresses to resolv.com fixed the problem on my new install. Thank you. I have been trying to solve this problem for a while with no luck.

Linux Mint 18.1, OpenVPN and HMA.

Many many thanks,
Peter
vinella

Re: openvpn connect, but no internet access

Post by vinella »

germsrosolino wrote: Thu Jul 16, 2015 7:42 am For those of you having a similar problem to what I posted above try adding two nameservers to your resolv.conf file with the following code:

sudo echo nameserver 208.67.222.222 > /etc/resolv.conf

sudo echo nameserver 208.67.220.220 > /etc/resolv.conf

I had to login as root before it would grant access to modify the files, so you may run across that. I hope this helps someone.

Oh, and if you restart the computer, you may need to rerun the commands if you have the same issue.
thanks so far it looks like this has helped me out with the same problem.
a_subscriber
Level 3
Level 3
Posts: 162
Joined: Fri Dec 01, 2017 10:07 am

Re: openvpn connect, but no internet access

Post by a_subscriber »

Gubagu wrote: Fri Jan 16, 2015 9:37 am Hey there,
Hope that helps

Click on the Network Manager icon and choose "VPN Connections" -> "Configure
VPN...". Then choose the connection name and click "Edit". Go to "IPv4
Settings" tab and click the "Routes" button at the lower-right corner.
Check off "Use this connection only for resources on its network".

Found it long time ago on some forum cannot remember which one. It should be still out there.

Cheerz,
Guby
Thanks. You help me. Now it's work just fine.
a_subscriber
Level 3
Level 3
Posts: 162
Joined: Fri Dec 01, 2017 10:07 am

Re: openvpn connect, but no internet access

Post by a_subscriber »

Gubagu wrote: Fri Jan 16, 2015 9:37 am Hey there,
Hope that helps

Click on the Network Manager icon and choose "VPN Connections" -> "Configure
VPN...". Then choose the connection name and click "Edit". Go to "IPv4
Settings" tab and click the "Routes" button at the lower-right corner.
Check off "Use this connection only for resources on its network".

Found it long time ago on some forum cannot remember which one. It should be still out there.

Cheerz,
Guby
xujiayu
Level 1
Level 1
Posts: 3
Joined: Thu Nov 22, 2012 11:48 am

Re: openvpn connect, but no internet access

Post by xujiayu »

Gubagu wrote: Fri Jan 16, 2015 9:37 am Hey there,
Hope that helps

Click on the Network Manager icon and choose "VPN Connections" -> "Configure
VPN...". Then choose the connection name and click "Edit". Go to "IPv4
Settings" tab and click the "Routes" button at the lower-right corner.
Check off "Use this connection only for resources on its network".

Found it long time ago on some forum cannot remember which one. It should be still out there.

Cheerz,
Guby
Thanks Gubagu. I realized this is an old post and there's a slight variation but I can confirm this works for LM 20 and LM 21.
Locked

Return to “Networking”