[NetDev] Name={{ gateway.vpn.name }} Kind=wireguard Description=WireGuard tunnel {{ gateway.vpn.name }} [WireGuard] ListenPort={{ gateway.vpn.listen_port|default(51714) }} PrivateKey={{ gateway.vpn.private_key }} [WireGuardPeer] PublicKey={{ gateway.vpn.endpoint.public_key }} # The following will route all the traffic through the vpn endpoint AllowedIPs=0.0.0.0/0 Endpoint={{ gateway.vpn.endpoint.url }}:{{ gateway.vpn.endpoint.port }} # vim: set ft=dosini: