WireGuard VPN client configuration on Ubuntu

Install the package and prerequisites:

apt install wireguard resolvconf
Create a private and public key:
cd /etc/wireguard
umask 077
wg genkey > private-key
wg pubkey > public-key < private-key
Create a config file:
cat /etc/wireguard/wg0.conf
[Interface]
PrivateKey = {{ enter private key from /etc/wireguard }}
Address = {{ enter ip address provided by administrator }}
DNS = 10.0.1.133

[Peer]
PublicKey = {{ enter server public key provided by administrator }}
AllowedIPs = 10.0.0.0/16 # enter your range
Endpoint = x.x.x.x:55000
Create systemd service and start it:
systemctl enable wg-quick@wg0.service
systemctl start wg-quick@wg0.service
systemctl status wg-quick@wg0.service
Check connection
wg