linuxserver-mods/wireguard-ipv6/root/defaults/server.conf
Michel Roux 351b6f2ca4
Some checks failed
dl / skip-chown (push) Failing after 18s
dl / wireguard-ipv6 (push) Failing after 15s
feat: 🎉 initial commit
2024-05-15 20:36:19 +02:00

7 lines
410 B
Plaintext

[Interface]
Address = ${INTERFACE_IPV4}.1, ${INTERFACE_IPV6}::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