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.

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

To turn on Firewall

To turn off Firewall

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository