rename clients list to wireguard peers
This commit is contained in:
parent
e354346bd3
commit
46ba786edb
1 changed files with 5 additions and 3 deletions
|
@ -4,10 +4,12 @@ PrivateKey = {{ privatekey }}
|
|||
ListenPort = {{ listenport }}
|
||||
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
|
||||
{% for item in clients %}
|
||||
{% for item in wireguard_peers %}
|
||||
|
||||
# Client: {{ item.name }}
|
||||
# Peer name: {{ item.name }}
|
||||
[Peer]
|
||||
PublicKey = {{ item.PublicKey }}
|
||||
AllowedIPs = {{ item.AllowedIPs }}
|
||||
{% if item.EndPointIP is defined and item.EndPointIP != '' %}
|
||||
EndPoint = {{ item.EndPointIP }}:{{ listenport }}
|
||||
{% endfor %}
|
Loading…
Reference in a new issue