ansible-vpn-gateway/templates/wireguard.conf.j2

12 lines
300 B
Django/Jinja

[Interface]
Address = {{ vpn_gateway.this_ip }}/{{ vpn_gateway.net_size }}
PrivateKey = {{ vpn_gateway.private_key }}
ListenPort = {{ vpn_gateway.listen_port|default(1194) }}
[Peer]
AllowedIps = {{ vpn_gateway.peer.address }}/32
PublicKey = {{ vpn_gateway.peer.public_key }}
# vim: set ft=dosini: