I'm using a PiVPN setup with WireGuard as the server. It does work with multiple other devices so I'm a bit confused why it doesn't work here. I actually do see the connection coming into the server but no traffic flowing. I've pasted the appropriate snippets here from my WireGuard config for ConnMan. I've got a second VPN set up in my router itself which is based on OpenVPN so I might try and get that set up for now but would really love to see/help get WireGuard set up properly and integrated.
[provider_wireguard]
Type = WireGuard
Name = VPN
Host = NNN.ddns.net
Domain = vpn.apartment
WireGuard.Address = 10.6.0.6/24
WireGuard.ListenPort =
WireGuard.PrivateKey = <KEY>
WireGuard.PublicKey = <KEY>
WireGuard.PresharedKey = <KEY>
WireGuard.DNS = 10.6.0.1
WireGuard.AllowedIPs = 0.0.0.0/0
WireGuard.EndpointPort = 3886
WireGuard.PersistentKeepalive = 25
Display More
The actual config from WireGuard is as follows:
[Interface]
PrivateKey = <KEY>
Address = 10.6.0.6/24
DNS = 10.6.0.1
[Peer]
PublicKey = <KEY>
PresharedKey = <KEY>
Endpoint = NNN.ddns.net:3886
AllowedIPs = 0.0.0.0/0
Everything seems ok to me but please do let me know if I missed anything.
The other thing I also noticed is that the /etc/resolv.conf that's updated by ConnMan includes name servers from each of the connections. I'd be curious to see if there's a way to have ConnMan only use the name server specified by WireGuard. Otherwise it's using the DNS from my local internet first before going across the VPN.
I'm happy to tweak code/look at any logs if I can get some pointers where to start. Thanks in advance!