Fix wireguard listen port issue
This commit is contained in:
parent
8a85ae8aea
commit
a976ccf6b2
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user