Install wireguard VPN on Ubuntu

To install wireguard VPN on ubuntu, run

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

cd /etc/wireguard
umask 077
wg genkey > privatekey
cat privatekey | wg pubkey > publickey

Configure wireguard

You can generate wireguard configuration using

https://www.wireguardconfig.com

Comments

Leave a Reply

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