Wireguard VPN

Wireguard VPN

SO, here I am Creating VPN Server (Wireguard/OpenVPN) in UBUNTU Linux Server.


First Need to Create Virtual Machine in Azure (Installation Ubuntu Server).


Create a virtual machine

I am here selecting Resource Group and Region according to the Azure Services.

And I have selected Operation UBUNTU 20.04.

You can select the size according to the requirments.

Create the Administrator account and password

And allowed the SSH port

Disks Selection

Networking MENU please check the Subnet.

Validation done create the VM

Once machine created you will get the machine details and Public and Private IP.

Connect from SSH or Putty according to your choice.

So need to update and upgrade the server.

shariq@piexcess:~$ sudo apt update -y

shariq@piexcess:~$ sudo apt upgrade -y

So now starting to install Wireguard/opnVPN Server.

shariq@piexcess:~$ curl -L https://install.pivpn.io | bash

Once curl commands run successfully

Here I have selected Wireguard VPN Server

Need to allow the mention port in vm network

Allow the 51820 port to inbound rules

Outbound rules

You can use your own DNS but here I m using google DNS

ENTER the Public IP or Public Domain which is associated with your cloud network

The Server Keys will now be generated.

Yes to upgrades of security patches

So security patches will be update

So just Restart the Server

Restarting server

Now create the VPN User

shariq@piexcess:~$ pivpn add


(wg – wigreguard)

shariq@piexcess:~$ pivpn wg add

Once create the user

Connect from wireguard client

Download the user and try to connect with wireguard vpn server.

So here connection successfully done

One thought on “Wireguard VPN

  • August 19, 2022 at 11:33 am

    I think other site proprietors should take this site as an model, very clean and great user friendly style and design, as well as the content. You are an expert in this topic!


Leave a Reply

Your email address will not be published. Required fields are marked *