HOW TO Quickie: Fix OS X Firewall

November 25, 2005 · 7 comments

I know I’ve been pumping out OS X tips for a while now, but I’ve got something for you XP readers soon enough. This quickie will take a stab at fixing OS X’s built in firewall. The firewall may often get its settings changed my other programs which need some port configuration that may ultimately down the firewall. If OS X tells you the firewall is unavailable, this fix may be for you.

Open up a Terminal session via Applications > Utilities > Terminal.

sudo ipfw flush
y

After the first line is entered you might be asked for an administrative password. This is normal as the sudo command gives you root privileges but must first authorize you. Make sure to press enter after typing the second line. These two commands will tell OS X to rewrite the firewall rules and flush them, or setting the firewall to pre-defined values. A proper execution of the command lines will result in Flushed all rules.

Now, go back to System Preferences > Sharing > Firewall and click Start. You may now close the terminal.

PaulStamatiou.com runs on the Thesis Theme for WordPress

How smart is your Theme?  How good is your support? Check out ThesisTheme for WordPress.

Thesis is the search engine optimized WordPress theme of choice for serious online publishers. If you’re a blogger who doesn’t understand a lot of PHP, Thesis will give a ton of functionality without having to alter any code. For the advanced, Thesis has incredible customization possibilities via Thesis hooks.

With so many design options, you can use the template over and over and never have it look like the same site. The theme is robust and flexible enough not only to accommodate a site like PaulStamatiou.com, but also to enable the site to run far more efficiently than it ever has before.

{ 7 comments… read them below or add one }

1 Tommy November 26, 2005 at 1:13 pm

Is it really useful to turn on the firewall on OSX? I thought there are no virus or spy for mac?
I am a new user of Macintosh since September. so i m not sure about it.

Reply

2 Paul Stamatiou November 26, 2005 at 1:43 pm

Firewalls won’t protect you viruses but they do close off any ports you are not using which a malicious person or piece of software may try to exploit. It is always a good idea to use a software or hardware firewall regardless of what operating system you are using. However, hardware firewalls are ultimately the best kind of protection you can get.

Reply

3 Johnny K. December 18, 2005 at 1:17 am

I tried this and it doesnt seem to work for me i made sure all my brickhouse folders have been uninstalled and everything. I still down have acess to the firewall. When i run ipfw flush it denys the flush.

Reply

4 georgia July 2, 2007 at 6:10 pm

it is not a good as i thought it would b an it has not solved my problem just yet

Reply

5 Jee.C November 21, 2007 at 7:52 am

thanx, that helped me

firewall was unavailable (though no other firewall software was installed on the machine, as far as I know).

Reply

6 G Watts November 22, 2007 at 11:32 pm

Thanks so much, this fixed my locked firewall problem.

Reply

7 joe February 4, 2008 at 9:26 pm

hey i play americans army and i’ve been havin problems they say ignoring mp5 tools some guys told me it was firewall problems if u have any info that would be great

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: