Skip to content

Instantly share code, notes, and snippets.

View fisker's full-sized avatar
🔍
Looking for a job

fisker Cheung fisker

🔍
Looking for a job
View GitHub Profile
@phenry725
phenry725 / wg0-server.conf
Last active December 18, 2024 12:06
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>