Skip to content

Instantly share code, notes, and snippets.

@iamdylanngo
Last active March 7, 2024 18:22
Show Gist options
  • Select an option

  • Save iamdylanngo/d8ad1c9face2853e956a50865f7d4ec5 to your computer and use it in GitHub Desktop.

Select an option

Save iamdylanngo/d8ad1c9face2853e956a50865f7d4ec5 to your computer and use it in GitHub Desktop.
Guide setup GlobalProtect Portal on Linux
# Guide setup GlobalProtect Portal on Linux
## Setup GlobalProtect
sudo apt update
Download GlobalProtect: https://github.com/jundat95/GlobalProtectVPN/raw/master/PanGPLinux-5.0.8-c6.tgz
Go to folder Downloads and Unzip: tar -xvzf PanGPLinux-5.0.8-c6.tgz
- Install GlobalProtect for Ubuntu/Debian:
sudo dpkg – i GlobalProtect_deb-5.0.8.deb
- Install GlobalProtect for Redhat/CentOS:
sudo yum localinstall GlobalProtect_rpm-5.0.8.rpm
## Connect to VPN
Example my company portal: 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
## Disconnect to VPN
>> disable
>> disconnect
>> show –version
>> show –status
>> show –details
# Check 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
## Other commands of note at the
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
@adraguidev
Copy link
Copy Markdown

nice contribution!

@Ze-Yang
Copy link
Copy Markdown

Ze-Yang commented Jun 18, 2022

Could you provide the lastest version of GlobalProtect. I have tried following your instruction but failed. I am not sure what's going wrong. I am with ubuntu 16.04.

@Pieter-JanLavaerts
Copy link
Copy Markdown

Thank you for this 🙏

@Baltyr
Copy link
Copy Markdown

Baltyr commented Nov 10, 2023

i love u

@c-orazio
Copy link
Copy Markdown

Could you provide the lastest version of GlobalProtect, it would be very useful with 22.04 ubuntu ;)

@c-orazio
Copy link
Copy Markdown

Start installing gp...
Dépaquetage de globalprotect (5.1.1-17) ...
Paramétrage de globalprotect (5.1.1-17) ...
Enable gp service...
Starting gp service...
Create symlink for gp cli...
Starting gpa...
bash: ligne 1: /opt/paloaltonetworks/globalprotect/PanGPA : impossible d'exécuter le fichier binaire : Erreur de format pour exec()
:((

@garnajee
Copy link
Copy Markdown

@c-orazio I just used PanGPLinux-5.1.1-c17.tgz on debian 12 and it worked fine

@poncorobbin
Copy link
Copy Markdown

i used PanGPLinux-5.3.5-c5.tgz on Pop!_OS 22.04 LTS and it worked perfectly, thank you.

@kiquetal
Copy link
Copy Markdown

kiquetal commented Mar 7, 2024

thank you my friend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment