blob: 03d4c4d7ac99a443027935c6d8fdde052e3562c5 [file] [log] [blame]
[Interface]
Address = 10.99.0.1/24
ListenPort = 51820
PostUp = wg set wg0 private-key /etc/wireguard/privatekey && iptables -t nat -A POSTROUTING -s 10.99.0.0/24 -o eth0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
# [Peer]
# PublicKey = <client's publickey>
# AllowedIPs = 10.99.0.2/32