Created
February 29, 2020 08:05
-
-
Save liyuntao/b29a20aa4d0da5f18942ec91c3814056 to your computer and use it in GitHub Desktop.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: put the file anywhere, remember `chmod u+x fuckoff.command` | |
# So you can call the script from e.g. `spotlight` or by doubleclick. | |
# | |
# Typing `fuckoff` in spotlight with your anger then hit Enter. | |
# Then the silly client will no longer bother your network. | |
# | |
# [Thanks to](https://gist.github.com/phoob/671e65332c86682d5674) | |
SERVICE='Endpoint_Security_VPN' | |
if ps ax | grep -v grep | grep $SERVICE > /dev/null | |
then | |
# $SERVICE is running. Shut it down | |
sudo launchctl unload /Library/LaunchDaemons/com.checkpoint.epc.service.plist | |
sudo kextunload /Library/Extensions/cpfw.kext | |
killall $SERVICE | |
fi | |
osascript -e 'tell application "Terminal" to close (every window whose name contains "fuckoff.command")' & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment