[NetDev] Name=wg0 Kind=wireguard Description=WireGuard VPN tunnel for home network access [WireGuard] PrivateKey={{ wireguard_server.private_key }} ListenPort=51820 {% for client in wireguard_clients %} # {{ client.name }} - {{ client.description }} [WireGuardPeer] PublicKey={{ client.public_key }} AllowedIPs={{ client.ip_address | regex_replace('/\d+$', '/32') }} PersistentKeepalive=25 {% endfor %}