Little Snitch for Linux Help

Writing Your Own Rules

Blocklists work at the domain- host- or IP-level, but rules let you go further. A rule can target a specific process, match particular ports or protocols, and be as broad or as narrow as you need.

Rules view with a mix of allow and deny rules, sorted by application

What a rule can target

A rule combines conditions such as:

Each rule either allows or denies the matching connections. What happens when no rule matches at all is determined by the default action, which is "allow" unless you have changed it in the configuration (see Advanced Configuration).

The Rules view

The Rules view lists all rules. As the list grows, sorting and filtering keep it manageable. Click a rule to edit it, or enable and disable it without deleting it.

Analyzing which rules apply

With more than a handful of rules it is not always obvious why a particular connection is allowed or blocked. The place to answer that question is not the Rules view, but the Connections view:

  1. In the connections list, select the application you want to analyze. You can also drill deeper and select a domain, a host, or an individual connection. The analysis always applies to exactly the properties you have selected.
  2. Look at the inspector on the right. It shows two groups: Matching Rules and Related Rules.

Matching Rules

Inspector with Matching Rules for a selected connection, precedence order visible

Matching Rules are rules that apply to the entire selection. If you selected an application, these are rules matching everything the application does. If you selected a domain, these are rules matching the whole domain, not just one host in it.

The rules are listed in order of increasing precedence. Only the last rule in the list is effective, it overrides all rules listed above it. If you disable the last rule, the next one above it becomes effective, and so on. The first entry in this list is always the default action.

Related Rules

Inspector with Related Rules for a selected application

Related Rules match some, but not all, connections of your selection. For an application, these are rules matching specific connections the application has made recently. For a domain, these are rules matching recent connections to hosts within the domain.

Only rules matching connections recently seen are shown. "Recently" is defined by the time filter. Change the time range to widen or narrow the window.

Working with the analysis


Was this help page useful? Send feedback.
© 2016-2026 by Objective Development Software GmbH