Ask Your Question

Automatically connect to OpenVPN?

asked 2015-09-15 02:25:57 -0500

BradErz gravatar image

I have added my OpenVPN connection through the network manager. However im pretty sure there should be an option on all wireless/wired connections where i can set it to automatically connect to my VPN, Im pretty sure this option is on Ubuntu/Arch gnome3 its quite annoying that i cant find the option.

Does fedora handle this in a different way or whats the best way to automatically connect to my vpn?

edit retag flag offensive close merge delete


You can always create a script that load at start after NetworkManager when your computer start.

aeperezt gravatar imageaeperezt ( 2015-11-28 21:13:58 -0500 )edit

If you want to go the script route, here is an example

florian gravatar imageflorian ( 2018-06-25 23:02:12 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted

answered 2018-07-12 07:03:48 -0500

Faced with similar issue. I decided to connect proxy server instead VPN and I don't have any regrets. Everything works perfect. Besides I think proxy is more reliable when it comes to your anonymity.

edit flag offensive delete link more

answered 2018-06-25 22:58:22 -0500

florian gravatar image

Gnome's NetworkManager can't do what you want, but there is a little GUI tool that does it for you (no startup script needed)

nm-connection-editor (in case it's not installed: sudo dnf install nm-connection-editor)

First, you select your network interface. Then, under the General tab you can find a setting that says:

Automatically connect to VPN when using this connection

Check the box and you are good to go.

edit flag offensive delete link more

answered 2018-06-23 18:13:34 -0500

fedofix gravatar image

updated 2018-06-23 18:26:09 -0500

Do you have a vpn config file ? Sure Network-manager can handle such a vpn config file. To start. Install NetworkManager-openvpn-gnome.x86_64 : NetworkManager VPN plugin for OpenVPN - GNOME files

edit flag offensive delete link more

Question Tools



Asked: 2015-09-15 02:25:57 -0500

Seen: 836 times

Last updated: Jul 12 '18