SL/ansible/roles/wireguard/templates/wireguard-server.conf
2022-06-13 22:09:07 +02:00

11 lines
283 B
Plaintext

[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 %}