Merge pull request #4 from Manevolent/wireguard

Fix wireguard listen port issue
This commit is contained in:
Manevolent 2021-09-21 21:39:04 -06:00 committed by GitHub
commit 102dc43bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]