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

How to vpn-slice parameters in 2x?

Open EmptyVisual opened this issue 1 year ago • 2 comments

Previously on 1x I had modified the config /etc/gpservice/gp.conf with my script parameters. How do you do this in the 2.x version?

I'd like to know how to parse script parameters via the gpclient 2.x CLI

My config was like the below:

[vpn.company.com]
openconnect-args=--script "vpn-slice -K {subdomain1,subdomain2,subdomain3}.domain.com"

EmptyVisual avatar Jan 30 '24 23:01 EmptyVisual

You could try to put the script content in a separate script file, say, vpn-slice.sh, make it executable, and then you can set its absolute path to the VPNC script field.

image

I will support this case in the next release so you don't have to create a separate file.

yuezk avatar Jan 31 '24 01:01 yuezk

You could try to put the script content in a separate script file, say, vpn-slice.sh, make it executable, and then you can set its absolute path to the VPNC script field.

image I will support this case in the next release so you don't have to create a separate file.

Thank you. I’m running this on a headless server so I don’t have access to the UI. I have reverted to 1.x for now.

EmptyVisual avatar Jan 31 '24 01:01 EmptyVisual

I have a similar question. How do you pass --csd-wrapper now for example. Autoupdate to 2.X caused me a lot of stress today. I will probably also have to revert for now.

yuranos avatar Feb 02 '24 22:02 yuranos

Both vpnc-slice and csd-wrapper can be configured in settings, or passed via the cli parameter, see gpclient connect -h for details.

image

yuezk avatar Feb 06 '24 12:02 yuezk