How to configure OpenVPN on Fedora 31

Dec 26, 2019
May 06, 2021
Download PDF

You can now configure PureVPN on Fedora 31. Consider the following tutorial if you wish to set up PureVPN on Fedora 31 using the OpenVPN protocol:

1 Before beginning to set up OpenVPN on a device with Fedora, you need a premium PureVPN account and the required OpenVPN configuration files from here. The OpenVPN configuration files can be obtained from the link below using any browser.

OpenVPN configuration files

2 A new prompt will appear. Check the Save File box and click OK. The files are going to be available in your Downloads directory.

Save OpenVPN file

3 Go to your Downloads directory, right-click the ZIP archive and select Extract Here.


4 The next step is to install the config files, which will require sudo privilege. Copy and paste the contents of the Zip file to directories that override Selinux, such as /etc/pki and /opt.

Follow the guidelines below when Selinux doesn’t allow Network-Manager to access certificate files that are needed by OpenVPN:

  • Click Activities at the top left of the screen and type Terminal in the search field to open it.
  • To copy the extracted files to /opt/ partition, you will first have to change your directory to Downloads. Run the following command

Cd Downloads/

Enter command syntax :

 sudo cp -rp <sourcepath_to_file> <destination>

sudo cp -rp New+OVPN+Files /opt/

Change permission for the OpenVPN files and certificate to 644 so that everyone has access privilege

Enter command syntax :

sudo chmod 644 <path_to_files/*>

sudo chmod 644 New+OVPN+Files/*


5 Now, follow these steps:

  • Click the Network Connection icon
  • Go to Wired Connected and select Wireless Settings

Wireless Settings

6 Click the + icon to add a VPN connection and select the Import from File option.


Import from File

7 Go to the newly created directory with config files in the Opt folder. Select the file with .ovpn extension, and click the Open button.

Open .ovpn extension

Now, use the following settings:

  • Name: German-TCP (Or you can use your preferred connection name as well)
  • Type: Choose Password from the drop-down menu
  • User name: Your PureVPN user name
  • Password: Your PureVPN password

Once done, click the Folder icon next to CA Certificate and add the ca.crt.crt file. Hit the Apply button

German-TCP VPN

8 Select the VPN connection you have just created, and toggle the button on to connect to PureVPN.

Select the VPN connection

9 Viola! You are now connected.

OpenVPN connected on Fedora

How helpful did you find this answer?

Comments (0 )