GlobalProtect-openconnect
GlobalProtect-openconnect copied to clipboard
Save credentials
Once disconnected, I need to put my username and password in again. Is there a way to automate this process please?
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:
- after successful connection remove newly created line in ~/.config/com.yuezk.qt/GPClient.conf and save file
- set GPClient.conf readonly with:
sudo +i ~/.config/com.yuezk.qt/GPClient.conf - 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.
For reference, there is effort being done to get this integrated. https://github.com/yuezk/GlobalProtect-openconnect/pull/109
Well supported in the 2.x release, closing.