mirror of https://github.com/trailofbits/algo
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
1.1 KiB
YAML
15 lines
1.1 KiB
YAML
---
|
|
wireguard_PersistentKeepalive: 0
|
|
wireguard_config_path: "configs/{{ IP_subject_alt_name }}/wireguard/"
|
|
wireguard_pki_path: "{{ wireguard_config_path }}/.pki/"
|
|
wireguard_interface: wg0
|
|
keys_clean_all: false
|
|
wireguard_dns_servers: >-
|
|
{% if local_dns|default(false)|bool or dns_encryption|default(false)|bool %}
|
|
{{ local_service_ip }}
|
|
{% else %}
|
|
{% 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 %}
|
|
{% endif %}
|
|
wireguard_client_ip: "{{ _wireguard_network_ipv4['clients_range'] }}.{{ _wireguard_network_ipv4['clients_start'] + index|int + 1 }}/{{ _wireguard_network_ipv4['prefix'] }}{% if ipv6_support %},{{ _wireguard_network_ipv6['clients_range'] }}{{ _wireguard_network_ipv6['clients_start'] + index|int + 1 }}/{{ _wireguard_network_ipv6['prefix'] }}{% endif %}"
|
|
wireguard_server_ip: "{{ _wireguard_network_ipv4['gateway'] }}/{{ _wireguard_network_ipv4['prefix'] }}{% if ipv6_support %},{{ _wireguard_network_ipv6['gateway'] }}/{{ _wireguard_network_ipv6['prefix'] }}{% endif %}"
|