Skip to content

Instantly share code, notes, and snippets.

@ibnesayeed
Last active January 18, 2018 20:12
Show Gist options
  • Select an option

  • Save ibnesayeed/2acaaef2c92c18ccdfed434093f2ba52 to your computer and use it in GitHub Desktop.

Select an option

Save ibnesayeed/2acaaef2c92c18ccdfed434093f2ba52 to your computer and use it in GitHub Desktop.
Install openconnect VPN client with GlobalProtect support

GlobalProtect VPN

This script is made to work on modern Ubuntu-based Linux distributions.

Install openconnect VPN client with GlobalProtect support:

$ chmod a+x openconnect-installer.sh
$ sudo ./openconnect-installer.sh

Run openconnect to connect to the VPN server (ODU CS's VPN server in the following example):

$ sudo openconnect --protocol=gp gp.cs.odu.edu
#!/usr/bin/env bash
# Install build esentials
apt update && apt install -y git build-essential gettext autoconf automake libproxy-dev libxml2-dev libtool vpnc-scripts pkg-config libgnutls28-dev
# Install special openconnect with GlobalProtect support
cd /tmp
git clone https://github.com/dlenski/openconnect.git
cd openconnect
git checkout globalprotect
./autogen.sh
./configure
make
make install
ldconfig
rm -rf /tmp/openconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment