Setup VPN on CentOS Linux With OpenVPN

This tutorial explains how to set up the CentOS Linux VPN with the OpenVPN protocol using the network manager.

This tutorial is for CentOS Desktop version. If you want to set up the VPN on CentOS via command line, follow the guide here.

Initial Step: It is recommended to update the outdated packages on your system by running the sudo yum update command on the terminal.

Step #1: Open the terminal switch to root by entering su and then install the OpenVPN network manager by running the following command:

yum -y install NetworkManager-openvpn NetworkManager-openvpn-gnome

Setup OpenVPN on CentOS Linux
Step #2: Download the FastestVPN OpenVPN server config files from here.

Step #3: Go to your ‘Downloads’ folder and extract the downloaded config files folder.
Setup OpenVPN on CentOS Linux

In the extracted folder, you will find two separate folders containing the TCP and UDP server files.
Setup OpenVPN on CentOS Linux

Step #4: Now click on the Network icon and open the network settings. Then click on the “+” sign next to the VPN.
Setup OpenVPN on CentOS Linux

Step #5: Click on Import from file.
Setup OpenVPN on CentOS Linux
Step #6: Navigate to the Downloads folder, and then fastestvpn_ovpn. Then open any of the folders TCP or UDP.
Setup OpenVPN on CentOS Linux
Setup OpenVPN on CentOS Linux

Step #7: Select your desired VPN server location to which you want to connect, such as “Australia1”.
Setup OpenVPN on CentOS Linux

Step #8: Enter your FastestVPN username and password.
Setup OpenVPN on CentOS Linux

Step #9: Click the IPv6 tab and select Disable. Then click on Add.

Setup OpenVPN on CentOS Linux
Step #10: Your VPN profile has been created. Turn on its switch to connect to the VPN.
Setup OpenVPN on CentOS Linux

The VPN connection is under process

Setup OpenVPN on CentOS Linux

Now it has been connected successfully.

Setup OpenVPN on CentOS Linux

How to Disconnect

When you want to disconnect from the VPN, click on the Network or VPN icon and click Turn Off under the connected VPN connection name.
Setup OpenVPN on CentOS Linux