Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zudsniper/054ad1c25fcd3439ac5dd1b8b3ddc55a to your computer and use it in GitHub Desktop.
Save zudsniper/054ad1c25fcd3439ac5dd1b8b3ddc55a to your computer and use it in GitHub Desktop.
🌍 Setup Guide for GlobalProtect Portal on Linux

Setup Guide for Cisco GlobalProtect VPN on Linux

written by @dylanngo95
(styled by @zudsniper)

1️⃣ Setup GlobalProtect

sudo apt update -y && sudo apt upgrade -y

Download GlobalProtect for Linux

Navigate to the downloaded file & use the following, depending on your Linux distro, to extract.

tar -xvzf PanGPLinux-5.0.8-c6.tgz
  • [Ubuntu/Debian]

    sudo dpkg – i GlobalProtect_deb-5.0.8.deb
  • [Redhat/CentOS]

    sudo yum localinstall GlobalProtect_rpm-5.0.8.rpm`

2️⃣ Connect to VPN

EXAMPLE

vpn.example.com
user@ubuntu:~$ globalprotect
Current GlobalProtect status: OnDemand mode.
>> connect –portal vpn.example.com
Retrieving configuration…
vpn.wsu.edu – Authentication Failed. Enter login credentials
username(user):user
Password:
Discovering network…
Connecting…
Connected

3️⃣ Disconnect from VPN

>> disable
>> disconnect
>> show –version
>> show –status
>> show –details

4️⃣ Logs

Using the terminal window and in globalprotect mode, run the collect-log command to create the support file.

user@ubuntu:~$ globalprotect
Current GlobalProtect status: Connected
>>
>> collect-log
Start collecting…
collecting network info…
collecting machine info…
copying files…
generating final result file…
The support file is saved to /home/user/.GlobalProtect/Collect.tgz

🆒 Miscellaneous Commands

COMMAND: Specifies the action to perform. It can be one of the following:
  collect-log            -- collect log information 
  connect                -- connect to server 
  disconnect             -- disconnect
  disable                -- disable connection
  import-certificate     -- import client certificate file
  quit                   -- quit from prompt mode
  rediscover-network     -- network rediscovery
  remove-user            -- clear credential 
  resubmit-hip           -- resubmit HIP information
  set-log                -- set debug level
  show                   -- show information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment