The firewall on a Mac is off by default. That worries a lot of people, but it is less serious than it sounds. This article explains what the Mac firewall actually does, when it makes sense to turn it on, what the options mean and what to do if a program stops working afterwards.
Blue Apple repairs MacBooks in Amsterdam. If you feel something is wrong with your Mac, read the section at the end too.
What does the macOS firewall do?
The built-in firewall decides which apps may receive connections from outside. Think of another computer on the network trying to reach your Mac for file sharing or screen sharing. Connections you make yourself, such as opening a website or fetching your mail, are not blocked by the firewall.
At home you usually sit behind a router that already stops connections from the internet. That is why the firewall is off by default on a Mac. On a public Wi-Fi network, such as in a cafรฉ, at university or in a hotel, other people are on the same network. There the firewall is useful.
Turning the firewall on
- Open System Settings and choose Network.
- Click Firewall and turn it on. You need your password or Touch ID.
- Click Options for the per-app settings.
In older versions of macOS the firewall is under Security & Privacy.
The options explained
- Block all incoming connections: the strictest setting. File sharing, screen sharing and AirPlay to your Mac do not work then. Handy on an unknown network.
- Automatically allow built-in software: Apple apps may receive connections.
- Automatically allow downloaded signed software: apps from known developers may too.
- Stealth mode: your Mac does not answer requests that only test whether a computer is there. You are less visible on the network.
- App list: per app you choose allow or block.
An app shows a prompt
With the firewall on, an app may ask whether it may receive incoming connections. Choose Allow for apps you know and need, such as a multiplayer game or a music streaming program. If you do not know the app, choose Deny. You can always change it later under Options.
Something stopped working after turning it on
- AirPlay to your Mac, file sharing or screen sharing does not work: check whether Block all incoming connections is on.
- An app does not work: find it in the list under Options and set it to allow.
- Sharing files with a Windows PC fails: see exchanging files with Windows for the drive side, and check the firewall for the network side.
Outgoing connections
The macOS firewall does nothing with connections that apps make outwards themselves. If you want to see or stop those, you need a separate app. Most people do not need that. Updates and care about what you install matter more.
What else protects your Mac?
- Updates: install macOS updates; they close security holes. See updating your MacBook.
- Gatekeeper: checks apps you download. See apps from unknown developers.
- FileVault: encrypts your drive, so a thief cannot read your files.
- A virus scanner: usually not needed. See virus scanner on a Mac.
What we do at Blue Apple in Amsterdam
If your MacBook behaves strangely, is slow or shows pop-ups, that can be software but also hardware such as a full or worn SSD. We find out what is going on and tell you what is needed before we do anything. More on our page about MacBook repair in Amsterdam.
Frequently asked questions
Does the firewall make my Mac slower?
No, you will not notice it in everyday use.
Should the firewall be on at home?
It does not have to be, but it does no harm. On public networks it is sensible.
Why is the firewall off by default?
Because most routers already stop incoming connections and macOS opens few services by default.