WireGuard-VPN auf einem $5-VPS
WireGuard mit einer einzigen Config auf einem NoctisNode-VPS: gehärtete Defaults, IPv6, Peers in Sekunden. Copy-paste-fertig.
WireGuard verschafft Ihnen in Minuten einen privaten Exit auf sauberem NoctisNode-IP-Raum. Alles unten setzt Ubuntu 24.04 oder Debian 12 voraus — beide Images im Bestellfluss per Klick.
Installieren und aktivieren
apt update && apt install -y wireguard
systemctl enable wg-quick@wg0Server-Konfiguration
Schlüssel erzeugt wg genkey | tee server.key | wg pubkey. Forwarding dauerhaft in /etc/sysctl.conf aktivieren, statt sich auf PostUp zu verlassen.
[Interface]
Address = 10.66.0.1/24, fd42::1/64
ListenPort = 51820
PrivateKey = <server-private-key>
PostUp = sysctl -w net.ipv4.ip_forward=1; ip6tables -t nat -A POSTROUTING -s fd42::/64 -o eth0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 10.66.0.0/24 -o eth0 -j MASQUERADE
PostDown = sysctl -w net.ipv4.ip_forward=0Peer hinzufügen
Jeder Peer bekommt eine /32 in IPv4 und eine /128 in IPv6. Mit systemctl restart wg-quick@wg0 neu starten und am Client mit AllowedIPs = 0.0.0.0/0, ::/0 den ganzen Verkehr über den VPS leiten.
[Peer]
PublicKey = <client-public-key>
AllowedIPs = 10.66.0.2/32, fd42::2/128Härtungs-Defaults
- ▹In der Firewall nur 51820/udp plus SSH öffnen; SSH nur mit Keys halten.
- ▹Peer-Keys rotieren, wenn ein Gerät die Kontrolle wechselt — ein Peer-Block löschen geht sofort.
- ▹IPv6 ist in jedem NoctisNode-Plan enthalten; nutzen Sie es statt reinen IPv4-Tunneln.