0

I want to script the turning on and off of the "block all incoming connections"-function of the built-in firewall in OS X. What terminal-command would achieve this?

I'm not talking about sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0 to turn the firewall on, but specifically about the "block all incoming connections"-option which is available in the GUI under "Firewall Options…" in "System Preferences".

1 Answer 1

0

I found the answer here amongst all sorts of firewall related scripting instructions.

It's /usr/libexec/ApplicationFirewall/socketfilterfw --setblockall on

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .