infrastructure/ansible/roles/gateway/files/wireguard-server.conf

12 lines
284 B
Text
Raw Normal View History

2019-12-08 21:05:20 +00:00
[Interface]
Address = {{ wireguard.server.ip }}
PrivateKey = {{ wireguard.server.private_key }}
ListenPort = {{ wireguard.port }}
2019-12-08 21:05:20 +00:00
{% for name, config in wireguard.clients.items() %}
2019-12-08 21:05:20 +00:00
[Peer]
# {{ name }}
PublicKey = {{ config.public_key }}
AllowedIPs = {{ config.ip }}/32
{% endfor %}