Skip to content

Simple command line script to deactivate and re-activate Global Protect on MacOS

Notifications You must be signed in to change notification settings

jmfife/globalprotectupdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Global Protect Up/Dn (gp)

A bash script for MacOS that can be used to disable and re-enable Global Protect. (Based on a solution from https://kb.mc3.edu/article.php?id=11457)

Installation

Clone this repo. Note: probably global protect needs to be disabled from the UI before you can access GitHub, which in itself dempostrates why this kind of command line tool is useful!

git clone git@github.com:jmfife/globalprotectupdn.git

Make sure you have a place to keep scripts that is in PATH, e.g. in /Users/<user_id>/bin. If you don't have it already, do the following (assuming here you are running zsh).

mkdir ~/bin
echo "export PATH=\"\$HOME/bin:\$PATH\"" >> ~/.zshrc
exec zsh

Install gp there.

cp globalprotectupdn/gp ~/bin
chmod +x ~/bin/gp

Now you can remove the Git repo if you like.

rm -rf globalprotectupdn

Usage:

gp [-h] [up|dn]

Options:

 -h       Display help message

Commands:

 up       Activate Global Protect
 dn       De-Activate Global Protect

Example:

% gp
Global Protect Enabled
% gp dn
Disabling Global Protect
% gp
Global Protect Disabled
% gp up
Re-Enabling Global Protect
% gp
Global Protect Enabled

About

Simple command line script to deactivate and re-activate Global Protect on MacOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages