12 lines
543 B
Django/Jinja
12 lines
543 B
Django/Jinja
[Interface]
|
|
Address = {{ wireguard_gateway_net_prefix }}.{{ wireguard_clients[wireguard_client_host].index }}/32
|
|
PrivateKey = {{ wireguard_clients[wireguard_client_host].private_key }}
|
|
DNS = {{ cloud_internal_dns }}
|
|
|
|
[Peer]
|
|
PublicKey = {{ wireguard_gateway_public_key }}
|
|
Endpoint = {{ wireguard_gateway_host }}:{{ wireguard_gateway_port }}
|
|
AllowedIPs = {{ wireguard_gateway_net_prefix }}.1/{% if wireguard_allow_adjacent_client_traffic %}{{ wireguard_gateway_net_cidr }}{% else %}32{% endif %}
|
|
|
|
PersistentKeepalive = {{ wireguard_keepalive }}
|