dpb587 / ssoca

SSO for services that use CA-based authentication.
https://dpb587.github.io/ssoca/
MIT License
10 stars 2 forks source link

`ssoca openvpn exec` does not always automatically reconnect #10

Closed dpb587 closed 5 years ago

dpb587 commented 5 years ago

If macOS is put to sleep (e.g. laptop lid closed), frequently the VPN will not automatically reconnect when it is awakened.

Specifically noticed when managed by a launchd service. Running stop to cause it to be restarted fixes it.

Tunnelblick doesn't seem to have this issue, although it has its own options for monitoring the connection; might need something similar. OpenVPN management interface has some options for monitoring connection health which might be useful to check and trigger reconnects.

dpb587 commented 5 years ago

Closing – haven't been noticing this lately. Likely related to long-running processes hung on a network connection or login failure which is now probably indirectly avoided via 554248125d5506eb8d706738c9efc8f6a8ec699a.