The following scripts can be used to disable common security compliance software that blocks access to the Internet on corporate managed macOS computers. These scripts will not uninstall the 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
as a root user with sudo
then these scripts will not work for you.
The changes made by these scripts may be reset after reboot. Where a 'stop' script makes a change to prevent automatic restarts, a 'start' script will be provided to reset any change back to normal.
Download the script/s to stop the relevant software shown below. You do not need to download all scripts. Only download the script that is relevant to you.
NOTE: Using curl to access gist.github.com may not work when Zscaler or Netskope are running. If so, use another method to download the script contents.
curl -L https://gist.github.com/christopher-hopper/c8033839ef927a201feb8a8e8d256ed7/raw/zscaler-stop.sh -o zscaler-stop.sh && chmod ug+x $_
curl -L https://gist.github.com/christopher-hopper/c8033839ef927a201feb8a8e8d256ed7/raw/netskope-stop.sh -o netskope-stop.sh && chmod ug+x $_
curl -L https://gist.github.com/christopher-hopper/c8033839ef927a201feb8a8e8d256ed7/raw/cylance-stop.sh -o cylance-stop.sh && chmod ug+x $_
TIP: Optionally, after download move the script into the /usr/local/bin
folder so
you can execute it from anywhere.
After download and install the script can be executed in the terminal.
Top stop Zscaler, in a terminal run the script:
./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
In a terminal run the script:
./netskope-stop.sh
After running the ./netskope-stop.sh
script you will need to find and stop
the Netskope Client proxy in your macOS System Settings.
- Open macOS Apple menu 🍎 > System Setting dialog.
- Click on 🌐 Network in the sidebar.
- Click on VPN & Filters on the right.
- Under Filters & Proxies find the Netskope Client Transparent Proxy and select it.
- Once selected, use the minus button to remove it.
This will stop the transparent proxy from routing your traffic through Netskope.
In a terminal run the script:
./cylance-stop.sh
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.sh
script again to kill it.