Go to file
2021-09-18 20:43:42 +08:00
.github/workflows Add default value to client os (#86) 2021-09-02 21:08:56 +08:00
3rdparty update the 3rd party version 2021-09-13 11:05:19 +08:00
cmake update cmake file 2021-09-14 22:43:02 +08:00
debian Remove qt5 default (#68) 2021-07-04 18:31:28 +08:00
GPClient improve cmake file 2021-09-15 13:41:00 +08:00
GPService check the openconnect version 2021-09-18 20:43:42 +08:00
packaging/rpm add rpm packaging (#83) 2021-08-31 20:52:08 +08:00
scripts update the install steps 2021-09-18 18:42:25 +08:00
.gitignore add cmakew 2021-09-16 00:01:29 +08:00
.gitmodules move the 3rd party libs 2021-09-12 21:25:30 +08:00
CMakeLists.txt add cmakew 2021-09-16 00:01:29 +08:00
cmakew remove echo 2021-09-16 00:17:37 +08:00
LICENSE Initial commit 2020-02-15 16:23:49 +08:00
PKGBUILD.template Mark for inclusion in aarch64 archlinux repository (#58) 2021-05-06 15:19:07 +08:00
README.md update the install steps 2021-09-18 18:42:25 +08:00

GlobalProtect-openconnect

A GlobalProtect VPN client (GUI) for Linux based on Openconnect and built with Qt5, supports SAML auth mode, inspired by gp-saml-gui.

Features

  • Similar user experience as the official client in macOS.
  • Supports both SAML and non-SAML authentication modes.
  • Supports automatically selecting the preferred gateway from the multiple gateways.
  • Supports switching gateway from the system tray menu manually.

Future plan

  • Improve the release process
  • Process bugs and feature requests
  • Support for bypassing the gpclient parameters
  • Support the CLI mode

Passing the Custom Parameters to OpenConnect CLI

Custom parameters can be appended to the OpenConnect CLI with the following settings.

Tokens with spaces can be surrounded by double quotes; three consecutive double quotes represent the quote character itself.

Display the system tray icon on Gnome 40

Install the AppIndicator and KStatusNotifierItem Support extension and you will see the system try icon (Restart the system after the installation).

Prerequisites

  • Openconnect v8.x
  • Qt5, qt5-webengine, qt5-websockets

Ubuntu

  1. Install openconnect v8.x

    sudo apt install openconnect
    openconnect --version
    

    For Ubuntu 18.04, using this dwmw2/openconnect PPA.

    sudo add-apt-repository ppa:dwmw2/openconnect && sudo apt-get update && sudo apt install -y openconnect
    
  2. Install the Qt dependencies

    sudo apt install -y build-essential qtbase5-dev libqt5websockets5-dev qtwebengine5-dev
    

openSUSE

Install the Qt dependencies

sudo zypper install libqt5-qtbase-devel libqt5-qtwebsockets-devel libqt5-qtwebengine-devel

Fedora

Install the Qt dependencies:

sudo dnf install qt5-qtbase-devel qt5-qtwebengine-devel qt5-qtwebsockets-devel

Install

Install from AUR (Arch/Manjaro)

Install globalprotect-openconnect.

Build from source code

git clone https://github.com/yuezk/GlobalProtect-openconnect.git
cd GlobalProtect-openconnect

./scripts/install.sh

Open GlobalProtect VPN in the application dashboard.

Debian package

Relatively manual process for now:

  • Clone the source tree

    git clone https://github.com/yuezk/GlobalProtect-openconnect.git
    cd GlobalProtect-openconnect
    
  • Install git-archive-all using the pip. Remember to adjust the version numbers etc.

    pip install git-archive-all
    
  • Next create an upstream source tree using git archive.

    git-archive-all --force-submodules --prefix=globalprotect-openconnect-1.3.0/ ../globalprotect-openconnect_1.3.0.orig.tar.gz
    
  • Finally extract the source tree, build the debian package, and install it.

    cd ..
    tar -xzvf globalprotect-openconnect_1.3.0.orig.tar.gz
    cd globalprotect-openconnect-1.3.0
    fakeroot dpkg-buildpackage -uc -us -sa 2>&1 | tee ../build.log
    sudo dpkg -i globalprotect-openconnect_1.3.0-1ppa1_amd64.deb
    

NixOS

In configuration.nix:

services.globalprotect = {
  enable = true;
  # if you need a Host Integrity Protection report
  csdWrapper = "${pkgs.openconnect}/libexec/openconnect/hipreport.sh";
};

environment.systemPackages = [ globalprotect-openconnect ];

License

GPLv3