A GlobalProtect VPN client for Linux and macOS, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, YubiKey, and client certificate authentication, etc.
Rust
2,287
576 commits
updated Oct 12, 2026
A GlobalProtect VPN client built on OpenConnect with support for SSO authentication. It provides command-line tools and the GP Connect desktop application for macOS, Linux, FreeBSD, and OpenBSD.
Inspired by gp-saml-gui
The CLI is free and open source. Use it to authenticate, connect to portals or gateways, and generate HIP reports from the terminal.
Usage: gpclient [OPTIONS] <COMMAND>
Commands:
connect Connect to a portal server
disconnect Disconnect from the server
launch-gui Launch the GUI
hip Generate HIP report
help Print this message or the help of the given subcommand(s)
Options:
--fix-openssl Uses extended compatibility mode for OpenSSL operations to support a broader range of systems and formats.
--ignore-tls-errors Ignore the TLS errors
--lock-file <LOCK_FILE> Path to the gpclient PID lock file
--log-format <LOG_FORMAT> Log output format. JSON is intended for non-interactive consumers; interactive prompts remain text. [default: text] [possible values: text, json]
-v, --verbose... Enable verbose output, -v for debug, -vv for trace
-q, --quiet... Decrease logging verbosity, -q for warnings, -qq for errors
-h, --help Print help (see more with '--help')
-V, --version Print version
Tip: Use
gpclient help <command>for detailed information on a specific command.
HIP is disabled in the CLI unless enabled explicitly. Use --hip to generate reports inside gpclient, including later reports requested by the gateway:
sudo gpclient connect <portal> --hip
Use --hip=/absolute/path/to/script for a custom executable. It runs as the gpclient process user unless --hip-user specifies another user. No installed HIP script is discovered automatically. --hip-user applies only to custom executables.
gpclient hip generates a report on demand for inspection; see gpclient hip --help for report inputs. The GUI's HIP tab supports generated reports, edited XML, and HIP Off on all desktop platforms. Linux, FreeBSD, and OpenBSD also support desktop-user scripts and explicitly approved root scripts.
Use gpclient directly for browser-based authentication. It opens the browser as your normal desktop user while keeping VPN tunnel setup privileged:
sudo gpclient connect <portal> --browser
To reuse a saved portal cookie for later connections, add --cookie-cache:
sudo gpclient connect <portal> --browser --cookie-cache
Add --gateway <gateway> to select a particular gateway. Cookie caching is handled by gpclient. Its default cache file is $HOME/.config/gpclient/cookie.json, which normally belongs to root when running with sudo. To choose a predictable location, specify the path explicitly:
sudo gpclient connect <portal> --browser --cookie-cache=/absolute/path/to/cookie.json
Browser Options:
--browser to try your recognized default browser first, then another detected browser, and finally the system URL handler--browser default to use the system default browser--browser <browser> to specify a browser (e.g., firefox, chrome)--browser remote for headless servers – this provides a URL you can access from another machine to complete authenticationGP Connect provides a desktop interface for managing VPN connections. On macOS, open GP Connect from Applications. On Linux, FreeBSD, and OpenBSD, launch it from your application menu or via the terminal:
gpclient launch-gui
[!Note]
The GUI version is partially open source. The background service (gpservice) is open source, while the GUI wrapper is proprietary.
[!Note]
For older Linux distributions, use v2.3.13 instead of the latest release. It provides release assets for common distro families, including Debian/Ubuntu (
.deb), Arch Linux / Manjaro (.pkg.tar.zst), RPM-based distros such as Fedora / RHEL / Rocky / AlmaLinux / CentOS (.rpm), and generic Linux tarballs (.bin.tar.xz).
GP Connect requires Apple silicon and macOS 13 or later. The macOS app includes both the desktop application and the free gpclient CLI. The CLI does not require a GUI license.
brew install --cask yuezk/gp-connect/gp-connect
Open GP Connect from Applications, or connect from the terminal:
sudo gpclient connect <portal> --browser
Download the GP Connect .dmg from the releases page, open it, and drag GP Connect into Applications.
sudo add-apt-repository ppa:yuezk/globalprotect-openconnect
sudo apt-get update
sudo apt-get install globalprotect-openconnect
[!Note]
For Linux Mint users: If you encounter a GPG key error, import the key manually:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7937C393082992E5D6E4A60453FC26B43838D761
Download the latest .deb package from the releases page, then install:
sudo apt install --fix-broken ./globalprotect-openconnect_*.deb
Package: globalprotect-openconnect-git
You can install it using an AUR helper like yay:
yay -S globalprotect-openconnect-git
The package is also available in the official Arch Linux Extra repository.
Package: globalprotect-openconnect
[!Note]
Since the official package does not include the system tray support dependency, you need to install
libappindicatormanually:
sudo pacman -S libappindicator globalprotect-openconnect
Download the latest package from the releases page, then install:
sudo pacman -U globalprotect-openconnect-*.pkg.tar.zst
The package is available on COPR for RPM-based distributions:
sudo dnf copr enable yuezk/globalprotect-openconnect
sudo dnf install globalprotect-openconnect
Packages are available on the openSUSE Build Service. Follow the installation instructions for your distribution.
Download the latest RPM package from the releases page:
sudo rpm -i globalprotect-openconnect-*.rpm
Download the latest .apk package from the releases page, then install:
sudo apk add --allow-untrusted globalprotect-openconnect-*.apk
The package uses Alpine's native musl build. Make sure the community repository is enabled so GUI dependencies such as webkit2gtk-4.1, libsecret, and libayatana-appindicator can be resolved. GUI-launched connections use polkit, and VPN tunnel creation requires /dev/net/tun.
Download the latest FreeBSD package from the releases page, then install:
sudo pkg install ./globalprotect-openconnect-*-freebsd-*.pkg
To build from source, see Building from Source on FreeBSD and OpenBSD.
Download the latest OpenBSD package from the releases page, then install:
doas pkg_add -D unsigned ./globalprotect-openconnect-*-openbsd-*.tgz
To build from source, see Building from Source on FreeBSD and OpenBSD.
Available via the guru and lamdness overlays:
sudo eselect repository enable guru
sudo emerge --sync guru
sudo emerge --ask --verbose net-vpn/GlobalProtect-openconnect
This repository includes a flake for NixOS integration.
Add the flake input and NixOS module to your flake.nix:
The module builds the package with your NixOS configuration's pkgs, so the
GlobalProtect GUI and the system use the same Nixpkgs dependency versions.
It also enables Polkit and its setuid pkexec wrapper for privileged operations.
{
inputs = {
# ... other inputs
globalprotect-openconnect.url = "github:yuezk/GlobalProtect-openconnect";
};
outputs = { self, nixpkgs, globalprotect-openconnect, ... }:
let
system = "x86_64-linux"; # or "aarch64-linux" for ARM64
hostname = "<your-host>";
in {
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
globalprotect-openconnect.nixosModules.default
{
programs.globalprotect-openconnect.enable = true;
environment.systemPackages = [
nixpkgs.legacyPackages.${system}.gnomeExtensions.appindicator
];
}
];
};
};
}
Apply:
sudo nixos-rebuild switch
loginctl terminate-user "$USER"
After logging back in to GNOME, enable AppIndicator support if needed:
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
NixOS does not run an imperative package-uninstall hook when a package is removed from the system configuration. Remove an installed replacement VPN script from the app settings before removing the package.
The prebuilt package and NixOS module use the published release pinned in flake.nix. Both prebuilt and fromSource run natively on the host with packaged dependencies and installer paths. The fromSource package builds the current flake checkout, including its Git submodules:
git submodule update --init --recursive
nix build "git+file://$PWD?submodules=1#fromSource"
Local source builds require initialized Git submodules and a flake URL with submodules=1, as shown above. For a remote source flake, use a Git URL with submodules enabled, such as git+https://github.com/yuezk/GlobalProtect-openconnect?submodules=1#fromSource. The prebuilt package and NixOS module do not require Git submodules. Build output (target, .build, and node_modules) is excluded from the source input. Updating release asset hashes changes the prebuilt package, independently of source builds.
The official Docker image provides the CLI tools on Alpine Linux:
docker pull yuezk/globalprotect-openconnect:<version>
Release images are tagged as vX.Y.Z, X.Y.Z, and latest.
Run it with access to the TUN device:
docker run --rm -it --cap-add=NET_ADMIN --device=/dev/net/tun \
yuezk/globalprotect-openconnect:<version> \
connect <portal>
For browser authentication in a headless environment, use remote browser authentication:
docker run --rm -it --cap-add=NET_ADMIN --device=/dev/net/tun \
yuezk/globalprotect-openconnect:<version> \
connect <portal> --browser remote
On a host with multiple network interfaces, use --browser-listen to select the IP address reachable from the browser machine:
gpclient connect <portal> --browser remote --browser-listen 192.168.107.15
On a Linux host, add host networking if the VPN routes should affect the host network namespace:
docker run --rm -it --network host --cap-add=NET_ADMIN --device=/dev/net/tun \
yuezk/globalprotect-openconnect:<version> \
connect <portal> --browser remote
Without --network host, the VPN connection stays inside the container's network namespace. Docker Desktop on macOS and Windows does not make the host use the VPN through --network host; run gpclient on the host or use a container gateway setup for host traffic.
The image includes gpclient and gpauth only. It does not include embedded webview authentication, gpgui-helper, or gpgui.
Install dependencies:
libwebkit2gtk-4.1-0 on Debian/Ubuntu)libsecretlibayatana-appindicator or libappindicator-gtk3pkexec) for GUI-launched VPN connectionsDownload and extract:
Download globalprotect-openconnect_${version}_${arch}.bin.tar.xz from the releases page:
tar -xJf globalprotect-openconnect_${version}_${arch}.bin.tar.xz
cd globalprotect-openconnect_${version}
Install:
sudo make install
The instructions below build the open-source components on Linux. For FreeBSD and OpenBSD, see Building from Source on FreeBSD and OpenBSD.
This project includes a DevContainer configuration for Linux development. The repository's rust-toolchain.toml selects the Rust toolchain; rustup may need to download it on the first build.
Clone the repository:
git clone https://github.com/yuezk/GlobalProtect-openconnect.git
cd GlobalProtect-openconnect
git submodule update --init --recursive
Build the DevContainer image:
docker build -t gpoc-devcontainer .devcontainer/
Build the project:
To build the open-source components, including the GUI helper, run:
docker run --privileged --cap-add=NET_ADMIN --device=/dev/net/tun \
--tty -v "$(pwd)":/workspace -w /workspace gpoc-devcontainer \
bash -c "export PATH=/usr/local/cargo/bin:\$PATH && make build"
To build without the GUI helper run the same command as above, but with BUILD_GUI_HELPER=0 passed as an argument to make.
Locate build artifacts:
The compiled binaries will be available in target/release/:
gpclient – CLI clientgpservice – Background servicegpauth – Authentication helpergpgui-helper – GUI helpergp-hip-script-installer – Privileged HIP script installergp-vpnc-script-installer – Privileged VPN script installerThe proprietary GP Connect desktop application is distributed separately. Use INCLUDE_GUI=1 with make build to download its matching published Linux build for installation.
make build
autoconf, automake, autopoint/gettext, libtool, patch, pkg-config, libxml2, zlib, lz4, gnutls, p11-kit, nettle, and gmp development packagespkexec and gnome-keyring (or pam_kwallet on KDE)Download source code:
Download globalprotect-openconnect-${version}.tar.gz from the releases page.
Extract and build:
tar -xzf globalprotect-openconnect-${version}.tar.gz
cd globalprotect-openconnect-${version}
make build
Install:
sudo make install
To stage the files for packaging instead of installing them into the system, use make install DESTDIR=/absolute/path/to/staging.
Verify the CLI client is working correctly:
./target/release/gpclient --help
BUILD_GUI_HELPER=0 – Skip building and installing the GUI helperBUILD_WEBVIEW_AUTH=0 – Build gpauth without embedded browser authentication; use an external or remote browserINCLUDE_GUI=1 – Download the matching published Linux desktop application for installationOFFLINE=1 – Build in offline mode using vendored dependenciesUnlock your desktop keyring and ensure the application can access it. On Linux and BSD, check that a keyring service such as GNOME Keyring is installed and running in your desktop session. On macOS, check Keychain access.
Linux and BSD can use file storage when secure storage is unavailable during initial setup. An existing configuration that uses the keyring still needs access to that keyring.
See related issues: #321, #316
Run the client from a terminal in your normal desktop session and use an external browser:
sudo gpclient connect <portal> --browser
See related issue: #316
On a headless server, use --browser remote and complete authentication from another machine.
gpclientThe CLI version is completely free and open source. The GUI version is a paid application with a 7-day trial. Start the trial in the app by verifying your email address with a one-time code. Installing the app alone does not start the trial.
This project consists of multiple components, each with its own license:
| Component | Type | License |
|---|---|---|
| gpapi | Crate | MIT |
| openconnect | Rust wrapper crate | MIT |
| upstream OpenConnect | C library | LGPL-2.1 |
| common | Crate | MIT |
| browser-launcher | Crate | MIT |
| auth | Crate | GPL-3.0 |
| gpservice | Application | GPL-3.0 |
| gpclient | Application | GPL-3.0 |
| gpauth | Application | GPL-3.0 |
| gpgui-helper | Application | GPL-3.0 |
(top 24 of 29)
888 followers · starred Sep 2023
384 followers · starred Oct 2024
666 followers · starred Nov 2020
91 followers · starred Jul 2025
A GlobalProtect VPN client for Linux and macOS, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, YubiKey, and client certificate authentication, etc.
Rust
2,287
576 commits
updated Oct 12, 2026
A GlobalProtect VPN client built on OpenConnect with support for SSO authentication. It provides command-line tools and the GP Connect desktop application for macOS, Linux, FreeBSD, and OpenBSD.
Inspired by gp-saml-gui
The CLI is free and open source. Use it to authenticate, connect to portals or gateways, and generate HIP reports from the terminal.
Usage: gpclient [OPTIONS] <COMMAND>
Commands:
connect Connect to a portal server
disconnect Disconnect from the server
launch-gui Launch the GUI
hip Generate HIP report
help Print this message or the help of the given subcommand(s)
Options:
--fix-openssl Uses extended compatibility mode for OpenSSL operations to support a broader range of systems and formats.
--ignore-tls-errors Ignore the TLS errors
--lock-file <LOCK_FILE> Path to the gpclient PID lock file
--log-format <LOG_FORMAT> Log output format. JSON is intended for non-interactive consumers; interactive prompts remain text. [default: text] [possible values: text, json]
-v, --verbose... Enable verbose output, -v for debug, -vv for trace
-q, --quiet... Decrease logging verbosity, -q for warnings, -qq for errors
-h, --help Print help (see more with '--help')
-V, --version Print version
Tip: Use
gpclient help <command>for detailed information on a specific command.
HIP is disabled in the CLI unless enabled explicitly. Use --hip to generate reports inside gpclient, including later reports requested by the gateway:
sudo gpclient connect <portal> --hip
Use --hip=/absolute/path/to/script for a custom executable. It runs as the gpclient process user unless --hip-user specifies another user. No installed HIP script is discovered automatically. --hip-user applies only to custom executables.
gpclient hip generates a report on demand for inspection; see gpclient hip --help for report inputs. The GUI's HIP tab supports generated reports, edited XML, and HIP Off on all desktop platforms. Linux, FreeBSD, and OpenBSD also support desktop-user scripts and explicitly approved root scripts.
Use gpclient directly for browser-based authentication. It opens the browser as your normal desktop user while keeping VPN tunnel setup privileged:
sudo gpclient connect <portal> --browser
To reuse a saved portal cookie for later connections, add --cookie-cache:
sudo gpclient connect <portal> --browser --cookie-cache
Add --gateway <gateway> to select a particular gateway. Cookie caching is handled by gpclient. Its default cache file is $HOME/.config/gpclient/cookie.json, which normally belongs to root when running with sudo. To choose a predictable location, specify the path explicitly:
sudo gpclient connect <portal> --browser --cookie-cache=/absolute/path/to/cookie.json
Browser Options:
--browser to try your recognized default browser first, then another detected browser, and finally the system URL handler--browser default to use the system default browser--browser <browser> to specify a browser (e.g., firefox, chrome)--browser remote for headless servers – this provides a URL you can access from another machine to complete authenticationGP Connect provides a desktop interface for managing VPN connections. On macOS, open GP Connect from Applications. On Linux, FreeBSD, and OpenBSD, launch it from your application menu or via the terminal:
gpclient launch-gui
[!Note]
The GUI version is partially open source. The background service (gpservice) is open source, while the GUI wrapper is proprietary.
[!Note]
For older Linux distributions, use v2.3.13 instead of the latest release. It provides release assets for common distro families, including Debian/Ubuntu (
.deb), Arch Linux / Manjaro (.pkg.tar.zst), RPM-based distros such as Fedora / RHEL / Rocky / AlmaLinux / CentOS (.rpm), and generic Linux tarballs (.bin.tar.xz).
GP Connect requires Apple silicon and macOS 13 or later. The macOS app includes both the desktop application and the free gpclient CLI. The CLI does not require a GUI license.
brew install --cask yuezk/gp-connect/gp-connect
Open GP Connect from Applications, or connect from the terminal:
sudo gpclient connect <portal> --browser
Download the GP Connect .dmg from the releases page, open it, and drag GP Connect into Applications.
sudo add-apt-repository ppa:yuezk/globalprotect-openconnect
sudo apt-get update
sudo apt-get install globalprotect-openconnect
[!Note]
For Linux Mint users: If you encounter a GPG key error, import the key manually:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7937C393082992E5D6E4A60453FC26B43838D761
Download the latest .deb package from the releases page, then install:
sudo apt install --fix-broken ./globalprotect-openconnect_*.deb
Package: globalprotect-openconnect-git
You can install it using an AUR helper like yay:
yay -S globalprotect-openconnect-git
The package is also available in the official Arch Linux Extra repository.
Package: globalprotect-openconnect
[!Note]
Since the official package does not include the system tray support dependency, you need to install
libappindicatormanually:
sudo pacman -S libappindicator globalprotect-openconnect
Download the latest package from the releases page, then install:
sudo pacman -U globalprotect-openconnect-*.pkg.tar.zst
The package is available on COPR for RPM-based distributions:
sudo dnf copr enable yuezk/globalprotect-openconnect
sudo dnf install globalprotect-openconnect
Packages are available on the openSUSE Build Service. Follow the installation instructions for your distribution.
Download the latest RPM package from the releases page:
sudo rpm -i globalprotect-openconnect-*.rpm
Download the latest .apk package from the releases page, then install:
sudo apk add --allow-untrusted globalprotect-openconnect-*.apk
The package uses Alpine's native musl build. Make sure the community repository is enabled so GUI dependencies such as webkit2gtk-4.1, libsecret, and libayatana-appindicator can be resolved. GUI-launched connections use polkit, and VPN tunnel creation requires /dev/net/tun.
Download the latest FreeBSD package from the releases page, then install:
sudo pkg install ./globalprotect-openconnect-*-freebsd-*.pkg
To build from source, see Building from Source on FreeBSD and OpenBSD.
Download the latest OpenBSD package from the releases page, then install:
doas pkg_add -D unsigned ./globalprotect-openconnect-*-openbsd-*.tgz
To build from source, see Building from Source on FreeBSD and OpenBSD.
Available via the guru and lamdness overlays:
sudo eselect repository enable guru
sudo emerge --sync guru
sudo emerge --ask --verbose net-vpn/GlobalProtect-openconnect
This repository includes a flake for NixOS integration.
Add the flake input and NixOS module to your flake.nix:
The module builds the package with your NixOS configuration's pkgs, so the
GlobalProtect GUI and the system use the same Nixpkgs dependency versions.
It also enables Polkit and its setuid pkexec wrapper for privileged operations.
{
inputs = {
# ... other inputs
globalprotect-openconnect.url = "github:yuezk/GlobalProtect-openconnect";
};
outputs = { self, nixpkgs, globalprotect-openconnect, ... }:
let
system = "x86_64-linux"; # or "aarch64-linux" for ARM64
hostname = "<your-host>";
in {
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
globalprotect-openconnect.nixosModules.default
{
programs.globalprotect-openconnect.enable = true;
environment.systemPackages = [
nixpkgs.legacyPackages.${system}.gnomeExtensions.appindicator
];
}
];
};
};
}
Apply:
sudo nixos-rebuild switch
loginctl terminate-user "$USER"
After logging back in to GNOME, enable AppIndicator support if needed:
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
NixOS does not run an imperative package-uninstall hook when a package is removed from the system configuration. Remove an installed replacement VPN script from the app settings before removing the package.
The prebuilt package and NixOS module use the published release pinned in flake.nix. Both prebuilt and fromSource run natively on the host with packaged dependencies and installer paths. The fromSource package builds the current flake checkout, including its Git submodules:
git submodule update --init --recursive
nix build "git+file://$PWD?submodules=1#fromSource"
Local source builds require initialized Git submodules and a flake URL with submodules=1, as shown above. For a remote source flake, use a Git URL with submodules enabled, such as git+https://github.com/yuezk/GlobalProtect-openconnect?submodules=1#fromSource. The prebuilt package and NixOS module do not require Git submodules. Build output (target, .build, and node_modules) is excluded from the source input. Updating release asset hashes changes the prebuilt package, independently of source builds.
The official Docker image provides the CLI tools on Alpine Linux:
docker pull yuezk/globalprotect-openconnect:<version>
Release images are tagged as vX.Y.Z, X.Y.Z, and latest.
Run it with access to the TUN device:
docker run --rm -it --cap-add=NET_ADMIN --device=/dev/net/tun \
yuezk/globalprotect-openconnect:<version> \
connect <portal>
For browser authentication in a headless environment, use remote browser authentication:
docker run --rm -it --cap-add=NET_ADMIN --device=/dev/net/tun \
yuezk/globalprotect-openconnect:<version> \
connect <portal> --browser remote
On a host with multiple network interfaces, use --browser-listen to select the IP address reachable from the browser machine:
gpclient connect <portal> --browser remote --browser-listen 192.168.107.15
On a Linux host, add host networking if the VPN routes should affect the host network namespace:
docker run --rm -it --network host --cap-add=NET_ADMIN --device=/dev/net/tun \
yuezk/globalprotect-openconnect:<version> \
connect <portal> --browser remote
Without --network host, the VPN connection stays inside the container's network namespace. Docker Desktop on macOS and Windows does not make the host use the VPN through --network host; run gpclient on the host or use a container gateway setup for host traffic.
The image includes gpclient and gpauth only. It does not include embedded webview authentication, gpgui-helper, or gpgui.
Install dependencies:
libwebkit2gtk-4.1-0 on Debian/Ubuntu)libsecretlibayatana-appindicator or libappindicator-gtk3pkexec) for GUI-launched VPN connectionsDownload and extract:
Download globalprotect-openconnect_${version}_${arch}.bin.tar.xz from the releases page:
tar -xJf globalprotect-openconnect_${version}_${arch}.bin.tar.xz
cd globalprotect-openconnect_${version}
Install:
sudo make install
The instructions below build the open-source components on Linux. For FreeBSD and OpenBSD, see Building from Source on FreeBSD and OpenBSD.
This project includes a DevContainer configuration for Linux development. The repository's rust-toolchain.toml selects the Rust toolchain; rustup may need to download it on the first build.
Clone the repository:
git clone https://github.com/yuezk/GlobalProtect-openconnect.git
cd GlobalProtect-openconnect
git submodule update --init --recursive
Build the DevContainer image:
docker build -t gpoc-devcontainer .devcontainer/
Build the project:
To build the open-source components, including the GUI helper, run:
docker run --privileged --cap-add=NET_ADMIN --device=/dev/net/tun \
--tty -v "$(pwd)":/workspace -w /workspace gpoc-devcontainer \
bash -c "export PATH=/usr/local/cargo/bin:\$PATH && make build"
To build without the GUI helper run the same command as above, but with BUILD_GUI_HELPER=0 passed as an argument to make.
Locate build artifacts:
The compiled binaries will be available in target/release/:
gpclient – CLI clientgpservice – Background servicegpauth – Authentication helpergpgui-helper – GUI helpergp-hip-script-installer – Privileged HIP script installergp-vpnc-script-installer – Privileged VPN script installerThe proprietary GP Connect desktop application is distributed separately. Use INCLUDE_GUI=1 with make build to download its matching published Linux build for installation.
make build
autoconf, automake, autopoint/gettext, libtool, patch, pkg-config, libxml2, zlib, lz4, gnutls, p11-kit, nettle, and gmp development packagespkexec and gnome-keyring (or pam_kwallet on KDE)Download source code:
Download globalprotect-openconnect-${version}.tar.gz from the releases page.
Extract and build:
tar -xzf globalprotect-openconnect-${version}.tar.gz
cd globalprotect-openconnect-${version}
make build
Install:
sudo make install
To stage the files for packaging instead of installing them into the system, use make install DESTDIR=/absolute/path/to/staging.
Verify the CLI client is working correctly:
./target/release/gpclient --help
BUILD_GUI_HELPER=0 – Skip building and installing the GUI helperBUILD_WEBVIEW_AUTH=0 – Build gpauth without embedded browser authentication; use an external or remote browserINCLUDE_GUI=1 – Download the matching published Linux desktop application for installationOFFLINE=1 – Build in offline mode using vendored dependenciesUnlock your desktop keyring and ensure the application can access it. On Linux and BSD, check that a keyring service such as GNOME Keyring is installed and running in your desktop session. On macOS, check Keychain access.
Linux and BSD can use file storage when secure storage is unavailable during initial setup. An existing configuration that uses the keyring still needs access to that keyring.
See related issues: #321, #316
Run the client from a terminal in your normal desktop session and use an external browser:
sudo gpclient connect <portal> --browser
See related issue: #316
On a headless server, use --browser remote and complete authentication from another machine.
gpclientThe CLI version is completely free and open source. The GUI version is a paid application with a 7-day trial. Start the trial in the app by verifying your email address with a one-time code. Installing the app alone does not start the trial.
This project consists of multiple components, each with its own license:
| Component | Type | License |
|---|---|---|
| gpapi | Crate | MIT |
| openconnect | Rust wrapper crate | MIT |
| upstream OpenConnect | C library | LGPL-2.1 |
| common | Crate | MIT |
| browser-launcher | Crate | MIT |
| auth | Crate | GPL-3.0 |
| gpservice | Application | GPL-3.0 |
| gpclient | Application | GPL-3.0 |
| gpauth | Application | GPL-3.0 |
| gpgui-helper | Application | GPL-3.0 |
(top 24 of 29)
888 followers · starred Sep 2023
384 followers · starred Oct 2024
666 followers · starred Nov 2020
91 followers · starred Jul 2025