Files
cloudhost/wireguard/server.conf
T
2026-10-23 15:12:59 +08:00

12 lines
491 B
Plaintext

[Interface]
PrivateKey = sFQmh6nRt3MrZc0v4KHNMH16ngj4ndgmdGKlXZ5uG3k=
Address = 192.168.200.1/24
ListenPort = 51820
# sudo wg set wg0 peer MvdYtQy6ran5wrKt4OMUiDqYQERg9/JaLZ89LsFTGg8= allowed-ips 192.168.200.2/32
# sudo systemctl enable wg-quick@wg0.service
# sudo nft add table ip nat
# sudo nft -- add chain ip nat POSTROUTING { type nat hook postrouting priority srcnat \; }
# sudo nft add rule ip nat POSTROUTING ip saddr 192.168.200.0/24 masquerade
# sudo sysctl net.ipv4.ip_forward=1