quickly turn firewall on and off

I am looking for a way to turn the firewall on and off in one click, or maybe just one or two steps, instead of Apple | Sys Prefs (pause to load) | Network--nope that's wrong, Security? Oh, yeah-- | Sharing | Firewall, click Start/Stop.

Is there a utility out there that would allow it? Or might it be possible to script this?

Thanks,
Daiya

(I am asking because I have a couple of sites in Dreamweaver that won't connect when the Firewall is on. I've tried to fix this in DW/server side, but it's just not going to happen from that end.)

PowerBook G4 (1.5ghz, 2gb ram), Mac OS X (10.4.11)

Posted on May 18, 2008 6:08 AM

Reply
7 replies

May 19, 2008 4:10 PM in response to sig

Thanks all for your help on this, but the server is using the default port 21 that DW uses, so no go with that approach. The same settings that worked in OS 10.3 stopped working when I moved to 10.4, which makes me think it's not a simple setup problem, although I did try all the combinations I could of different settings in DW and Firewall, when I first moved to Tiger.

So, to return to the original workaround---any suggestions for ways to quickly toggle the firewall?

thanks,
Daiya

May 19, 2008 5:05 PM in response to Daiya

Do you know why you need to allow incoming connexions for DW? It isn't that I disbelieve you. It just seems odd. One way of telling what's causing problems is to set up logging for the firewall (I think it is under "advanced") and then to see what happens in the log file when you try to access whatever and it doesn't work.

You could script starting and stopping the firewall. The trouble is that if the System thinks you are managing the firewall settings other than through System Preferences, it will grey out all the firewall options to avoid a conflict. It is not then enough to stop the other software - you have to reboot to get the System Preferences interface to work again.

I'm not sure exactly what it takes to convince it that other software is configuring the firewall so I don't know exactly what you can get away with.

A direct command line approach would be:
sudo ipfw disable firewall
sudo ipfw enable firewall

However you do it, it won't be one-click as it will require authentication.

The other possibility might be to use the defaults command to manipulate the preferences.

- cfr

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

quickly turn firewall on and off

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.