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

Save credentials

Open kaihendry opened this issue 4 years ago • 2 comments
trafficstars

Once disconnected, I need to put my username and password in again. Is there a way to automate this process please?

kaihendry avatar May 11 '21 05:05 kaihendry

There seems to be an issue with multiple gateways because in GPClient.conf new line is added below [General] and above vpn.blabla.com_selectedGateway=vpn.blabla.com line added: vpn.blabla.com_gateways="[\n {\n \"address\": \"vpn.blabla.com.com\",\n \"name\": \"vpn.blabla.com\"\n }\n]\n"

There is a workaround for this issue:

  1. after successful connection remove newly created line in ~/.config/com.yuezk.qt/GPClient.conf and save file
  2. set GPClient.conf readonly with: sudo +i ~/.config/com.yuezk.qt/GPClient.conf
  3. restart Global Protect client and connect

edit: Or after successful connection run:

sed -i '/_gateways=/d' ~/.config/com.yuezk.qt/GPClient.conf
sudo chattr +i ~/.config/com.yuezk.qt/GPClient.conf

and restart Global Protect client.

gobonja avatar Feb 09 '22 10:02 gobonja

For reference, there is effort being done to get this integrated. https://github.com/yuezk/GlobalProtect-openconnect/pull/109

atharen avatar Apr 16 '22 07:04 atharen

Well supported in the 2.x release, closing.

yuezk avatar Jan 25 '24 12:01 yuezk