Mac firewall guides

Does the macOS firewall block outgoing connections?

No. The macOS Firewall settings control incoming connections only. They have no per-app list of the destinations an app may reach.

Updated

How incoming and outgoing differ

An incoming connection starts elsewhere and reaches a service on your Mac. An outgoing connection starts with a process on your Mac contacting a destination. Apple’s Firewall settings guide explains the incoming settings.

What an outbound firewall adds

An Outbound rule pairs the process identity with a host, domain, IP address or network range, and can also set ports, protocol, direction and lifetime. So you can let an app reach one service and block it from another.

Outbound sees a hostname when the app connected by name. If the filter only gets an address, the rule and the monitor work with that address.

Where pf fits

pf is a packet filter with a rules language for network traffic, which is a different job from keeping a list of decisions about apps. A port or IP block in pf doesn’t identify the signed application you had in mind.

Which control to use

  • Control access to a service on your Mac: review the built-in firewall.
  • Choose where one app may connect: use an outbound app firewall.
  • Administer a network policy: evaluate a packet filter or managed content filter and test it first.

You can leave Apple’s incoming firewall on while you try an outbound tool. If you run more than one third-party content filter, test that combination on its own.

The Outbound steps are written for Outbound 1.5.3 and its command-line help. Download Outbound. Sources for other products and for macOS are linked where they’re used.