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
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.
In the extracted folder, you will find two separate folders containing the TCP and UDP server files.
Step #4: Now click on the Network icon and open the network settings. Then click on the “+” sign next to the VPN.
Step #5: Click on Import from file.
Step #6: Navigate to the Downloads folder, and then fastestvpn_ovpn. Then open any of the folders TCP or UDP.
Step #7: Select your desired VPN server location to which you want to connect, such as “Australia1”.
Step #8: Enter your FastestVPN username and password.
Step #9: Click the IPv6 tab and select Disable. Then click on Add.
Step #10: Your VPN profile has been created. Turn on its switch to connect to the VPN.
The VPN connection is under process
Now it has been connected successfully.
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.