Debian 10 set up WireGuard VPN server

Originally published at: https://www.cyberciti.biz/faq/debian-10-set-up-wireguard-vpn-server/

How do I install and set up WireGuard VPN server on a Debian 10 Linux server? How can I configure Debian 10 as the WireGuard VPN server?

Hi,

Why use the shell to add a repository instead of apt-add-repository which is more reliable ?

sudo sh -c "echo 'deb http://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d

instead of

apt-add-repository -u 'http://deb.debian.org/debian buster-backports main contrib non-free'

Which update the cache in the same command and avoid overwriting an existing file ? Is there some bug with apt-add-repository or old habit ?

@claudex

Just old habit. But, will update the guide. Thanks for the feedback.

Good to know. I made a typo, the correct command is

apt-add-repository -u 'deb http://deb.debian.org/debian buster-backports main contrib non-free'

Thanks for the article and all the work.


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki