Skip to main content
Jamf Nation, hosted by Jamf, is a dynamic and knowledgeable community of Apple-focused IT admins and Jamf Pro users. Join us in person, in October, for the annual Jamf Nation User Conference (JNUC) to discover new and better ways to manage Apple devices.

enableFirewall.sh -- Enables or Disables the firewall on Mac OS X Clients

Synopsis

sudo enableFirewall.sh
sudo enableFirewall.sh <mountPoint> <computerName> <currentUsername> <enableFirewall>

If there is a hardcoded value specified for <enableFirewall> in the script, or if the parameter is not passed by The Casper Suite, the hardcoded value in the script will be used.

The data that is specified for the <enableFirewall> parameter should be specified in one of
the following formats:

"TRUE"
"FALSE"
"YES"
"NO"

Description

This script enables or disables the firewall on Mac OS X 10.3 or later. It can be used with a hardcoded value in the script, or read in as a parameter. Since the Casper Suite defines the first three parameters as (1) Mount Point, (2) Computer Name and (3) username, we are using the fourth parameter ($4) as the passable parameter to acquire the status of <enableFirewall>. In addition, the fourth parameter is utilized to set the enableFirewall parameter.

Download

Preview

Generating Preview...

932 Downloads
Uploaded: 11/5/11 at 7:51 PM by jake
Product: Mac OS X