On Mon, 2016-06-06 at 17:34 +0200, Daniel Wagner wrote:
> > FWIW, autoconnect VPNs is not supported (read: never
> > implemented).
Wrong! VPN autoconnect has been supported for a long time already :-)
Looks like initial support got into 1.19 or so.
> Why!? =(.
A non-VPN Service needs first to autoconnect. After that the VPN
Service could potentially do an autoconnect. Now ConnMan doesn't have
any way to know when the VPN Service should do the autoconnect. Maybe
VPN tunnel should only be used outside of an home network?
vpn_auto_connect() gets called when a service->type !=
CONNMAN_SERVICE_TYPE_VPN gets into state ready in service.c
So the problem is that ConnMan has no relation ship between Service.
So you can't express if Service A is up, try to autoconnect Service
B. And that's why it is missing.
> After laptop lid is closed and opened i need to manually
> reconnect my vpn..
From your log we can see that autoconnect is run:
connmand: src/service.c:run_vpn_auto_connect() service 0x559852258c00 clodo
Most likely connman-vpnd is missing passphrases. Did you have an UI or
connmanctl running so connman-vpnd was able to ask for passphrases?
What flavor of VPN was this again?