Skip to content

Instantly share code, notes, and snippets.

@jonasbjork
Created November 14, 2017 17:50
Show Gist options
  • Save jonasbjork/39489120bb0ea38b545c393cd09bc4c9 to your computer and use it in GitHub Desktop.
Save jonasbjork/39489120bb0ea38b545c393cd09bc4c9 to your computer and use it in GitHub Desktop.

Palo Alto Globalprotect VPN (SSL) on Fedora 26

openconnect is already installed with Fedora 26 Workstation, but it can’t connect to Globalprotect VPN (SSL) so we need to compile an own version of openconnect found on github.com . First, we need to install some dependencies for building:

sudo dnf install autoconf automake libtool openssl-devel libxml2-devel 

Then we use git to clone the source code:

git clone https://github.com/dlenski/openconnect.git
git checkout globalprotect

And then build the source code, and install openconnect in the system:

./autogen.sh
./configure
make
sudo make install

To connect to your Globalprotect VPN server you need to specify --protocol=gp and also - sudo is important. Else openconnect can’t create the vpn-tunnel. You will be prompted for username and password, and to accept the certificate if you use a self signed one.

sudo /usr/local/sbin/openconnect --protocol=gp server.domain.com --dump -vvv
Please enter your username and password
Username: jonas
Password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment