Guest User

Untitled

a guest
Feb 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
  4. # which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
  5. # from time to time
  6. # Usage: checkpoint.sh load|unload
  7. # You will need sudo power, of course
  8. #
  9.  
  10. if [ $1 == "unload" ]
  11. then
  12. killall Endpoint_Security_VPN
  13. killall TrGui
  14. killall TrGUI;
  15. fi
  16. sudo launchctl $1 /Library/LaunchDaemons/com.checkpoint.epc.service.plist && sudo kext$1 /System/Library/Extensions/cpfw.kext
  17. if [ $1 == 'load' ]
  18. then
  19. /Applications/Endpoint\ Security\ VPN.app/Contents/MacOS/Endpoint_Security_VPN 2>1 > /dev/null &
  20. fi
Add Comment
Please, Sign In to add comment