-
-
Notifications
You must be signed in to change notification settings - Fork 159
Configuration
Kevin Yue edited this page Jul 7, 2024
·
7 revisions
Note
This page is for gpclient 1.x only.
Configuration file: /etc/gpservice/gp.conf
.
Each section is a VPN gateway address, and [*]
is a special section that defines the default configuration.
[*]
openconnect-args=<value>
[vpn1.company.com]
openconnect-args=--servercert pin-sha256:y4vQpQl/w0NPJ4eKY11kC3jvg6Dvx0FzxYArz4/X6x0=
Note: The maximum length of each line is 200, so if your argument's length is longer than it, you should use the multi-line mode. For example:
[*]
openconnect-args=--certificate ~/work/paloalto/mycert.pem
--servercert pin-sha256:y4vQpQl/w0NPJ4eKY11kC3jvg6Dvx0FzxYArz4/X6x0=
--script "vpn-slice 10.0.0.0/8 10.171.63.202 myvm1 mydev1 myub18 --domain mydomain.mydomain2.com"
Note: Tokens with spaces can be surrounded by double quotes; three consecutive double quotes represent the quote character itself.
Extra parameters that passed to the openconnect
command.