Skip to content

Instantly share code, notes, and snippets.

@jrussett
Last active March 30, 2023 12:55
Show Gist options
  • Save jrussett/22fcd093ed46d104beff705b1a96463a to your computer and use it in GitHub Desktop.
Save jrussett/22fcd093ed46d104beff705b1a96463a to your computer and use it in GitHub Desktop.
Dealing with PaloAltoNetworks GlobalProtect VPN

Prevent Automatic daemon launching:

Modify the launchd agent for GlobalProtect:

sudo nvim /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
  • Modify RunAtLoad and KeepAlive to <false/>
sudo nvim /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
  • Modify RunAtLoad to <false/>
  • Modify KeepAlive to <false/>

launchctl and other Operations

Starting PAN GlobalProtect

launchctl start com.paloaltonetworks.gp.pangps
launchctl start com.paloaltonetworks.gp.pangpa

Stoping PAN GlobalProtect

# Gracefully
launchctl stop com.paloaltonetworks.gp.pangpa
launchctl stop com.paloaltonetworks.gp.pangps
launchctl stop com.paloaltonetworks.gp.pangps #you need to kill PanGPS twice, it respawns the first time

# Forcefully
sudo killall GlobalProtect && sudo killall PanGPS

List the processes

launchctl list | grep palo

ps auxwww | egrep "GlobalProtect|PanGPS"

Resources:

@thoroc
Copy link

thoroc commented Apr 4, 2022

Found that /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist had a dict key for KeepAlive:

    <key>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
        <true/>
    </dict>

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