cloud-vpn/templates/etc/wireguard/clients/wireguard-client.conf.j2
2023-09-18 12:08:56 +02:00

12 lines
460 B
Django/Jinja

[Interface]
Address = {{ vpn_gateway_net_prefix }}.{{ vpn_client.index }}/{{ vpn_gateway_net_cidr }}
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 }}{% if vpn_allow_adjacent_client_traffic %}.0/{{ vpn_gateway_net_cidr }}{% else %}.1/32{% endif %}
PersistentKeepalive = {{ vpn_keepalive }}