Sometimes I need to download big ISOs or other large files onto my work laptop, but GlobalProtect forces me to do so via the VPN. In order to speed things up and use my local network connection, I need to disable the VPN, but I cannot do so due to restrictions (it asks for a ticket ID).
Anything’s possible in Unix, so here’s how you force it:
1 2 |
# disable launchctl remove com.paloaltonetworks.gp.pangps |
1 2 |
# enable launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist |
If this is against IT policy at your company, don’t blame me 🙂 .
Here’s a script you can use to make this easy to toggle:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#!/bin/bash function up() { launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist } function down() { launchctl remove com.paloaltonetworks.gp.pangps } case $1 in up) echo "gp up" up ;; down) echo "gp down" down ;; *) echo "'$1' is not a valid verb. The only valid verbs are 'up' and 'down'." exit 1 ;; esac |
Neat trick, thanks for sharing.
Not sure if they changed something or I have a different configuration, but I was able to make this work by renaming the plist to
com.paloaltonetworks.gp.pangpa.plist
.