Richten Sie Ihren eigenen WireGuard-VPN-Server auf einem VPS ein. Echte Befehle, läuft auf Ubuntu 22.04/24.04. Ihr Traffic, Ihre Regeln. Ab 12 €/Monat.
Ihr Server, Ihr Traffic, keine VPN-Firma dritter Anbieter, die etwas protokolliert. Läuft auf jedem Ubuntu-VPS.
Holen Sie sich einen Tarif auf /vps - Core VPS 4 (€12) hat eine dedizierte IP, die Sie für VPN wollen.
ssh root@YOUR_SERVER_IP apt update && apt install -y wireguard qrencode
wg genkey | tee /etc/wireguard/server.key | wg pubkey > /etc/wireguard/server.pub cat > /etc/wireguard/wg0.conf <<'EOF' [Interface] Address = 10.66.66.1/24 ListenPort = 51820 PrivateKey = (insert server.key contents) PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE EOF # client wg genkey | tee client.key | wg pubkey > client.pub cat > client.conf <<'EOF' [Interface] PrivateKey = (client.key) Address = 10.66.66.2/24 DNS = 1.1.1.1 [Peer] PublicKey = (server.pub) Endpoint = YOUR_SERVER_IP:51820 AllowedIPs = 0.0.0.0/0 PersistentKeepalive = 25 EOF qrencode -t ansiutf8 < client.conf # QR in terminal - scan with phone
systemctl enable --now wg-quick@wg0 sysctl -w net.ipv4.ip_forward=1 echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
Scannen Sie den QR-Code mit der WireGuard-App - Sie sind im Tunnel. Vollständige Tarifliste: /vps.