Configuration and Connection to Wireguard Server on Linux Redhat 8.6 Minimal
Configuration to Wireguard Server on Linux Redhat 8.6 Minimal
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 of “Public IP Address”).
You should allow access by port UDP – 51280, which you can do in properties of the Azure firewall network.
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 and click “Open” to connect.
- In the opened console, it is necessary to enter a password that was specified while creating the virtual machine.
- After confirming the password, you get into the VM
- Next, you need to enter the following command to create a user
$ sudo addvpnuser
- Enter the username and press Enter button
- Next, one of the free IP addresses will be offered, press Enter
- The console displays the QR code for mobile devices and the path to the config.
- Enter the command:
$ sudo cat /etc/wireguard/usercfg/wg0.test_user.conf
- Copy the part of the code highlighted in the screenshot using Ctrl + C.
- Create a blank text document and paste the copied part of the code into it using Ctrl + V.
- Press File, then Save as.
- 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 on Linux Redhat 8.6 Minimal
- Next, you need to install the Wireguard app. Download link: https://www.wireguard.com/install/ Launch the application.
- Click on the Import tunnel(s) from the button and select the file that was created earlier.
- Press the Activate button
Congratulations! We hope 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.