Ask Your Question

Fedora 29 - OpenVPN from network manager will not work without `sudo dhclient`

asked 2018-11-08 12:40:15 -0600

jocull gravatar image

Hello all!

I have an *.ovpn file that I'm using in the Gnome network manager interface. I'm able to add it, and connect to it just fine, but whenever I try to load a web page in Firefox (or any other kind of web activity, such as updates from dnf) these requests time out. Everything seems fine in ifconfig, I have an address and my other connections seem OK.

The only fix I know of to make it start working is to run sudo dhclient - then everything comes back to life. I don't even need to reconnect to the VPN. I don't understand why this is the fix though, and I actually end up with two dhclient instances running. This seems incorrect.

Oddly, if I connect from the terminal with sudo openvpn --config myfile.ovpn the VPN is incredibly stable and everything works fine. This does not work if I don't run under superuser. But it's less convenient and I have a lot of VPNs to deal with - I'd love to use the network manager.

I read multiple places that SELinux can (or used to) cause permission issues with the ~/.certs directory. However, I switched it to permissive mode and still have the same problem. I couldn't turn up any logs indicating that this was the problem.

I'm new to Fedora (attempting to switch over from Ubuntu) so I'm a little unfamiliar with where all the logs are so any direction you can provide will help me help you debug with me :) This problem was exactly the same in Ubuntu 18.04 LTS, so it likely not something specific to Fedora. Thanks for your help!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-11-08 14:01:31 -0600

hhlp gravatar image

I'm not answer your Qestion but I give you some tools to workaround to find the error in Fedora log's :

First I supose to install openVPN and start the service via systemctl and enable via systemctl to startup on boot :

At this point it’s a good idea to check the status of the service.

systemctl -l status openvpn@server

If it failed to start,

systemctl restart openvpn@server
journalctl --xn

will provide necessary debug information to troubleshoot any issues.

you can use too :

journalctl --unit=openvpn@server

there is an aplication in gnome where you can log's too :

it call it : gnome-logs install it and looks around...

This is a resumen for your purpose , but you can go deep read this how-do-i-view-logs-on-fedora

Now you have a good idea to find and get more information about your error...

Regards., HTH

edit flag offensive delete link more


As far as I know, openvpn server isn't used here since it is just for client connections. I can't find any references to it in either the service or the logs you listed above.

jocull gravatar imagejocull ( 2018-11-12 14:32:18 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-11-08 12:40:15 -0600

Seen: 314 times

Last updated: Nov 08 '18