12 lines
576 B
Django/Jinja
12 lines
576 B
Django/Jinja
[Interface]
|
|
Address = {{ wireguard_gateway_net_prefix }}.{{ wireguard_clients[wireguard_client_host].index }}/{{ wireguard_gateway_net_cidr }}
|
|
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 }}{% if wireguard_allow_adjacent_client_traffic %}.0/{{ wireguard_gateway_net_cidr }}{% else %}.1/32{% endif %}
|
|
|
|
PersistentKeepalive = {{ wireguard_keepalive }}
|