GlobalProtect-openconnect: a free gpclient CLI with a partly proprietary GP Connect GUI
A GlobalProtect VPN client for Linux, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, YubiKey, and client certificate authentication, etc.
At a glance
- What is it?
- GlobalProtect-openconnect connects desktop machines to Palo Alto GlobalProtect portals through OpenConnect, with SSO handled in a browser. The command-line tool is open source, the GUI wrapper is not. This review covers authentication paths, HIP reports, cookie caching, platform limits and the version split for older Linux.
- Who is it for?
- GlobalProtect-openconnect suits Linux, BSD and Apple silicon users who must reach a GlobalProtect portal that demands SSO, MFA or a security key, and who are happy driving it from the gpclient CLI. It does not suit anyone who needs the desktop GUI to be fully open source, since the GUI wrapper is proprietary, or anyone on Windows, which the README never lists.
- Can I use it commercially?
- Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- yuezk/GlobalProtect-openconnect2,353 ★ · +70
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| yuezk/GlobalProtect-openconnect | 2.3k | 2.4k |
70 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The gpclient CLI is free, and only the GUI wrapper is closed
The project ships two front ends over one engine. The command-line tool, gpclient, is free and open source, and the README says to use it to authenticate, connect to portals or gateways, and generate HIP reports from the terminal. The desktop application is called GP Connect. Its README note is specific: the GUI version is partially open source. The background service, gpservice, is open source, while the GUI wrapper is proprietary.
The macOS section repeats the split in practical terms. The macOS app includes both GP Connect and the free gpclient CLI, and the CLI does not require a GUI license. So a license applies to the GUI, and the README points a reader who wants no license at all to the terminal.
Under the hood the project is built on OpenConnect and the Tauri toolkit, and the README credits gp-saml-gui as its inspiration. The Cargo workspace lists four members beyond the shared crates: apps/gpclient, apps/gpservice, apps/gpauth and apps/gpgui-helper/src-tauri.
Browser-based SSO with gpclient connect, and a manual mode for headless hosts
The core workflow is a single command. The README says gpclient opens the browser as your normal desktop user while keeping VPN tunnel setup privileged, so SSO happens in an unprivileged window and only the tunnel runs as root:
sudo gpclient connect <portal> --browserThe flag has three forms. --browser alone selects an available browser. --browser <browser> names one, such as firefox or chrome. --browser manual is for standalone CLI installations and headless servers: you open the printed URL elsewhere and paste the resulting globalprotectcallback data into the terminal.
The manual mode has a rename that matters to scripts. Before v3.0.6 the same mode was called --browser remote. A script written against an older release will fail on a newer one, or the reverse, so check which version is installed before copying an old command line. The top-level options printed by gpclient help show the other switches an operator will meet: --ignore-tls-errors to skip TLS verification, --lock-file to set the path of the gpclient PID lock file, and --log-format to choose the log output format. The subcommands are connect, disconnect, launch-gui, hip and help, and gpclient help <command> prints detail for any of them. Skipping TLS verification is a risky default to copy into a script, because it removes the check that the portal is the server you meant to reach. Beyond SSO, the feature list names non-SSO login, FIDO2 keys such as YubiKey, and client certificate authentication.
Cookie caching saves the SSO round trip but writes a root-owned file under sudo
Repeating browser authentication for every connection is tedious, so gpclient can keep a portal cookie. Adding --cookie-cache reuses a saved cookie for later connections:
sudo gpclient connect <portal> --browser --cookie-cacheThe default cache file is $HOME/.config/gpclient/cookie.json. The README warns that under sudo this file normally belongs to root, which surprises people who then look for it in their own home directory and cannot read it. To choose a predictable location, give the path explicitly:
sudo gpclient connect <portal> --browser --cookie-cache=/absolute/path/to/cookie.jsonAdd --gateway <gateway> to select a particular gateway. The README says cookie caching is handled by gpclient, and it does not state how long a cached cookie stays valid. That is decided by your portal's policy, so expect to re-authenticate when the server expires the session.
HIP reports are off by default and each flag changes who runs the script
Many GlobalProtect gateways ask the client for a host information profile, called a HIP report. In this CLI it is disabled unless you enable it explicitly. The --hip flag generates reports inside gpclient, including later reports that the gateway requests during the session:
sudo gpclient connect <portal> --hipFor a custom report, pass an absolute path, as in --hip=/absolute/path/to/script. That executable runs as the gpclient process user unless --hip-user names another user. The README adds two limits. No installed HIP script is discovered automatically, so you must point at it. And --hip-user applies only to custom executables.
gpclient hip generates a report on demand so you can inspect it, with report inputs described under gpclient hip --help. The GUI's HIP tab supports generated reports, edited XML and HIP Off on all desktop platforms. On Linux, FreeBSD and OpenBSD it also supports desktop-user scripts and explicitly approved root scripts, so those extra script options do not exist on macOS.
Platform limits: Apple silicon only on macOS, no Windows, and v2.3.13 for older Linux
The README names four desktop platforms: macOS, Linux, FreeBSD and OpenBSD. Windows is not among them. On macOS, GP Connect requires Apple silicon and macOS 13 or later, so an Intel Mac is outside the stated support. Install with Homebrew:
brew install --cask yuezk/gp-connect/gp-connector download the .dmg from the releases page and drag GP Connect into Applications.
Older Linux distributions are told to use v2.3.13 instead of the latest release. That version provides assets for common families: .deb for Debian and Ubuntu, .pkg.tar.zst for Arch Linux and Manjaro, .rpm for Fedora, RHEL, Rocky, AlmaLinux and CentOS, and generic .bin.tar.xz tarballs. The cost is that you get the old release line, which predates the v3 behaviour described above, such as the --browser manual spelling.
One option differs by platform. --fix-openssl, an extended compatibility mode for OpenSSL operations, is available on Linux, FreeBSD and OpenBSD. macOS uses native TLS and GnuTLS and does not accept it.
Distribution packages cover Debian, Arch, Fedora, openSUSE, Alpine, the BSDs, Gentoo, NixOS and Docker
The installation list is long. Debian and Ubuntu users get a PPA, marked as the recommended option:
sudo add-apt-repository ppa:yuezk/globalprotect-openconnect
sudo apt-get update
sudo apt-get install globalprotect-openconnectThe README adds a note for Linux Mint users: if a GPG key error appears, import the key manually. Further sections cover Arch Linux and Manjaro, Fedora 38 and later plus Rawhide, openSUSE Leap 15.6 and later plus Tumbleweed, other RPM-based distributions, Alpine Linux, FreeBSD, OpenBSD, Gentoo, NixOS, an official Docker image and other distributions. The repository has a flake.nix and a nix/ directory, a packaging/ directory and a Makefile that sets the package name globalprotect-openconnect.
Follow the README section for your distribution. The point worth keeping is that packaging is split across many maintainers' formats, and the version you get from a distribution may trail the v3.2.0 release.
Building from source: Rust 1.91, and the GUI is excluded unless you ask for it
The Cargo workspace sets rust-version to 1.91 and edition 2024, and the Makefile carries RUST_VERSION ?= 1.91, so an older toolchain will not build it. A rust-toolchain.toml pins the toolchain, and a DISABLE_RUST_TOOLCHAIN switch in the Makefile turns that pinning off.
The shared dependencies in Cargo.toml give a picture of the stack: clap for the command line, tokio for async work, axum with only its http1 feature, reqwest built with native-tls, openssl and serde. Nothing there is a GUI toolkit, which matches the closed wrapper sitting outside the workspace. The Makefile defaults INCLUDE_GUI to 0, which fits the licensing split: a source build produces the open pieces and skips the proprietary wrapper unless you opt in and supply a GUI binary. Other switches are BUILD_GUI_HELPER, set to 1 by default, and BUILD_WEBVIEW_AUTH, also 1 by default, which controls whether embedded webview authentication support is built into gpauth. PREFIX defaults to /usr on Linux, /opt/homebrew on Apple silicon and /usr/local elsewhere.
The README also has a NetworkManager integration section and a FAQ. Check them if you want the VPN managed through NetworkManager rather than started by hand.
Releases arrive within days, and the GNOME tray needs an extension
Recent releases are v3.2.0 on 2026-10-22, v3.1.0 on 2026-10-19 and v3.0.5 on 2026-10-13, and the last push was on 2026-10-13. Three versions within ten days point to a fast-moving v3 line. The changelog sits in changelog.md, and the --browser manual rename at v3.0.6 is the kind of change it records.
The GUI has small desktop requirements. System tray integration is a listed feature, but on GNOME it requires gnome-shell-extension-appindicator. Without that extension the tray icon will not show. Other listed features are auto-connect on system startup, connecting to multiple portals and gateways, and a direct gateway connection that bypasses portal selection.
The license is GPL-3.0, which covers the open source parts. The proprietary GUI wrapper is a separate matter, and the README gives no terms for it beyond calling it proprietary.
Editorial conclusion
GlobalProtect-openconnect suits Linux, BSD and Apple silicon users who must reach a GlobalProtect portal that demands SSO, MFA or a security key, and who are happy driving it from the gpclient CLI. It does not suit anyone who needs the desktop GUI to be fully open source, since the GUI wrapper is proprietary, or anyone on Windows, which the README never lists. Before relying on it, run sudo gpclient connect <portal> --browser against your own portal and check whether it also asks for HIP reports.
Frequently asked questions
What is GlobalProtect-openconnect?
It is a GlobalProtect VPN client built on OpenConnect with SSO authentication. It provides the gpclient command-line tool and the GP Connect desktop app for macOS, Linux, FreeBSD and OpenBSD.
Is the GlobalProtect-openconnect GUI open source?
Partly. The background service gpservice is open source, but the GUI wrapper is proprietary. The gpclient CLI is free and open source and needs no GUI license.
How do I connect with GlobalProtect-openconnect using SSO?
Run sudo gpclient connect <portal> --browser. The browser opens as your normal desktop user, while the VPN tunnel setup stays privileged.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/yuezk-globalprotect-openconnect)Star history chart for your README
[](https://hysenlabs.com/projects/yuezk-globalprotect-openconnect)Was this useful?