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

14 lines
362 B
Plaintext
Raw Normal View History

2020-01-19 16:43:51 +00:00
[Interface]
Address = {{ item.value.ip }}
PrivateKey = {{ item.value.private_key }}
2020-01-23 20:06:45 +00:00
{% if item.value != wireguard.clients.intersect %}
DNS = {{ wireguard.clients.intersect.ip }}
{% endif %}
2020-01-19 16:43:51 +00:00
[Peer]
PublicKey = {{ wireguard.server.public_key }}
Endpoint = {{ wireguard.public_ip }}:{{ wireguard.port }}
2020-01-19 17:59:36 +00:00
AllowedIPs = {{ wireguard.cidr }}
2020-01-19 16:43:51 +00:00
PersistentKeepalive = 25