Skip to main content
All CollectionsLinux Setup GuidesRedHat-based
WireGuard Installation Guide for Linux CentOS 8
WireGuard Installation Guide for Linux CentOS 8
Richard avatar
Written by Richard
Updated over 2 years ago

Step 1

Login to website client page: https://privatevpn.com/account/login


Step 2

Proceed to Control Panel: https://privatevpn.com/control-panel


Step 3

Select your preferred VPN location under WireGuard config.


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


Step 4

The WireGuard login will be generated below. Click the download button.


Step 5

Proceed to Terminal.


Step 6

In the Terminal, enter this line: sudo yum install elrepo-release epel-release


Enter y to proceed.


Step 7

Enter this code: sudo yum install kmod-wireguard wireguard-tools


Enter y to proceed.


Step 8

To connect, enter: sudo wg-quick up [path of the configuration file]


Connected!


To check if the VPN tunnel is running, enter the following command: sudo wg show
To disconnect on the VPN, enter: sudo wg-quick down [path of the configuration file]


If you have any questions, or require further assistance, please feel free to contact our support team anytime.

Did this answer your question?