Install WireGuard
sudo apt install wireguard
Agar konfigurasi DNS pada file config wireguard bisa berjalan install openresolv
sudo apt install openresolv
Contoh Konfigurasi Wireguard Client (Dibawah NAT)
cd /etc/wireguard/
sudo nano wg0.conf
Contoh isi file konfigurasi
[Interface]
PrivateKey = kC9lPV95Bfbi5ZSNfkYKudXXXXXXXXXXXXXXXXXXXXX=
Address = 10.10.10.2/24, fdcc:ad94:bacf:61a4::cafe:2/112
DNS = 1.1.1.1, 8.8.8.8
MTU = 1420
[Peer]
PublicKey = wwnsyljZf/Yar4SKfp9FoHOE/XXXXXXXXXXXXXXXXXXX=
PresharedKey = /GvgEViRtT2FoKIbICAqR/XXXXXXXXXXXXXXXXXXXXX=
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 0
Endpoint = 103.103.103.103:51820