Linux Kamarada

How to connect to a GlobalProtect VPN

GlobalProtect is the name of the virtual private network (VPN) provided by the Palo Alto Networks firewalls. Are you going to work remotely for a company that requires you to use this VPN? Here’s how to install the necessary software and connect on openSUSE Leap and Tumbleweed and also on Linux Kamarada (a novel Linux distro based on openSUSE Leap).

VPNs are used by organizations (such as companies and universities) to allow people (employees and students) to remotely connect to their networks. A VPN provides an encrypted connection (a tunnel) between your home computer and the organization network. If you want to know more about VPNs, read the beginning of this post:

On that occasion, we talked about OpenVPN, another VPN technology.

Today, we are going to talk about GlobalProtect.

Linux users have two options for connecting to GlobalProtect VPNs:

  1. the OpenConnect client, which is a free software, thus provided by the Linux distributions themselves; or
  2. the official (proprietary) GlobalProtect client, provided by Palo Alto Networks.

I advance that I was not able to make the official client work on openSUSE. So, I mention it here just to let you know that it exists.

Option #1: OpenConnect client

OpenConnect is a VPN client initially created to support Cisco’s AnyConnect VPN. It has since been ported to support the Pulse Connect Secure VPN and the PAN GlobalProtect VPN. Support for the latter came with version 8.00, released on January 4, 2019.

Installation

openSUSE Tumbleweed, the rolling release version of openSUSE, has OpenConnect version 8.05 available on its official repositories. If you use this distribution, to install OpenConnect, you just need to run:

1
# zypper in openconnect

openSUSE Leap 15.1, the (traditional) regular release version of openSUSE, offers OpenConnect version 7.08 on its official repositories.

That is the same version that comes installed out-of-the-box on Linux Kamarada 15.1.

If you are an user of either of these distros, you need to update OpenConnect to version 8.05, which can be retrieved from the network repository. To do this, first add the network repo:

1
# zypper ar http://download.opensuse.org/repositories/network/openSUSE_Leap_15.1/ network

Then, install the OpenConnect package (explicitly stating that you want to download it from the network repo):

1
# zypper in network:openconnect

Up-to-date OpenConnect installed, everyone on the same page, let’s see how to use it.

Connection

To connect to a GlobalProtect VPN, have the following information ready:

If you don’t know them, ask your organization’s network administrator or IT staff.

Open a terminal window (reserve a terminal window just for connecting) and run the following command, making the appropriate replacements:

1
$ sudo openconnect --protocol=gp global.protect.server -u user-name

Type the administrator (root user) password and hit Enter:

1
[sudo] password for root:

Then, when prompted, enter your user password to access the VPN:

1
2
3
4
5
6
POST https://vpn.XXXXXXXX.br/ssl-vpn/prelogin.esp?tmp=tmp&clientVer=4100&clientos=Linux
Connected to 200.XXXXX.4:443
SSL negotiation with vpn.XXXXXXXX.br
Connected to HTTPS on vpn.XXXXXXXX.br
Digite o seu usuário e senha:
Senha:

Connection is established and the IP address you obtained from the VPN is informed:

1
2
3
4
5
6
7
8
9
10
11
POST https://vpn.XXXXXXXX.br/ssl-vpn/login.esp
GlobalProtect login returned authentication-source=auth-seq_ad-local-vpn
POST https://vpn.XXXXXXXX.br/ssl-vpn/getconfig.esp
Session will expire after 43199 minutes.
Tunnel timeout (rekey interval) is 180 minutes.
Idle timeout is 180 minutes.
No MTU received. Calculated 1422 for ESP tunnel
POST https://vpn.XXXXXXXX.br/ssl-vpn/hipreportcheck.esp
Connected as 10.22.4.171, using SSL, with ESP in progress
ESP session established with server
ESP tunnel connected; exiting HTTPS mainloop.

In this example, 10.22.4.171.

The OpenConnect command does not end immediately. Instead, it runs indefinitely. You remain connected to the VPN as long as you keep that program running (that’s why I advised to reserve a terminal window just for it).

During this time, you can access the organization’s internal systems from your home computer as if you were there (phisically speaking).

When you no longer need the VPN and want to disconnect, press Ctrl + C to stop OpenConnect (and close the connection):

1
2
3
4
5
6
7
8
9
^CPOST https://vpn.XXXXXXXX.br/ssl-vpn/logout.esp
SSL negotiation with vpn.XXXXXXXX.br
Connected to HTTPS on vpn.XXXXXXXX.br
Logout successful
RTNETLINK answers: No such process
RTNETLINK answers: No such process
RTNETLINK answers: No such process
RTNETLINK answers: No such process
User cancelled (SIGINT/SIGTERM); exiting.

Option #2: GlobalProtect official client

Palo Alto Networks provides a GlobalProtect app for Linux in two versions: a command line interface (CLI) version and a graphical user interface (GUI) version. Ideally, the package or installer should be provided to you by the organization’s network administrator or IT staff.

Unfortunately, there are organizations that do not support Linux. Searching the Internet, I found a link to download the GlobalProtect app on this page of the Kansas State University:

Also unfortunately, I was unable to make it work on Linux Kamarada 15.1, neither the CLI version, nor the GUI version. The GlobalProtect compatibility matrix shows that the Linux distributions officially supported by Palo Alto Networks are CentOS, Red Hat Enterprise Linux (RHEL) and Ubuntu. openSUSE distributions are not officially supported.

References

Would you buy me a coffee?
If you really liked it, if it was really helpful for you, is it worth a coffee? If you want, you can "buy me a coffee" with PayPal or contribute to the project in other ways.

Comments

About

The Linux Kamarada Project aims to spread and promote Linux as a robust, secure, versatile and easy to use operating system, suitable for everyday use be at home, at work or on the server. The project focuses mainly on distribution and documentation.

Ads

Facebook

Author