GlobalProtect-openconnect icon indicating copy to clipboard operation
GlobalProtect-openconnect copied to clipboard

globalproctect-openconnect cli in detach mode

Open pushkargogte opened this issue 5 months ago • 1 comments
trafficstars

can we add detach mode for globalproctect-openconnect cli for ubuntu, so that we don't need to keep terminal window open in order for VPN to stay alive.

pushkargogte avatar Jun 04 '25 05:06 pushkargogte

I also believe this would be a significant improvement in the UX.

One option I consider is creating a control interface for gpclient by using a local Unix socket. This would allow us to:

  • Complete the interactive steps required for connecting to the VPN.
  • Connect and disconnect as needed, rather than stopping the entire daemon/service.

grouzen avatar Jun 08 '25 11:06 grouzen

I have ever tried to add the run in background feature for CLI, but failed. It hangs whenever it is in the background.

yuezk avatar Jun 10 '25 13:06 yuezk

@yuezk Maybe you can look into openvpn3 cli for linux code to fix the background issue

https://codeberg.org/OpenVPN

pushkargogte avatar Jun 10 '25 16:06 pushkargogte

@pushkargogte You can use 'screen' to detach your terminal session https://superuser.com/questions/454907/how-to-execute-a-command-in-screen-and-detach

TymEK49 avatar Aug 25 '25 08:08 TymEK49