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
|
2020-08-19 18:47:56 +02:00
|
|
|
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:
|