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".