Skip to content

Configuration

Kevin Yue edited this page May 19, 2024 · 7 revisions

Description

Note: This page is for 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.

Example

[*]
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.

Options

openconnect-args

Extra parameters that passed to the openconnect command.

Clone this wiki locally