mirror of
https://github.com/trailofbits/algo.git
synced 2025-07-25 06:53:00 +02:00
13 lines
610 B
Django/Jinja
13 lines
610 B
Django/Jinja
[Interface]
|
|
PrivateKey = {{ lookup('file', wireguard_pki_path + '/private/' + item.1) }}
|
|
Address = {{ wireguard_client_ip }}
|
|
DNS = {{ wireguard_dns_servers }}
|
|
{% if reduce_mtu|int > 0 %}MTU = {{ 1420 - reduce_mtu|int }}
|
|
{% endif %}
|
|
|
|
[Peer]
|
|
PublicKey = {{ lookup('file', wireguard_pki_path + '/public/' + IP_subject_alt_name) }}
|
|
PresharedKey = {{ lookup('file', wireguard_pki_path + '/preshared/' + item.1) }}
|
|
AllowedIPs = 0.0.0.0/0,::/0
|
|
Endpoint = {{ IP_subject_alt_name }}:{{ wireguard_port }}
|
|
{{ 'PersistentKeepalive = ' + wireguard_PersistentKeepalive|string if wireguard_PersistentKeepalive > 0 else '' }}
|