full-dns/templates/wireguard.conf.j2

15 lines
440 B
Plaintext
Raw Normal View History

2020-08-03 19:25:51 +02:00
[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) }}
2020-08-03 19:25:51 +02:00
PublicKey = {{ peer.vpn.public_key }}
{% endfor %}
# vim: set ft=dosini: