Last active
September 20, 2024 22:24
-
-
Save ziadoz/db753f5b034670d114cb56f312a704db to your computer and use it in GitHub Desktop.
Reset macOS Sequoia Firewall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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