Exemptions

An exemption takes a source — an IPv4 address or network of your own network — out of DNS protection, out of inspection, out of the decoys or out of more…

What it is for

An exemption takes a source — an IPv4 address or network of your own network — out of DNS protection, out of inspection, out of the decoys or out of more than one of them. It is useful when a host has a concrete reason to be left out: a NAS that copies gigabytes to the cloud at night and keeps Suricata busy for nothing (or gets false positives on large transfers), the PC of someone who must use their own DNS or the browser’s DNS, the IT’s inventory tool that explores the network and would touch the decoys. The rest of the network stays protected as before.

An exemption opens nothing and makes nobody trusted: the zones’ rules and policies still decide first, and the blocklist and CrowdSec (SSH, console, community lists) still apply.

What it looks like

The Protection → Exemptions tab shows the “Exempted sources” list and, on the right of its header, the “Add source” button. Each row carries the address, the description below it and the badges “DNS”, “inspection” and/or “decoys”, or “Disabled” if the entry is switched off; the pencil (“Edit source”) opens the entry, the bin (“Delete source”) removes it after the question “Stop exempting {address}?”. Below the list the page reminds you: “DNS protection follows the save at once; forced DNS and inspection follow the firewall’s next apply, which resets the open connections of the sources it changes.”

Protection → Exemptions: the NAS exempted from inspection, the production manager's PC from DNS protectionProtection → Exemptions: the NAS exempted from inspection, the production manager's PC from DNS protection
Protection → Exemptions: the NAS exempted from inspection, the production manager's PC from DNS protection

The entry

“Add source” opens the “Exempt a source” window (for an existing entry, “Exemption”):

  • “Address” (required) — an IPv4 address or network: 192.168.10.20, or 192.168.30.0/24 written with the network’s address.
  • “Description” — why the source is exempted.
  • “DNS protection” — the source is not redirected to the appliance’s resolver and may use DNS over TLS; when it asks the appliance anyway, no blocklist applies. Application control’s DNS blocks of its zone stay.
  • “Inspection” — its connections, in both directions, are never handed to intrusion prevention nor to traffic analysis.
  • “Decoys” — its contacts with a decoy stay in Protection → Decoys, but they set off no alarm, send no mail and do not put it in quarantine. For the IT’s inventory and monitoring tools.
  • “Enabled”.

A new entry has “DNS protection” and “Inspection” on and “Decoys” off: leave on only the ones you need. “Save exemption” records it, with “Exemption saved”.

The “Exempt a source” windowThe “Exempt a source” window
The “Exempt a source” window

What it really exempts

DNS protection. The source is not redirected by forced DNS, so it can use an external resolver, and port 853 (DNS over TLS or QUIC) is not refused to it. If it uses the appliance’s resolver anyway, Unbound answers it without blocklists: local DNS records, forwarded domains and Atlas’s domain work all the same. Application control’s DNS blocks of its zone (Applications → Application control) remain, and so does the blocking of the application vendors’ addresses.

Inspection. The connections the source opens and those addressed to it (a publication towards one of its servers too) are not handed to Suricata, and Zeek does not capture it. So, for it: no detections, no intrusion prevention, no application recognition or control done by Suricata (the block by server name: the DNS and address blocks remain), no “TLS clients” and no network visibility; CrowdSec’s bans that arise from Suricata’s alerts no longer concern it.

The decoys. The source’s contacts with a decoy stay visible in the “Contacts” card, with the “excluded” badge, but they are never an alarm: no mail, no quarantine. This part applies from the save.

It does not exempt from the blocklist, CrowdSec, or the zones’ rules and policies.

Saving and applying

The part that concerns the DNS lists applies from the save. Forced DNS and inspection are firewall rules: after the save the header says “Unapplied changes”, and they apply from “Apply” and “Confirm”. On the apply (and on any rollback) the open connections of the changed sources are reset, so they start again with the new rules: a connection in progress may drop and reopen. The “Effect of saving” panel says so: “Updates the service when saved. Changes to zones or firewall enforcement may also require Apply in the header.”

Limits

  • IPv4 only: the same machine’s IPv6 traffic stays inspected, and the refusal of 853 over IPv6 stays.
  • The DNS part applies only while DNS protection is active; forced DNS and inspection only if they are active for the source’s zone.
  • At most 64 entries; no network wider than a /8.

Where it shows

Status has no dedicated entry. In Events and diagnostics → DNS protection a source exempted from DNS has no blocks; in Events and diagnostics → Detections, Events and diagnostics → TLS clients, Applications and in the network visibility a source exempted from inspection no longer appears. Events and diagnostics → Firewall does not change: the connections let through stay logged as before.

Error messages

Message What it means
“Not a valid IPv4 address or network (the loopback, multicast and 0.0.0.0/8 are no sources)” The address is not an IPv4 address or network of a source.
“Write the network’s own address (192.168.30.0/24, not 192.168.30.5/24)” A network must be written with its network address.
“Too wide: a /8 at most” A wider network would switch protection off instead of exempting a source.
“This source is already exempted” The same source is already there (a host and its /32 are the same source).
“Switch on DNS protection, inspection, the decoys or more than one” An entry with every switch off exempts nothing.
“At most 64 exemptions” The list is full.

For the technician The sources exempted from inspection form the set dpi_exempt of the argos_filter table: where the ruleset would hand a connection to Suricata, it jumps to the dpi_handoff chain, which accepts ip saddr @dpi_exempt and ip daddr @dpi_exempt (also the address after a DNAT) without queueing it; only the rest is marked and queued as before. Zeek gets a restrict_filters that leaves them out of the capture. The sources exempted from DNS form the set dns_exempt (in filter and nat): the forced DNS redirect skips them and the refusal of 853 becomes an IPv4 rule that leaves them out, plus an IPv6 twin. In Unbound they have a view of their own, without the lists. Without exemptions nothing is written: the ruleset and Unbound’s configuration stay identical to before.

Example

John Smith Ltd exempts two LAN hosts:

“Address” “Description” “DNS protection” “Inspection” Why
192.168.10.20 NAS (nightly backups) off on The nightly backups to the cloud do not go through Suricata: less load and no false positives on large transfers; the DNS blocks go on protecting the NAS.
192.168.10.50 Production manager’s PC on off It can use its own DNS or the browser’s, and no lists when it asks the appliance; its connections stay inspected.

Save each entry, then “Apply” in the header and “Confirm”: the open connections of the two hosts are reset and start again with the new rules.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer