VPNs (Virtual Private Networks) are nothing new, and if you find yourself in a scenario where need to create a tunnel to a secure network, OpenVPN is your go to software to get you there. OpenVPN is available for free for Windows, Linux, or Mac.
Installing OpenVPN on Fedora is pretty easy to do. You can either download OpenVPN directly, or install it using yum or dnf (Fedora 22 and up). Since we’re using Fedora 23, we’ll be using dnf for this example. OpenVPN may already be installed by default, but if it isn’t, you can just run the following the command:
sudo dnf install NetworkManager-openvpn NetworkManager-openvpn-gnome openvpn
For my purposes, I needed OpenVPN in order to create a secure tunnel to the network at my downtown office. My IT team provided me with the certs as well as the .opvn file. Instead of using the command line to configure OpenVPN, I found that the easiest way to set it up was to just use the Network Manager GUI which you can find under System Tools/Settings/Network.
I recommend copying your certs and .opvn file to /etc/openvpn. I initially had kept the certs in my home directory but this didn’t work since OpenVPN didn’t have the correct permissions to access them.
Once you’re ready, press the plus (+) to add a new network. Choose VPN and then import your .opvn file.
If the import worked, you’ll see that the required fields will be populated: User Certificate, CA Certificate and Private Key. Then, include your username and password in the appropriate fields, and hit apply.
Once you’re done, all you need to do to test the VPN is click “ON” and you’re done.
Was this helpful?