Blallo
3f58459e78
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.
15 lines
440 B
Django/Jinja
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:
|