2018-10-22 20:49:09 +00:00
---
2019-02-25 16:56:19 +00:00
wireguard_PersistentKeepalive : 0
2022-07-30 12:01:24 +00:00
wireguard_config_path : configs/{{ IP_subject_alt_name }}/wireguard/
2019-03-10 17:16:34 +00:00
wireguard_pki_path : "{{ wireguard_config_path }}/.pki/"
wireguard_interface : wg0
2019-10-30 07:38:39 +00:00
wireguard_port_avoid : 53
wireguard_port_actual : 51820
2019-03-10 17:16:34 +00:00
keys_clean_all : false
wireguard_dns_servers : >-
2019-06-19 15:31:43 +00:00
{% if algo_dns_adblocking|default(false)|bool or dns_encryption|default(false)|bool %}
2019-05-20 11:17:39 +00:00
{{ local_service_ip }}{{ ', ' + local_service_ipv6 if ipv6_support else '' }}
2019-03-10 17:16:34 +00:00
{% else %}
2022-07-30 12:01:24 +00:00
{% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support %},{% for host in dns_servers.ipv6 %}{{ host }}{% if
not loop.last %},{% endif %}{% endfor %}{% endif %}
2019-03-10 17:16:34 +00:00
{% endif %}
2019-05-17 12:49:29 +00:00
wireguard_client_ip : >-
2020-10-31 17:26:12 +00:00
{{ wireguard_network_ipv4 | ipmath(index|int+2) }}
{{ ',' + wireguard_network_ipv6 | ipmath(index|int+2) if ipv6_support else '' }}
2019-05-17 12:49:29 +00:00
wireguard_server_ip : >-
{{ wireguard_network_ipv4 | ipaddr('1') }}
{{ ',' + wireguard_network_ipv6 | ipaddr('1') if ipv6_support else '' }}