Skip to content

Instantly share code, notes, and snippets.

@jasmas
Created January 26, 2022 17:29
Show Gist options
  • Save jasmas/22a4b1b12676c36074a4999c68e6a482 to your computer and use it in GitHub Desktop.
Save jasmas/22a4b1b12676c36074a4999c68e6a482 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
@MrGys
Copy link

MrGys commented Nov 24, 2024

will I get in trouble for disabling and can I safely enable it back without repercussions?

@MrGys
Copy link

MrGys commented Nov 24, 2024

SCR-20241124-edke

@jasmas
Copy link
Author

jasmas commented Nov 25, 2024

SCR-20241124-edke

What view is this?

@MrGys
Copy link

MrGys commented Nov 26, 2024

SCR-20241124-edke

What view is this?

VPN & filters

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