Skip to content

Instantly share code, notes, and snippets.

@daniepetrov
Forked from jasmas/acdisable
Created July 4, 2023 08:02
Show Gist options
  • Save daniepetrov/6ccf6824663adfcbab0e6135921df682 to your computer and use it in GitHub Desktop.
Save daniepetrov/6ccf6824663adfcbab0e6135921df682 to your computer and use it in GitHub Desktop.
Enable/Disable Cisco AnyConnect Socket Filter Extension on MacOS
#!/bin/sh
echo Disabling vpnagentd...
sudo launchctl disable system/com.cisco.anyconnect.vpnagentd
echo Tearing down vpnagentd...
sudo launchctl bootout system /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
echo Deactivating Cisco AnyConnect Socket Filter Extension...
/Applications/Cisco/Cisco\ AnyConnect\ Socket\ Filter.app/Contents/MacOS/Cisco\ AnyConnect\ Socket\ Filter -deactivateExt
#!/bin/sh
echo Enabling vpnagentd...
sudo launchctl enable system/com.cisco.anyconnect.vpnagentd
echo Bootstrapping vpnagentd...
sudo launchctl bootstrap system /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment