Mac Procedure to Disable Firewall

Hello @batboy,

To disable the firewall on a Mac, you can indeed use the command you’ve mentioned. Here’s the step-by-step procedure.

Open Terminal on your Mac.
Enter the following command.

sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0

Press Enter.
If prompted, enter your administrator password and press Enter again.
This command sets the firewall’s global state to 0, which effectively turns it off. Remember, running commands with sudo grants them administrative privileges and should be done with caution.

For re-enabling the firewall, you would use a similar command, but you would change the value from 0 to 1.

sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1

Please ensure you understand the implications of disabling your firewall, as it can make your system more vulnerable to unauthorized access.