Using OpenVPN client in Fedora 31 natively through GNOME

GNOME Desktop 3.34 that ships with Fedora 31 Workstation allow you to use OpenVPN natively, but setup it requires some extra steps, maybe this can be improved in a near future.

  1. Ensure that you have received the OpenVPN configuration file (.ovpn), certificate and key from the network where you want to connect (the IT department of the company owning the network must provide it to you)
  2. Create a .cert directory inside your home folder:
    $ mkdir ~/.cert
  3. Copy your OpenVPN configuration files to the directory you created above:
    $ cp -r {your files directory}/* ~/.cert/
  4. Apply reasonable permissions to this files:
    $ sudo chmod 600 ~/.cert/*
  5. Reload SELinux security files (this will reload the files you placed inside ~/.cert):
    $ restorecon -Rv ~/.cert/*
  6. Go to Gnome Settings > Network and on VPN click on + to add a new connection
  7. Select the last option: Import from file
  8. Navigate to your home folder. Note: If the hidden files are not showing, press Ctrl + H to show them
  9. Select the .ovpn file inside .cert
  10. Adjust the remaining parameters of the dialog accordly to your VPN provider settings, in my case I have to inform my VPN username and password, using the same password for the VPN account and for User Key Password.
  11. Click on Add and you will be abble to toggle on the switch in this dialog and be connected to the VPN. There is also a shortcut at the top right corner of the screen for your VPN
If something goes wrong, you can see the log messages running the command:
$ journalctl -u NetworkManager -r



Thanks to LanceBaynes's question at Stack Exchange, and those involved.

Leave a comment if you have any suggestions.

Comments

Popular posts from this blog

Habilitar cliques do touchpad no Debian LXDE

Redimensionar discos virtuais img utilizados no KVM

Regresso de versão no Debian