Blocklist

The Blocklist is a list of IPv4 addresses or networks (in CIDR notation) from which the firewall accepts nothing: an address that keeps trying passwords on…

What it is for

The Blocklist is a list of IPv4 addresses or networks (in CIDR notation) from which the firewall accepts nothing: an address that keeps trying passwords on a published service, a network the partner has reported. You write the entries; they do not expire and do not depend on the Inspector.

In the example company there are two entries: 198.51.100.200 (“Repeated SSH scans”) and 198.51.100.128/28 (“Network reported by the partner”).

What it looks like

The Protection → Blocklist tab shows in its bar the title “Blocklist” and, below, the count (“2 addresses blocked”, or “No address blocked”). In the body there is the “Blocked addresses” list with, on the right of its header, the “Add address” button. Each row shows the address, the comment, the label “dropping” (or “Disabled” for an entry that is switched off) and two icon buttons: “Edit address” and “Delete address”. Below the list: “Entries reach the firewall with its next apply.”

The blocklist with the two example entriesThe blocklist with the two example entries
The blocklist with the two example entries

The entry

“Add address” opens the “Block an address” window; the pencil opens the same window, titled “Blocklist entry”, on an existing entry. The fields:

  • Address (required): an IPv4 address (198.51.100.200) or a CIDR network (198.51.100.128/28).
  • Comment: why the address is there. A year from now it will be the only trace.
  • Enabled: on by default. A switched-off entry stays in the list but blocks nothing.

“Save entry” saves the entry and closes the window; “Cancel” closes it without saving. Deleting asks for confirmation: “Stop blocking 198.51.100.200?”.

There are two possible messages: “Not a valid IPv4 address or CIDR” and “This address is already in the blocklist”.

Saving and applying

Each entry is saved on its own, but the blocklist is part of the firewall’s ruleset: after the save the header shows “Unapplied changes”, and the entries start blocking when you press “Apply” and confirm within 60 seconds. The same goes for an entry deleted or switched off: it goes on blocking until the apply.

Where it blocks and what stays reachable

The firewall checks the blocklist in two places:

  • inbound, that is for traffic addressed to the appliance itself;
  • in transit, that is for the traffic the appliance forwards between zones, port publications included.

In both places the blocklist comes before the zones’ rules and the publications: an address in the blocklist reaches no published server, no zone service, no VPN tunnel (neither WireGuard nor IPsec), gets no answer to ping and, if it is an internal address, cannot send anything out through the appliance.

Some things, however, stay reachable on purpose:

  1. Connections already open. The firewall accepts the packets of connections already established before it looks at the blocklist. A new entry stops new attempts, but a connection in progress from the blocked address carries on until it closes. To cut it at once, delete it from Events and diagnostics → Diagnostics, block “Connection tracking”, filtering by that address.
  2. SSH, where it is open. The anti-lockout rules come before the blocklist: SSH goes on answering the blocked address on the lan zone and on the zones where you have switched SSH on in System → Management access.
  3. The console, where it is open. In the same way the console (ports 443, 80 for the redirect and 8000 as a fallback) answers the blocked address on the lan zone and on the zones where you have switched it on. The exception is a zone other than lan that also hosts a reverse proxy: there 443 and 80 are opened by the proxy’s rule, which comes after the blocklist, so the blocked address gets neither the published site nor the console. On the lan, instead, 443 and 80 always stay open ahead of the blocklist: an internal address in the blocklist also reaches a reverse proxy that answers on the lan.
  4. As long as the lan zone has no interfaces (a freshly installed appliance), SSH and the console answer on every interface, blocklisted addresses included.

This is intended: an administrator who blocklists their own address by mistake can still get in where SSH and the console answer, and can remove the entry. The protection against a hostile address knocking on SSH or the console from outside is not the blocklist, but the fact that on the wan zone those services stay off (or protected by the second factor): see System.

Warning A network that is too wide (a /8, a provider’s /16) also blocks those you did not mean to block, update servers, resolvers or the other side of a tunnel included. Before blocking a whole network, check that it does not contain the gateway of an IPsec tunnel, the Endpoint of a WireGuard VPN or an address from which a Let’s Encrypt certificate validation must arrive.

The effects of the blocklist show in Events and diagnostics → Firewall, where the dropped packets carry the blocklist rule, and in System status → Status, where the firewall card counts the “Blocklisted sources”.

Blocklist, CrowdSec and DNS protection

What it blocks Who decides How long it lasts
Blocklist Source IP addresses, inbound and in transit You Until you remove the entry
Intelligence Addresses, names and (with bans) the other end of an address or certificate seen The curated feeds, your feeds and your MISP As long as the source carries them and they are fresh; bans for the duration set
CrowdSec (“Behavioural analysis”) Source IP addresses that triggered a scenario CrowdSec Temporary bans
DNS protection Domain names requested by the clients The lists and categories you choose As long as the list contains the name

For the technician The enabled entries form the set argos_blacklist (type ipv4_addr; flags interval) in the argos_filter table. In input the rule ip saddr @argos_blacklist drop comes after the loopback, ct state established,related accept and the management baseline, and before ACME, DHCP, VPN, IPsec, ping and zones; in forward it comes right after the established accept, before the publications’ accept and the zones. In front of each drop there is a rate-limited log rule with the prefix argos-drop blocklist. Without enabled entries nothing is written.

Sources that cannot come from the WAN side (anti-spoofing)

Above the list is the switch “Drop on the WAN side what cannot come from there”, with its “Save”. On, the firewall drops on the WAN side’s interfaces (the wan zone and every interface with a gateway) the packets whose source cannot be a host of the internet:

  • the internal networks: those of the LAN’s and the other internal zones’ interfaces (the addresses configured in Network and uplinks → Interfaces), of the enabled VPN tunnels and of the static routes that do not leave by the WAN side;
  • the appliance’s own addresses;
  • the networks no host uses as a source: 0.0.0.0/8, 127.0.0.0/8 (loopback), 224.0.0.0/4 (multicast) and 240.0.0.0/4 (reserved).

Whoever pretends from the internet to be one of your PCs, for instance to reach a publication limited to the office’s “Allowed remote sources”, is dropped before anything else.

The private networks as such (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and the CGNAT space (100.64.0.0/10) are never dropped: many appliances have their WAN behind the provider’s router, with a private address, and the router itself has a private address. Nor is a network a route (static or policy) sends out of the WAN side, for instance a supplier’s MPLS network, nor the network the operator’s router gives a DHCP WAN or a gateway’s address: a LAN route that covers them (for instance 192.168.0.0/16 towards a core switch) does not get them dropped. It is not a strict reverse-path check, which would break multi-WAN.

The switch is on for a new installation and off for one upgraded from a release without it: Status suggests switching it on (“The WAN side does not drop the sources that cannot come from there…”) until you save it, on or off. Saving it off is your answer, and the warning does not come back. It takes effect on the next firewall apply, confirmed within 60 seconds; with the switch on, a change of the interfaces’ addresses also makes the firewall “to apply”, and Zones and rules → To apply says so (“Interface addresses”). The dropped lines show in Events and diagnostics → Firewall with the reason spoofed.

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