WireGuard Linux client configuration guide
Installation:
sudo apt install wireguard
Get the .conf
client configuration file and place it under /etc/wireguard/
. This guide uses wg0.conf
as an example.
Start the connection:
sudo wg-quick up wg0
If it runs into the /usr/bin/wg-quick: line 32: resolvconf: command not found
error, install openresolv
:
sudo apt install openresolv
Check the connection status:
sudo wg show
Stop the connection:
sudo wg-quick down wg0
Alternatively, some Linux distributions support the configuration of WireGuard connections in their network manager.
References:
https://www.wireguard.com/install/
https://serverspace.io/support/help/how-to-install-wireguard-vpn-client-on-ubuntu-linux/
https://gist.github.com/sidmulajkar/472cc9dd475ef14a598db0c64f025491
https://forums.linuxmint.com/viewtopic.php?t=389817
https://www.xmodulo.com/wireguard-vpn-network-manager-gui.html