VPN with WireGuard¶
Connecting servers and admin machines through an encrypted tunnel: generating keys, setting up a server and clients, and reaching admin services only through the VPN.
Basics: How WireGuard works, what to install, a complete server and client setup and the firewall
Commands¶
From other chapters¶
-
ip address show wg0andip routeshow the tunnel interface and its routes. Covered in the chapter Network. -
Open UDP port 51820 and allow SSH only through
wg0. Covered in the chapter Network. -
Connect to
10.8.0.1through the tunnel once SSH is closed to the internet. Covered in the chapter SSH. -
Check which DNS server applies while the tunnel is up. Covered in the chapter Network.