Ask Your Question

[F25/VPN] How to autoconnect to a VPN securely

asked 2017-01-31 18:24:14 +0000

psmis gravatar image

Please read before closing this as duplicate. I am aware that similar questions exist already, but they don't solve my problem and/or are outdated.

Software: Fedora 25 Gnome Workstation x64; openVPN

Question: I want my System to automatically connect to a VPN (openVPN) without ANY data bypassing the VPN. In the gnome-network GUI there is no option to autoconnect to a VPN, also I am not sure if I have to use additional counter-measures against DNS-leaks and similar known problems.

What I did was: 1. Open Gnome network settings 2. Import my ovpn file 3. Enable the VPN

edit retag flag offensive close merge delete


You need to open Gnome network settings then your VPN connection on IPV4 make sure the box that say "Use this connection only for the resources of this net" is not checked, then it will make all traffic to go to the VPN.

aeperezt ( 2017-02-02 00:16:57 +0000 )edit

The box is not checked. The problem that my VPN doesn't connect automatically on boot-up still persists.

psmis ( 2017-02-02 17:36:02 +0000 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-02 18:17:22 +0000

psmis gravatar image

updated 2017-02-02 18:46:07 +0000

wow...I finally found it but it really is not very intuitive...

  1. Open the Network Manager from the terminal: nm-connection-editor
  2. Edit the settings as show in the picture vpn-autoconnect-instruction

Edit: Changed the picture to internal hosting

edit flag offensive delete link more

Your Answer

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

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2017-01-31 18:24:14 +0000

Seen: 1,001 times

Last updated: Feb 02 '17