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