add support for network namespaces and hook scripts

This commit is contained in:
nd 2021-11-13 13:58:17 +01:00
parent d0ee4e64e9
commit 8e3a6b943e
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 34 additions and 10 deletions

View file

@ -9,5 +9,10 @@ PrivateKey = {{ item.privkey }}
# {{ peer.name }}
PublicKey = {{ peer.PublicKey }}
AllowedIPs = {{ peer.AllowedIPs|d(['0.0.0.0/0', '::/0'])|join(', ') }}
{% if peer.Endpoint is defined %}Endpoint = {{ peer.Endpoint }}{% endif %}
{% if peer.PresharedKey is defined %}
PresharedKey = {{ peer.PresharedKey }}
{% endif %}
{% if peer.Endpoint is defined %}
Endpoint = {{ peer.Endpoint }}
{% endif %}
{% endfor %}