Skip to content

Install WireGuard VPN Client on Ubuntu Linux


sudo apt-get update && sudo apt-get upgrade
sudo apt-get install wireguard
wg genkey | tee private.key | wg pubkey > public.key
sudo nano /etc/wireguard/wg0.conf

[Interface]
PrivateKey = MPboR3Q/5Pg8dShdvr0m53H/Uda1Orwgl5AhQoVxw1I=
Address = 192.168.216.2/32,fc00:0:0:216::2/128
DNS = 8.8.8.8,8.8.4.4,192.168.110.1,8.8.8.8,8.8.4.4

[Peer]
PublicKey = //////////////////////////////////////////8=
AllowedIPs = 0.0.0.0/32
Endpoint = b4a20a39a566.sn.mynetname.net:45224
PersistentKeepalive = 15

[Peer]
PublicKey = NzCrJOX0JVBJFTXBWIs1tjtUH8uCtFg7c9hUz49MtWA=
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = b4a20a39a566.vpn.mynetname.net:45224
PersistentKeepalive = 15

Tags: