Skip to content

Update firewall check to include additional states - #176

Closed
Mr-mixmate wants to merge 1 commit into
momenbasel:mainfrom
Mr-mixmate:patch-1
Closed

Mr-mixmate wants to merge 1 commit into
momenbasel:mainfrom
Mr-mixmate:patch-1

Conversation

@Mr-mixmate

@Mr-mixmate Mr-mixmate commented Sep 18, 2026 •

Copy link
Copy Markdown

Fix: recognize firewall strict mode (State = 2) as enabled "socketfilterfw returns 'Firewall is blocking all non-essential incoming connections. (State = 2)' when the firewall is in strict mode. This didn't match either the enabled or disabled condition, so the Protection tab showed 'Unknown' even though the firewall is active in its most restrictive state." Choisis "Create a new branch and start a pull request"

What does this PR do?

Type of change

  • Bug fix
  • New feature
  • Performance improvement
  • UI/UX enhancement
  • Documentation
  • Other (describe)

Testing

  • Tested on macOS Ventura (13.x)
  • Tested on macOS Sonoma (14.x)
  • Tested on macOS Sequoia (15.x)

Screenshots

Fix: recognize firewall strict mode (State = 2) as enabled
"socketfilterfw returns 'Firewall is blocking all non-essential incoming connections. (State = 2)' when the firewall is in strict mode. This didn't match either the enabled or disabled condition, so the Protection tab showed 'Unknown' even though the firewall is active in its most restrictive state."
Choisis "Create a new branch and start a pull request"
@Mr-mixmate

Copy link
Copy Markdown
Author

"Tested on macOS Sequoia (aka Golden State) — confirmed State = 2 output on real hardware"

@Mr-mixmate Mr-mixmate closed this Sep 18, 2026
@Mr-mixmate Mr-mixmate reopened this Sep 18, 2026
momenbasel added a commit that referenced this pull request Oct 8, 2026
socketfilterfw reports block-all as "Firewall is blocking all non-essential
incoming connections. (State = 2)", which matched neither the enabled nor
the disabled branch, so the Protection tab showed Unknown for the strictest
setting. The format strings in the binary confirm the wording.

Supersedes #176 by @Mr-mixmate, which carried the same condition with broken indentation
and was never built.
@momenbasel

Copy link
Copy Markdown
Owner

The read is correct and I verified it against the binary: socketfilterfw's format strings include Firewall %s. (State = %lu) with is blocking all non-essential incoming connections, so block-all never matched firewall is enabled and the tab fell through to Unknown.

The change here was made in the web editor without a build and drops one space of indentation on the changed line, so I re-cut it as #183 with the same condition plus a one-line note on why State = 2 needs its own match, and named you there. Closing in favour of #183.

@momenbasel momenbasel closed this Oct 8, 2026
momenbasel added a commit that referenced this pull request Oct 8, 2026
…#183)

socketfilterfw reports block-all as "Firewall is blocking all non-essential
incoming connections. (State = 2)", which matched neither the enabled nor
the disabled branch, so the Protection tab showed Unknown for the strictest
setting. The format strings in the binary confirm the wording.

Supersedes #176 by @Mr-mixmate, which carried the same condition with broken indentation
and was never built.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants