cloud-vpn/templates/etc/wireguard/clients/wireguard-client.conf.j2
2023-09-17 10:56:26 +02:00

12 lines
433 B
Django/Jinja

[Interface]
Address = {{ vpn_gateway_net_prefix }}.{{ vpn_client.index }}/32
PrivateKey = {{ vpn_client.private_key }}
DNS = {{ vpn_internal_dns }}
[Peer]
PublicKey = {{ vpn_gateway_public_key }}
Endpoint = {{ vpn_gateway_host }}:{{ vpn_gateway_port }}
AllowedIPs = {{ vpn_gateway_net_prefix }}.1/{% if vpn_allow_adjacent_client_traffic %}{{ vpn_gateway_net_cidr }}{% else %}32{% endif %}
PersistentKeepalive = {{ vpn_keepalive }}