Last active
November 30, 2025 18:30
-
-
Save phenry725/292eb203723bcbb9142494c23c74683e to your computer and use it in GitHub Desktop.
Server conf for Wireguard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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