I can use the Security & Privacy preference pane to enable and disable the firewall, but how can I do it with the command line - something with
defaults write maybe?
Enable the application firewall via
(0 to disable), and restart the services
The application firewall can be controlled with the
See here for further information.
Note that the application firewall is entirely different from the BSD packet filter, that can be configured with the