Merge pull request #4 from Manevolent/wireguard
Fix wireguard listen port issue
This commit is contained in:
commit
102dc43bd0
@ -1,6 +1,9 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
PrivateKey = ${wg_key}
|
PrivateKey = ${wg_key}
|
||||||
Address = ${wg_address}/${wg_prefix:-32}
|
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}" }}
|
{{ range files "wireguard/peers" }} {{ if ne . "${tinc_peer_name}" }}
|
||||||
[Peer]
|
[Peer]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user