Pastery

The server configuration The client configuration +

 1[Interface] 2Address = 192.168.2.1 3PrivateKey = <redacted> 4ListenPort = 51820 5PostUp   = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 6PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE 7 8[Peer] 9PublicKey = <your key>10AllowedIPs = 192.168.2.2/24
New paste