Whenever I start Mathematica 8 on my Mac the built-in Mac OS firewall asks if I want to allow JLink to accept incoming connections. Then, during running, I'll get the same question about Mathematica.app. Sometimes the requests occur several times during the day, though not always. It's a minor irritation but it'd be nice to know if there is a way to avoid it while keeping the firewall switched on.

I already have the Mac firewall configured to allow connections permanently for Mathematica.app and JLink.

1 Answer
1

I've had this issue for a long time and the only change that "fixed" it is to block all incoming connections. Go to System Preferences > Personal > Security & Privacy > Firewall Options and select Block all incoming connections as shown (you will have to unlock and enter your administrator password):

A less drastic, but possibly riskier option

The reason this occurs has to do with the signature of the app. Sometimes, re-installing the app will fix the problem. If not, an option would be to sign the app yourself. You can read this blog post for directions on how to sign the app yourself. However, do note that if you sign the app, the OS treats it as a very secure app and might be oblivious to other hitherto unknown (possibly malicious) behaviour from the app.

For the aforementioned reasons, I did not choose to go this route. Blocking all incoming connections might seem drastic, but I have not had any issues so far and I can ssh to my computer perfectly fine.

Thanks. Not sure that will work for me as I have quite a few things in my exceptions list. Will leave this open for a bit in case anyone else has a workaround a bit less drastic!
–
Tim KempJul 17 '12 at 21:33

@TimKemp See my edit... there's a way to override it by signing the app yourself. I didn't choose this route, but doesn't mean that you shouldn't.
–
rm -rf♦Jul 17 '12 at 21:36

I'll investigate your blog link. Thanks for this. It smells like an Apple problem more than a Wolfram one; I have seen the behaviour in some other programs too.
–
Tim KempJul 17 '12 at 21:48

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.