Output wireguard client config files

This commit is contained in:
Jake Howard
2020-01-19 16:43:51 +00:00
parent f6ffb1ceef
commit 251fe11113
3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,11 @@
[Interface]
Address = {{ wireguard.server.ip }}
PrivateKey = {{ wireguard.server.private_key }}
ListenPort = {{ wireguard.port }}
{% for name, config in wireguard.clients.items() %}
[Peer]
# {{ name }}
PublicKey = {{ config.public_key }}
AllowedIPs = {{ config.ip }}/32
{% endfor %}