Security News > 2020 > April > How to install and configure WireGuard VPN on Linux
Sudo apt-get install wireguard -y. Once the VPN service is installed, you're ready to configure it.
Interface] Address = SERVER IP SaveConfig = true ListenPort = 51820 PrivateKey = SERVER PRIVATE KEY [Peer] PublicKey = CLIENT PUBLIC KEY AllowedIPs = CLIENT IP. Where SERVER PRIVATE KEY is the string of characters you copied to your clipboard from the server, SERVER IP is the IP address of the hosting server, CLIENT PUBLIC KEY is the client public key, and CLIENT IP is the IP address of the client.
Now we're going to configure a Ubuntu client to connect to the VPN server.
Of course, you have to have WireGuard installed on the client as well, so follow the same steps you did for the server.
You should now have a VPN connection between client and server.