Sample Header Ad - 728x90

Disable Firewall Notifications

2 votes
2 answers
326 views
I am developing some software as part of a research project, and am running into an annoying issue with the Mac firewall. Our system architecture involves running multiple concurrent processes which open network ports, so when I start an execution, I get a _ton_ of firewall notifications: enter image description here Whether I click Allow or Deny, the notification comes back every time. I've also tried adding the program to the firewall settings, but the notifications still appear. Enabling stealth mode, or even disabling the firewall, likewise does nothing. enter image description here This [similar question](https://apple.stackexchange.com/questions/3271/how-to-get-rid-of-firewall-accept-incoming-connections-dialog) asks about fixing this issue for a single program, and there's some discussion about code signing. But this won't work for me: I'm just compiling new versions of my code; I need to prevent these dialogs from appearing _during testing_, not production. So marking a single executable as "safe" (if even possible) would only work until the next compilation. A few more data points: - This happens no matter where I run the program from — terminal or VS code terminal - This used to happen occasionally, but now happens nearly all the time, after I moved my project from my Documents folder (which I realized was being backed up to iCloud) to a separate local folder. Possibly something with file-provenance trust? This would be strange, however. My new directory is just ~/Local Documents - While some variants of our program _do_ use incoming network access, I'm currently just testing on a single machine (with multiple processes acting as multiple hosts, using the mpi framework). Ideally, I'd like to mark executables in a certain folder as being exempt from firewall rules, but at this point, I'm happy to even just turn off the warnings system-wide. [This answer](https://apple.stackexchange.com/questions/74517/how-can-i-exclude-certain-ports-from-the-firewall-notifications) seems to suggest I may be out of luck.
Asked by baum (201 rep)
Feb 8, 2024, 11:26 PM
Last activity: Jul 9, 2025, 03:03 PM