Introducing PureSquare – for security beyond VPNs

Visit our website

Don’t worry about forgetting your passwords ever again with the all-new password manager. Try PureKeep

How to configure OpenVPN on Fedora 35

Dec 26, 2019
Mar 27, 2023
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:

Things to Consider:

  1. You have a working internet connection.
  2. Linux Fedora 31 Supported Device.
  3. A Premium PureVPN account (If you haven’t bought yet click 👉here to buy).
Find your VPN credentials for manual configuration.

To find your VPN credentials log into the PureVPN member area. Click 👉 here to visit member area.

  • Login to the Member area using your PureVPN registered email address and password.
  • On subscriptions tab scroll down to be able to view your VPN credentials.
  • You will be able to see and copy your VPN credentials.
  • Note down your PureVPN username and click on Eye icon to make your password visible and use it in the manual configuration.
How to connect PureVPN manually on Linux Fedora 35
  • The following is required for OpenVPN client to work on Linux Fedora 35:
    1. A working installation from Fedora (This guide uses version 35).
    2. A device with internet access.
    3. A PureVPN premium account (Don’t have one? Sign up now!).
  • Go to the Terminal window and install OpenVPN Type the following commands one by one:
1. sudo yum -y update
2. sudo dnf install openvpn
3. sudo dnf install NetworkManager-openvpn
4. sudo dnf install NetworkManager-openvpn-gnome
  • Now Select the following options:
    1. Click on Wired Connection.
    2. Go to Settings.
    3. Select Network option.
  • Click on the + icon to add a VPN connection and select Import from file option to upload an OpenVPN.
  • Click on the + icon to add a VPN connection and select Import from file option to upload an OpenVPN.
  • When the new window appears complete the fields as below:
    1. Insert Connection name: PureVPN
    2. Insert Gateway: (already selected/entered)
    3. Connection Type: Password from drop down menu
    4. Insert Username provided by PureVPN
    5. Insert Password provided by PureVPN
    6. CA Certificate: Already uploaded.
    7. Сlick Add button.
  • Now go to the Wired Connections option and under VPN Connections click on the newly created PureVPN connection to activate the VPN connection.

You are connected to PureVPN now!

How to connect PureVPN manually on Linux Fedora 31
  • 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
  • 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
  • Go to your Downloads directory, right-click the ZIP archive and select Extract Here.
  • 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 does not allow Network-Manager to access certificate files that are needed by OpenVPN:
    1. Click Activities at the top left of the screen and type Terminal in the search field to open it.
    2. 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 :
    1. sudo cp -rp <sourcepath_to_file> <destination>
    2. 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 :
    1. sudo chmod 644 <path_to_files/*>
    2. sudo chmod 644 New+OVPN+Files/*
  • Now, follow these steps:
    1. Click the Network Connection icon.
    2. Go to Wired Connected and select Wireless Settings.
Wireless Settings
  • Click the + icon to add a VPN connection and select the Import from File option.
Import from File
  • 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:
    1. Name: German-TCP (Or you can use your preferred connection name as well)
    2. Type: Choose Password from the drop-down menu
    3. Enter your PureVPN credentials. Here is how you can 👉find your VPN credentials.
  • Once done, click the Folder icon next to CA Certificate and add the ca.crt.crt file. Hit the Apply button.
German-TCP VPN
  • Select the VPN connection you have just created, and toggle the button on to connect to PureVPN.
Select the VPN connection
  • You are now connected.
OpenVPN connected on Fedora
Was this article helpful? Rate and share your comments below. Your input matters to us and everyone else in the Cyber Security Community.

How helpful did you find this answer?

Comments (0 )