Skip to main content

Anyone have a script to turn off end user firewall settings so we can VNC into laptop for assistance?

Thanks

The following command will turn off the firewall:

/usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off

@skeenan07 something like this?

!/bin/sh

/usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off


@EliasG Yep. You could add this command as well to unblock all incoming connections, but I don't think it would be necessary if you're completely turning off the firewall.

/usr/libexec/ApplicationFirewall/socketfilterfw --setblockall off