Skip to content

Instantly share code, notes, and snippets.

@wazum
Forked from bubenkoff/checkpoint.sh
Last active November 25, 2017 17:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wazum/6410172c5ce5dabfdd4f8c7465011252 to your computer and use it in GitHub Desktop.
Save wazum/6410172c5ce5dabfdd4f8c7465011252 to your computer and use it in GitHub Desktop.
Endpoint Security VPN FULL start/stop script for Mac OS X
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
# Usage: checkpoint.sh load|unload
# You will need sudo power, of course
#
if [ $1 == "unload" ]
then
killall Endpoint_Security_VPN
killall TrGui
killall TrGUI;
fi
sudo launchctl $1 /Library/LaunchDaemons/com.checkpoint.epc.service.plist && sudo kext$1 /Library/Extensions/cpfw.kext
if [ $1 == 'load' ]
then
/Applications/Endpoint\ Security\ VPN.app/Contents/MacOS/Endpoint_Security_VPN 2>1 > /dev/null &
fi
@wazum
Copy link
Author

wazum commented Oct 20, 2016

Updated path to cpfw.kext to work with MacOS Sierra (10.12)

@ubaierbhat
Copy link

This works great 👍

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