- Use terminal/console to install WireGuard:
sudo apt update && sudo apt install openresolv wireguard
Choose the preferred location and select generate a new key.
Download configuration file and copy/move it to /etc/wireguard.
Set correct permissions:
sudo chown root:root -R /etc/wireguard && sudo chmod 600 -R /etc/wireguard
- Turn on WireGuard. For example we will use xeovo-lv:
wg-quick up xeovo-lv
- Turn off WireGuard:
wg-quick down xeovo-lv
- Start WireGuard automatically on boot (optional):
systemctl enable wg-quick@xeovo-lv
Don't connect to one key from multiple devices at the same time. The connection will be unstable and result in packet loss. Generate a key for every device that you will use.