mirror of
https://github.com/linuxserver/docker-wireguard
synced 2024-11-17 21:25:40 +00:00
f408e2e610
Closes #169
7 lines
383 B
Plaintext
7 lines
383 B
Plaintext
[Interface]
|
|
Address = ${INTERFACE}.1
|
|
ListenPort = 51820
|
|
PrivateKey = $(cat /config/server/privatekey-server)
|
|
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
|
|
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
|