The Cyber Monday deal is ending in 48 hours! Get 89% off our hottest-selling 5-year plan. Upgrade now! > Offer valid for existing users only.  

How to configure OpenVPN on Fedora 35

Dec 26, 2019
Sep 16, 2022
0 Comments
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)
Note: Dedicated IP addon can be only be connected with Ras protocol i.e PPTP/L2TP/SSTP/IKEV.
Find your VPN credentials for manual configuration.

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

  • Login to the Member area using your PureVPN registered email address and password.
  • From manage account section, go to the Subscriptions tab.
  • On Subscription 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 the 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.
Extract-OpenVPN-File
  • 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/*
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.
Add VPN
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 )