Fix wireguard listen port issue

This commit is contained in:
Manevolent 2021-09-21 21:38:18 -06:00
parent 8a85ae8aea
commit a976ccf6b2
No known key found for this signature in database
GPG Key ID: 2E9B7592DFA4F344

View File

@ -1,6 +1,9 @@
[Interface]
PrivateKey = ${wg_key}
Address = ${wg_address}/${wg_prefix:-32}
ListenPort = ${wg_port:-51820}
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
{{ range files "wireguard/peers" }} {{ if ne . "${tinc_peer_name}" }}
[Peer]