The following script can be used to disable Zscaler on macOS. Zscaler is software that blocks access to Internet resources on corporate managed computers. These scripts will not uninstall the Zscaler software.
You may be asked to enter a password for command operations that require
elevated privileges via sudo. If you do not have permission to run commands
with sudo then these scripts will not work for you.
Where the script makes a change to prevent automatic restarts, a 'start' action has been provided to reset those changes back to normal, so Zscaler can restart normally after a reboot.
Download and install the script using curl as shown below.
curl -L https://gist.github.com/christopher-hopper/c8033839ef927a201feb8a8e8d256ed7/raw/zscaler-stop.sh -o zscaler-stop.sh && chmod ug+x $_
NOTE: Using curl to access gist.github.com may not work when Zscaler
is running. If so, copy and paste the raw script contents to a new file and
save it as zscaler-stop.sh.
TIP: Optionally, after download move the script into the
/usr/local/bin folder so you can execute it from anywhere.
After downloading the script can be executed in the terminal.
To stop Zscaler, in a terminal run the script with no arguments:
./zscaler-stop.sh
To restart Zscaler, run the script with the start argument:
./zscaler-stop.sh start
To check if Zscaler is listening and get usage help, run the script
with the help argument:
./zscaler-stop.sh help
How can I tell if Zscaler is running?
If you reboot macOS your system may attempt to restart the Zscaler proxy in the background, even though the Zscaler client application is not running. Check to see if the Zscaler proxy is actively listening with this command:
sudo lsof +c0 -Pi -a -c "/zscaler/i"The command above will show all network connections open for "zscaler".
Zscaler proxy listens on port 9000. If you see Zscaler listening on port 9000 run the
zscaler-stop.shscript again to kill it.