- 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
⚡ Warning
Do not connect to the same key from multiple devices at once. This causes unstable connections and packet loss. Always generate a unique key for each device you plan to use.