Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

First of all, I know I can manually configure the firewall through IPFW but I hope that the OS X firewall system has an option for this by default.

The problem I am currently having is that when I'm doing web development with Django I get a 'Do you want the application "python" to accept incoming netowrk connections?' every time I save a file within the project.

Note that I need Django to be available throughout the local network since I usually use multiple computers during development (i.e. IE box to test) so I cannot set it to localhost only.

Is there any way to have OS X remember this "Allow" permanently instead of asking every time I save a file?

share|improve this question
add comment

1 Answer

The dialog is not coming from ipfw but from socketfilterfw, the OS X Application based firewall. That one is not port based, like ipfw but based on processes. If an application/script wants to bind a port the application firewall checks it's ruleset and subsequently asks the user if that should be allowed which is what you already see. If you allow this, the binary in question gets signed and is allowed access in the future without user interaction. If the binary changes, you get asked again.

The only way to prevent getting asked is to turn off the app firewall which I do not recommend. Alternatively you could start signing each change of your python files which is likely to become annoying.

Sidenote: If you need a port based firewall as well you should be using pf (pf.conf(5), pfctl(8)) on Mountain-Lion as ipfw is deprecated.

share|improve this answer
    
The silly thing is that the binary itself (Python) does not get changed, only the files that are being loaded inside of Python. And that's on the same port/address/code with just an mtime change on one of the files. I will try if I can make pf go around the socketfilterfw to see if that helps. The other options are either annoying or insecure :( –  Wolph Dec 13 '12 at 9:49
    
Thank you very much for the help btw, this really helps in the search for a solution :) –  Wolph Dec 13 '12 at 9:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.