Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Last active September 20, 2024 22:24
Show Gist options
  • Save ziadoz/db753f5b034670d114cb56f312a704db to your computer and use it in GitHub Desktop.
Save ziadoz/db753f5b034670d114cb56f312a704db to your computer and use it in GitHub Desktop.
Reset macOS Sequoia Firewall
Disable the firewall:
/usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
Remove the firewall config (**doesn't work due to permissions**):
sudo rm /usr/libexec/ApplicationFirewall/com.apple.alf.plist
Or, backup the firewall config (**doesn't work due to permissions**):
sudo mv /usr/libexec/ApplicationFirewall/com.apple.alf.plist /usr/libexec/ApplicationFirewall/com.apple.alf.plist.bak
Enable the firewall:
/usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
Links:
https://forums.macrumors.com/threads/how-to-reset-firewall-which-is-blocking-remote-desktop.2361888/post-31546316
https://github.com/osquery/osquery/pull/8352
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment