10 lines
434 B
Plaintext
Raw Permalink Normal View History

[Interface]
Address = ${CLIENT_IPS}
SaveConfig = true
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o lan -j MASQUERADE; iptables -t nat -A POSTROUTING -o admin -j MASQUERADE;
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o lan -j MASQUERADE; iptables -t nat -D POSTROUTING -o admin -j MASQUERADE;
ListenPort = ${ENDPOINT_PORT}
PrivateKey = ${SERVER_PRIVATE_KEY}