Open-source Mac Firewall Back-end Documentation
Meet our main and the most important document for Mac Firewall - Back-end Description ->
In this document, we're covering one of the most interesting questions: dependencies, libraries description, IPC and workarounds. Enjoy the descriptions schemes and code samples.
Read, learn develop and don't forget to submit your own pull-requests, if any. We welcome all fo our fellow developers to participate in the evolution of our products.
A firewall can protect your Mac from unwanted contact initiated by other computers when you’re connected to the internet or a network. However, your Mac can still allow access through the firewall for some services and apps. For example:
If you turn on a sharing service, such as file sharing, macOS opens a specific port for the service to communicate through.
An app or service on another system can request and be given access through the firewall, or it might have a trusted certificate and therefore be allowed access.
For greater control, you can select apps and services, and specify whether they can have access through the firewall.
On your Mac, choose Apple menu > System Preferences, click Security & Privacy , then click Firewall.
If the lock at the bottom left is locked , click it to unlock the preference pane.
Click Turn On Firewall.
To specify additional security settings, click Firewall Options and do any of the following:
Allow only specified apps and services to connect: Click the Add button , then select the app or service in the dialog that appears.
Allow only essential apps and services to connect: Select the “Block all incoming connections” checkbox.
Automatically allow built-in software to receive incoming connections: Select the “Automatically allow built-in software to receive incoming connections” checkbox.
In your opinion, is turning on the firewall inconvenient or beneficial? Happy wheels