fix set fact
This commit is contained in:
parent
e354346bd3
commit
3b62b4af85
1 changed files with 5 additions and 3 deletions
|
@ -4,10 +4,12 @@ PrivateKey = {{ privatekey }}
|
||||||
ListenPort = {{ listenport }}
|
ListenPort = {{ listenport }}
|
||||||
PostUp = iptables -t nat -A POSTROUTING -o {{ public_interface }} -j MASQUERADE; ip6tables -t nat -A POSTROUTING -o {{ public_interface }} -j MASQUERADE
|
PostUp = iptables -t nat -A POSTROUTING -o {{ public_interface }} -j MASQUERADE; ip6tables -t nat -A POSTROUTING -o {{ public_interface }} -j MASQUERADE
|
||||||
PostDown = iptables -t nat -D POSTROUTING -o {{ public_interface }} -j MASQUERADE; ip6tables -t nat -D POSTROUTING -o {{ public_interface }} -j MASQUERADE
|
PostDown = iptables -t nat -D POSTROUTING -o {{ public_interface }} -j MASQUERADE; ip6tables -t nat -D POSTROUTING -o {{ public_interface }} -j MASQUERADE
|
||||||
{% for item in clients %}
|
{% for item in wireguard_peers %}
|
||||||
|
|
||||||
# Client: {{ item.name }}
|
# Peer name: {{ item.name }}
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = {{ item.PublicKey }}
|
PublicKey = {{ item.PublicKey }}
|
||||||
AllowedIPs = {{ item.AllowedIPs }}
|
AllowedIPs = {{ item.AllowedIPs }}
|
||||||
|
{% if item.EndPointIP is defined and item.EndPointIP != '' %}
|
||||||
|
EndPoint = {{ item.EndPointIP }}:{{ listenport }}
|
||||||
{% endfor %}
|
{% endfor %}
|
Loading…
Reference in a new issue