|
|
10.5: Enable and disable the firewall via AppleScript
Nothing original here, I've simply combined a couple of the previous suggestions. Place this one script, saved as an application, in your script folder and use it to toggle the firewall on or off. If the firewall is ON, it will change its name to "Turn Firewall OFF". If the firewall is OFF, it will change its name to "Turn Firewall ON". (Warning - Do not run this script from within the Script Editor. Save it as an application first and then run it).
I have it set to toggle between "Allow all incoming connections" (OFF) and "Set access for specific services and applications" (ON). If you want in to toggle between "Allow all incoming connections" (OFF) and "Allow only essential services" (ON), change the number "1" in line seven to the number "2". Here's the script:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|