← Alle Anleitungen
WireGuard
WireGuard is a minimal, high-performance VPN protocol and kernel module that establishes encrypted point-to-point tunnels using static public-key pairs instead of certificates.
Diese Anleitung basiert auf der offiziellen Dokumentation von WireGuard, oben verlinkt — überprüfe dort immer die genauen Paket-/Versionsnamen, bevor du diese Befehle auf einem Produktionsserver ausführst, da sich Distributions- und Projektversionen mit der Zeit ändern.
1Install WireGuard
sudo apt install wireguardDebian releases older than Bullseye need backports enabled first.
2Generate a key pair
umask 077 && wg genkey > privatekeywg pubkey < privatekey > publickey3Create the interface configuration
Create /etc/wireguard/wg0.conf with your private key, address, and peer's public key/endpoint.
Reference: man wg-quick and man wg for the full [Interface]/[Peer] config syntax.
4Bring the tunnel up
sudo wg-quick up wg0sudo wg show5Enable the tunnel at boot
sudo systemctl enable --now wg-quick@wg0