Homelab/ansible/playbooks/templates/wg0.conf.j2

15 lines
360 B
Text
Raw Normal View History

# WireGuard - A configurer a la phase 5 (VPS)
# Generer les cles : wg genkey | tee privatekey | wg pubkey > publickey
[Interface]
Address = 10.0.0.2/24
PrivateKey = {{ wireguard_private_key }}
ListenPort = 51820
[Peer]
# VPS
PublicKey = {{ wireguard_vps_public_key }}
Endpoint = {{ wireguard_vps_ip }}:51820
AllowedIPs = 10.0.0.1/32
PersistentKeepalive = 25