Category filter
Script to enable/disable Firewall in macOS devices
Organizations usually enable the Firewall on their macOS devices to ensure network security. In some exceptional circumstances, the admin might also need to turn off the Firewall. Hexnode lets the admin switch on/off the Firewall using scripts.
To turn on Firewall
1 |
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1 |
To turn off Firewall
1 |
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0 |
Need more help?