Skip to content

Instantly share code, notes, and snippets.

@phenry725
Last active November 30, 2025 18:30
Show Gist options
  • Select an option

  • Save phenry725/292eb203723bcbb9142494c23c74683e to your computer and use it in GitHub Desktop.

Select an option

Save phenry725/292eb203723bcbb9142494c23c74683e to your computer and use it in GitHub Desktop.
Server conf for Wireguard
[Interface]
Address = 10.200.200.1/32
SaveConfig = true
PostUp = iptables --append FORWARD --in-interface wg0 --jump ACCEPT
PostUp = iptables --table nat --append POSTROUTING --out-interface eth0 --jump MASQUERADE
PostDown = iptables --delete FORWARD --in-interface wg0 --jump ACCEPT
PostDown = iptables --table nat --delete POSTROUTING --out-interface eth0 --jump MASQUERADE
ListenPort = 51820
PrivateKey = <redacted>
[Peer]
PublicKey = u1jmefpth75AFakmyJVxun9Ki54CwCFA0zY34MCWMUY=
PresharedKey = <redacted>
AllowedIPs = 10.200.200.1/32
[Peer]
PublicKey = HhuvnNMoAxXMTOjksDCPBNLmDPwmCHpz6nxwCF7zhno=
AllowedIPs = 10.200.200.1/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment