How to Setup OpenVPN on Fedora

Home » Guides » How to Setup OpenVPN on Fedora
Guides, How to No Comments
No votes yet.
Please wait...


Launched in 2003, Fedora OS is a Linux-based operating system to mainly serve as software for Hat Enterprise Linux releases. Fedora is an OS that suits both tech-advanced and casual users. It is a free open-source software that welcomes constant updates and software developments by everybody.

According to the official website: “The flexible capabilities of Fedora also make it easy for everyone to create their own Linux-based distribution. This can be done by means of Fedora’s set of spinning tools, allowing individuals to quickly select the desired packages and create live images for CD/DVD or USB, or installation discs. This has helped many of the official Fedora versions such as Fedora Electronic Lab and Fedora Xfce Spin evolve.”

Although Fedora OS is a security-focused operating system that contains a lot of security policies and features that are not present within other Linux distributions, many users prefer using a VPN while connecting to the internet on Fedora to further strengthen their security levels since Fedora does not anonymise or alter a user’s IP address. In this tutorial, we will show you how you can easily setup OpenVPN on Fedora. Scroll down for more details.

Setting Up OpenVPN on Fedora

Follow the steps below to successfully configure OpenVPN on Fedora:

1. First, download the components in the command below:

dnf update && dnf install openvpn unzip

2. Next, download the configuration files you want to connect to. We will use bVPN as an example of a VPN service provider for demonstration purposes. You can download the configration files here: and then click on “Generate” after you choose your preferred VPN server.

3.  Type in your VPN credentials (username & password) as shown below:

echo  “username”  >> /etc/openvpn/credentials

echo “CHANGE TO YOUR PASSWORD” >> /etc/openvpn/credentials

4. After that, run OpenVPN and test if  your connection works properly.

openvpn –config /etc/openvpn/bvpn.conf –daemon

5. In order to confirm that your connection was successful, wait for a few seconds (30 seconds), and then run the following command:


You should see the following response:

{“status”:true,”ip”:”the external ip”,”ptr”:”PTR for the IP address”}

Congratulations! You are now connected to VPN and will automatically connect on reboot. If you have encountered any problems, kindly contact your VPN admin.