mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-16 16:36:17 +00:00
chore: fix docker (hopefully)
This commit is contained in:
8
docker/wg0.conf.template
Normal file
8
docker/wg0.conf.template
Normal file
@@ -0,0 +1,8 @@
|
||||
[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}
|
||||
Reference in New Issue
Block a user