2021-09-21 15:08:09 -06:00
|
|
|
[Interface]
|
|
|
|
PrivateKey = ${wg_key}
|
|
|
|
Address = ${wg_address}/${wg_prefix:-32}
|
2021-09-21 21:38:18 -06:00
|
|
|
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
|
2021-09-21 15:08:09 -06:00
|
|
|
|
|
|
|
{{ range files "wireguard/peers" }} {{ if ne . "${tinc_peer_name}" }}
|
|
|
|
[Peer]
|
2021-09-21 20:00:50 -06:00
|
|
|
{{ include (print "wireguard/peers/" .) }}
|
2021-09-21 15:08:09 -06:00
|
|
|
{{ end }}{{ end }}
|