Firewall settings not saving

When I try to save custom settings on Firewall to block the connection to some apps, settings are not saved, or saved for some minutes, and then automatically all permissions are enabled.

This is a very important security problem, how did you solve? Tks


MacBook Pro 16″, macOS 13.0

Posted on Nov 9, 2022 9:04 AM

Reply
Question marked as Best reply

Posted on Jan 24, 2023 5:10 PM

I have same issue with a brand new Mac Studio before installing one app. This is 100% an Apple IOS bug/glitch.


It’s pretty pathetic this is still an issue. I’m guessing way less staff, way less of a priority, no one cares, etc.

56 replies

Jan 24, 2023 4:28 PM in response to Randall_2023

Thanks. I have been running LittleSnitch for many years without any problems. I will ask the developer but I doubt very much that LS has anything to do with the macOS firewall.


BTW, I have turned on "Require an administrator password to access system-wide settings". Changing the Firewall settings should cause a popup requiring admin credentials – but, instead I get no popup and the settings do not stick. I will experiment with turning off the "Require ...." setting.


UPDATE: Nope, turning off "Require an admin ..." made no difference. I also tried turning off the Firewall (admin was required); quitting System Settings; re-opening System Settings; turning on Firewall (admin required). Found that "Block all incoming connections was off. But, still, no changes to the Firewall's settings stick and admin credentials are not requested. So, for example, I cannot Block all incoming connections.

Jan 28, 2023 9:07 PM in response to Garry Brooke

UPDATE: Using socketfilterfw, changes to Firewall seems to stick. However, I am still getting the "Do you want the application "mediasharingd" to accept incoming network connections?" popup.


People have been reporting the mediasharingd popup for years. Why can't Apple fix it or release instructions on how to address it ? I spent 30 minutes in a support chat a couple of weeks ago and they suggested blocking incoming connections to mediasharingd. Later, I found that settings changed with the UI do not stick. Now I find that settings changed with socketfilterfw do stick but, don't stop the popup.


BTW, mediasharingd is located here:


/System/Library/PrivateFrameworks/AMPSharing.framework/Versions/A/Support/mediasharingd

Feb 1, 2023 12:01 AM in response to medialp

I was on Montery just last week, and i often used to modify firewall settings and it worked perfectly.


Updated to Ventura over weekend now it wont accept any changes at all. I cant believe a bug like this even gets past Beta testing it's un-belivable.


Please fix this Apple, i wish to block all incoming connections on my mac, and i consider this a security risk. Why is it not fixed when MacOS was released last October.


Ive logged this with the feedback app, surely im not the only one

Feb 1, 2023 12:45 AM in response to Community User

+1 on Apple not fixing bugs and even when they do they never admit a bug exists and that they have fixed it. There was an admittedly obscure bug in Pages which came and went without a single statement by Apple.


Anyway, I can confirm that using "socketfilterfw" works. Now that I've had a few cold boot cycles, it seems that it also solves the mediasharingd pop-up issue. I haven't had any for a couple of days.


However, it only worked for me when I used an administrator account. None of my standard user accounts can use sudo.

Feb 20, 2023 8:08 AM in response to medialp

I think I've found a reasonable work around... the problem is that Administrative privileges are needed to change firewall settings (hence needing "sudo" when using the command line options). For some reason the MacOS Systems Settings app does not request admin privileges when making individual changes to the firewall settings - only when turning the firewall off or on.


So the work around is, open System Settings app, after making changes to the individual firewall settings, toggle the entire firewall off and back on. This will prompt you for admin creds... after which the changes you made within the firewall settings will stick.

Mar 4, 2023 2:12 PM in response to medialp

I called apple support but they didn't help for this problem. They advised re-install macOS to me :))

I re-installed macOS to make they feel good. there was previous version of macOS on Recovery steps. after installation finish, I checked this problem and I saw there was no problem. Then I upgraded macOS to ventura on system settings>update menu, after upgrading this problem started again. I tried primitive ways to prevent this primitive issue.

Finally I realized Garry's way and came to here for answer but he wrote already. cool

Mar 9, 2023 6:09 PM in response to medialp

anyone who cannot do a magic trick with terminal (socketfilterfw) like me?


mac mini 2018 with Ventura 13.2.1 updated has the same problem

I'm trying `socketfilterfw --unblockapp`(same for blockapp), neither of w/ sudo nor w/o sudo toggle block.


With sudo it shows `The file path you specified does not exist` error, no changes on `--listapps`.

Without sudo, it seems working like `Incoming connection to the application is permitted` but no changes on `--listapps`.


No chance of typo for the path because I copied what is on `--listapps` result.

No changes though I tried `sudo /usr/libexec/ApplicationFirewall/Firewall` to kill and revive socketfilter.


Anybody?

Jul 4, 2023 10:11 PM in response to medialp

I thought this was fixed but in macOS 13.4.1 it's still an issue. This is the process I have to use to make changes to the Firewall settings:


- Open System Settings.

- Choose Network => Firewall.

- Click on “Options”.

- In the following pane, choose desired changes. NOTE: there is no request to enter admin credentials.

- Click on “OK”.


Nothing happens. The pane stays open. Only way to close the pane is to click “Cancel”. Then there is a dialog for providing admin credentials.


- Click on “Options”.


NO CHANGES have been saved.


- Make desired change again.

- Click on “OK”.

- Pane closes !

- Click on “Options” to check whether changes saved.


Today, on the first occasion the changes were not saved. On the second occasion, there were saved.


I've used Feedback Assistant to advise Apple it's still an issue.

Sep 20, 2023 9:52 AM in response to medialp

Same issue.


Discovered that clicking "cancel" closes the options window as you'd expect, but brings up an authorisation pane - gave it my admin account details, and then was able to save my Firewall preferences as normal. Have noticed some similar glitches elsewhere in Ventura's settings regarding the order in which authorisation requests appear. Otherwise the only way I could close the settings pane was by using Force Quit, and of course nothing saved.


Ridiculous that this is the case, but figured I'd reply here in case others are looking for a solution.

Firewall settings not saving

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