debian-setup/templates/network/wireguard/default/mobile.wireguard.j2
2024-08-03 15:01:41 +02:00

11 lines
297 B
Django/Jinja

# {{ ansible_managed }}
[Interface]
Address={{ vpn_peers.mobile.ip }}/24
PrivateKey={{ vpn_peers.mobile.private_key }}
[Peer]
PublicKey={{ vpn_server_public_key }}
PresharedKey={{ vpn_peers.mobile.preshared_key }}
AllowedIPs={{ vpn_listen_address }}/32
Endpoint={{ domain_name }}:{{ vpn_port }}