All Collections
Linux Setup Guides
RedHat-based
OpenVPN CLI Setup for Linux CentOS 8
OpenVPN CLI Setup for Linux CentOS 8
Richard avatar
Written by Richard
Updated over a week ago

Step 1


for this guide, we will select a Sweden-based server.


Step 2

Proceed to Terminal application.


Step 3

In the Terminal, install EPEL repository by entering this code: sudo dnf install epel-release


Enter y to proceed.


Step 4

Enter this code to install OpenVPN client: sudo dnf install openvpn


Enter y to proceed.


Step 5

To connect, enter: sudo openvpn [path of the configuration file]


Step 6

Enter your PrivateVPN registered email address and Password.


Step 7

Wait for a few seconds..


You are connected to the VPN as soon as you see the message: Initialization Sequence Completed.


To disconnect from the VPN, return to the terminal and hit Ctrl + C.

Did this answer your question?