Guide – How To Start –  Wireguard VPN Server on Rocky 8

Take control of your online experience and enjoy unparalleled security and speed using our Wireguard VPN Server on Rocky 8.

This is a quick deployment and ready-to-run image.

Simple and rapid installation. Easy to maintain.

Configuration and Connection to Wireguard VPN Server on Rocky 8

After purchasing and starting the VM, you should know its IP address. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”).

You should allow access by ports TCP & UDP – 51280-51282, which you can do in the properties of the Azure firewall network.

Connection to WireGuard Server

  1. To manage with a WireGuard Server, you should connect to a VM.
    • With OpenSSH

In the Windows 10 operating system (starting with version 1809), an OpenSSH client is available, with which you can connect to Linux servers via SSH. If Windows 10 is suitable and the OpenSSH client is installed, you can start connecting via SSH. To do this, launch a normal Windows command prompt and enter the command “ssh user@*vm_ip*” (1), where “user” is the username that was specified while creating the virtual machine and “*vm_ip*” is the VM IP address.

Then type “Yes” (2) and enter a password (3) that was specified while creating the virtual machine.

  • With the PuTTY application 

To do this, you need the PuTTY application to connect via ssh. You can download it at the following link – Download

Run PuTTY, enter the VM address in the “Host” field (1), and click “Open” (2) to connect.

In the opened console, you will need to enter a username (1) and password (2) that were specified while the VM was being created (you’ll not see the password in the console while entering it). 

  1. Next, you need to enter the following command to create a user

$ sudo addvpnuser

  1. Enter the username and press Enter button
  1. Next, one of the free IP addresses will be offered, press Enter
  1. The console displays the QR code for mobile devices and the path to the config.
  1. Enter the command:

$ sudo cat /etc/wireguard/usercfg/wg0.test_user.conf

  1. Copy the part of the code highlighted in the screenshot using Ctrl + C.
  1. Create a blank text document and paste the copied part of the code into it using Ctrl + V.
  1. Press File, then Save as.
  1. In the line Save as type, select All files from the drop-down list. In the File name line, enter the file name and the “.conf” extension. Save the document by clicking on the Save button.

Connection to WireGuard Server

  1. Next, you need to install the WireGuard app. Download link: https://www.wireguard.com/install/ Launch the application.
  2. Click on the Import tunnel(s) from the button and select the file created earlier.
  1. Press the Activate button

Congratulations! This tutorial helped you configure the WireGuard VPN server and client. This setup allows you to surf the web anonymously by keeping your traffic data private.

Website Built with WordPress.com.

Up ↑