Debian 10

To install and configure WireGuard, open a terminal.

1. Add WireGuard repo:

echo 'deb http://ftp.debian.org/debian buster-backports main' | sudo tee /etc/apt/sources.list.d/buster-backports.list


2. Update the package manager database:

sudo apt update


3. Install Wireguard:

sudo apt -y install wireguard openresolv

4. Open the WireGuard configurator in the Personal Area: "Manual setup" -> "WireGuard".
Then select the location and port you want to connect to and click "Add and Download".
To avoid confusion, give the configuration a name, for example "Linux".

Save your WireGuard configuration to:

/etc/wireguard/
for example, /etc/wireguard/amsterdam.conf

5. Set the correct rights to the WireGuard configuration folder:

sudo chown root:root -R /etc/wireguard && sudo chmod 600 -R /etc/wireguard


6. Turn on VPN:

wg-quick up amsterdam

To turn off the VPN, enter the command:

wg-quick down amsterdam

If you want the VPN to start at system startup, enter the command:

systemctl enable wg-quick@amsterdam