10.5: Control the firewall from the command line
Mon, Jan 14 2008 at 7:30AM PST • Contributed by: allanmarcus
Mon, Jan 14 2008 at 7:30AM PST • Contributed by: allanmarcus
It appears you can turn the Leopard firewall on or from the command line with this command:
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
The last value represents the state of the firewall, where:
- 0 = off
- 1 = on for specific services
- 2 = on for essential services
•
[8,533 views]
