full-dns/templates/wireguard.conf.j2
Blallo 3f58459e78
Update configuration and logic. Support ipv6.
Now ipv6 is supported using `public_ipv6` in the `server` block and
refactoring the configuration logic.
Also fix unbound configuration to allow recursive queries from
resolvers.
2020-08-19 18:47:56 +02:00

15 lines
440 B
Django/Jinja

[Interface]
Address = {{ server.vpn.address }}/{{ server.vpn.net_size }}
PrivateKey = {{ server.vpn.private_key }}
ListenPort = {{ server.vpn.listen_port|default(1194) }}
{% for peer in others %}
[Peer]
AllowedIps = {{ peer.vpn.address }}/32
Endpoint = {{ peer.public_ip if peer.public_ip is defined else peer.public_ip6}}:{{ peer.vpn.listen_port|default(1194) }}
PublicKey = {{ peer.vpn.public_key }}
{% endfor %}
# vim: set ft=dosini: