Mac firewall guides
An outbound firewall workflow for developers
Package managers, test runners and dev servers can share one node or python3 binary. A rule on that exact file covers every program that runs as that file. Scope the rule by host when you want the registry, not every other destination that binary can open.
Updated
Step by step
- Watch one command. Run the install, test or server you care about. In the Network Monitor, search app: and the process name. Read the host and port before you write a rule.
- Name the executable you saw. Outbound names a Developer ID or App Store app by its team and signing ID, and Apple’s own tools by their Apple signing ID. An ad hoc signed or unsigned build gets a path rule. A Homebrew Cellar path covers every version of that formula. An allow you save from an alert or the monitor applies only to the build you approved: In Ask mode, Outbound asks again about a different build at that path, and in Strict mode it blocks that build. A coding agent still shows under its own name, whether it runs from a versioned folder or a bundled Node. A path rule for node does not follow that naming.
- Allow the host that job needs. Point the rule at the registry or git host from the monitor. A domain rule also covers subdomains, so it is wider than one hostname. Use a temporary lifetime until the command succeeds.
- Separate localhost and SSH. A local-network scope is not an allow for the registry. An ssh or git connection gets its own rule for the host the monitor showed. Do not reuse the node rule for both.
- Keep a copy with outboundctl. Export before you import. The outboundctl guide shows the add command; its path and host are examples, so replace both with the binary and host you observed.

Why a rule on node or python3 is broad
Rules match a Developer ID or App Store app by team and signing ID, Apple’s own tools by their Apple signing ID, and an ad hoc signed or unsigned build by its file path. For Homebrew and CoreSimulator, a rule saved from a versioned path keeps matching after an update. Other wildcard paths are not supported, and any other updated binary can need its path or signing identity checked again. A path rule for one node or python3 file applies to every program that runs as that file: a package install, a test runner, a dev server and a script. It does not apply to another version’s path, except in a Homebrew Cellar or a CoreSimulator runtime, where the version folder is left open. The FAQ says Claude Code, Codex and the other listed agents show under their own names even from a versioned folder or a bundled Node, so a rule for the agent is not a rule for a shared node binary.
Package managers
npm’s registry documentation says npm uses the public registry at https://registry.npmjs.org by default. Bun’s install documentation says BUN_CONFIG_REGISTRY sets an npm registry and that the default is https://registry.npmjs.org. pnpm’s npmrc page documents registry settings and uses registry.npmjs.org in its examples, including an auth token. A project can point at another registry, so read that project’s setting. Python’s installing-packages tutorial describes installing from PyPI. That page does not give one hostname for every download. Homebrew’s documentation home covers formulae and bottles; watch one brew install in the monitor and scope the hosts that appear. We didn’t run an install for this page.
Local servers
A rule can name the local network, separately from a host, domain, address or range. Allowing the local network does not allow registry.npmjs.org. A dev server on the Mac can still open outbound connections, and those show under the process that opened them. Allow or block those hosts on their own.
SSH and CI tokens
Scope an allow for ssh or git to the host and port in the monitor. Outbound records the destination and how many bytes were sent and received. It does not record the payload, so a CI token on that connection is not something the monitor can show you. pnpm’s npmrc page says pnpm does not expand ${...} placeholders in a project .npmrc for registry and credential settings. It ignores a credential setting that uses one and prints a warning. It stops the command when a registry URL uses one. The page gives the reason: the project .npmrc comes with the repository, and a malicious repository could otherwise send your CI tokens to a registry it controls. Placeholders in your own ~/.npmrc still expand. Other tools may not have that guard. A wide allow on the node binary lets that process reach whatever host the script names. Prefer the registry host and the git host.
Write the rule from Terminal
outboundctl asks Outbound for rule changes. With the default setting (Settings › Security › Command Line › outboundctl changes: Ask every time), rules add files a request that you approve in Outbound. In an interactive Terminal the command waits for your decision. With --no-wait, or when it isn’t run from a terminal, it exits 75 while the request is pending. It exits 2 if you decline, and 77 when outboundctl changes are set to Off. Allows, and anything else that loosens protection, always ask. With Allow tightening, a new block applies without asking. Run with sudo, outboundctl applies a change without asking, whatever this setting says. The guide’s add example is outboundctl rules add --action deny --remote example.com --path /usr/bin/curl. Use the exact path of the binary you mean, and the host you saw. Import replaces user rules. Export first. For a temporary rule, add --for 1h. Commands were checked against the development CLI when that guide was written; the installed outboundctl --help is the reference for your build.
The Outbound steps are written for Outbound 1.5.5 and its command-line help. Download Outbound. Sources for other products and for macOS are linked where they’re used.

