Install wireguard VPN on Ubuntu
To install wireguard VPN on ubuntu, run
1 2 3 4 5 6 |
apt update apt install software-properties-common apt install linux-headers-$(uname -r) add-apt-repository ppa:wireguard/wireguard apt-get update apt-get install wireguard |
Generate Keys
1 2 3 4 |
cd /etc/wireguard umask 077 wg genkey > privatekey cat privatekey | wg pubkey > publickey |
Configure wireguard
You can generate wireguard configuration using