mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-14 15:36:18 +00:00
9 lines
371 B
Plaintext
9 lines
371 B
Plaintext
[Interface]
|
|
Address = ${wg_net}/24
|
|
PrivateKey =
|
|
PostUp = iptables -t nat -I POSTROUTING 1 -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE; iptables -I FORWARD -i wg0 -o wg0 -j DROP
|
|
PreDown = iptables -t nat -D POSTROUTING -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE; iptables -D FORWARD -i wg0 -o wg0 -j DROP
|
|
ListenPort = ${wg_port}
|
|
SaveConfig = true
|
|
DNS = ${global_dns}
|