ipfence home page local-first intrusion prevention for Linux

Manual pages

Reading the status report

sudo ipfence status answers: is it working, what is it watching, what is it blocking, why, and what is it not covering? This page explains every section, using real output. For the machine-readable form see Status JSON.

All times are UTC. The command only reads; it changes nothing.

The header

Plain text

ipfence status at 2026-11-29 02:42:56 UTC (all times UTC)

Daemon       running (pid 1083, version 0.1.0, since 2026-11-29 02:42:18 UTC)
Enforcement  ENABLED
Config       /etc/ipfence/config.toml
Line Values Meaning
Daemon running (...) the background program is watching
running (...), DEGRADED (see below) running, but something needs attention
not running nothing new is being detected. Existing bans may still apply
Enforcement ENABLED ipfence manages bans in the firewall
disabled: observing only, nothing is blocked decisions are recorded only
Config a path settings in use; "(not present; built-in defaults)" if there is no file

"Enforcement ENABLED" with "Daemon not running" is a normal combination after stopping the service: the firewall rules remain.

Firewall

Plain text

Firewall (nftables table inet ipfence)
  ownership: owned
  chain input: hook input, priority -10, policy accept
  sets (entries in the kernel): ban4 1, ban4net 0, ban6 0, ban6net 0, allow4 6, allow6 5
  kernel-live drop counters (reset when the table is rebuilt and at reboot):
    CHAIN  SET      PACKETS  BYTES
    input  ban4     9        516
    input  ban4net  0        0
    input  ban6     0        0
    input  ban6net  0        0

This section is read from the kernel at the moment you run the command. It is not ipfence's memory of what it did.

Ownership

Value Meaning Action
absent no ipfence table (normal while disabled) none
owned the table is ipfence's and exactly right none
drifted ipfence's, but something changed; it will repair it find out what changed it if it recurs
foreign contains something ipfence did not create; ipfence will not touch it fix it
other-install made by an earlier ipfence database fix it
unavailable could not be read run with sudo

Chains

hook input guards services on this machine. A forward chain appears only with docker.mode = "forward". policy accept means: anything not explicitly dropped carries on.

Sets

How many entries the kernel holds right now. ban4/ban6 are single addresses, ban4net/ban6net ranges, allow4/allow6 the never-drop lists. For range sets, the number counts merged, non-overlapping ranges, which can differ from the number of bans you made.

Counters

Packets and bytes actually dropped by each rule since the table was built. The clearest evidence that blocking works. They restart from zero after a reboot or when the table is rebuilt.

Detectors

Plain text

Detectors
  SERVICE  DETECTED  SOURCE  PARSER   PACKET PATH  STATE
  ssh      yes       yes     yes      yes          active
  nginx    yes       yes     unknown  unknown      disabled
  caddy    yes       no      unknown  unknown      disabled
  ssh
    detected:     ssh.service is active; 3 sshd process(es) on the host
    source:       journald through journalctl (20 recent sshd entries seen)
    parser:       OpenSSH password, keyboard-interactive, invalid user and AllowUsers/DenyUsers failures
    packet path:  host service: the ipfence input hook sees its packets
    reader journal:ssh: reading, 64 records, 10 failures matched, 0 unreadable, 0 oversized

Each link is yes, no or unknown, followed by the evidence.

State Meaning
active reading verified events
unverified reading, but no line has parsed yet
waiting the log file does not exist yet
degraded a reader is failing; its error is shown
disabled not reading; "to activate" lines say why
ready (daemon not running) would be activated if the daemon ran

The reader line counts this daemon run only:

Count Meaning
records log entries read (for the journal: all sshd messages, successes included)
failures matched those recognized as a countable failure
unreadable file lines not in the configured format
oversized records too long to process, dropped

While the daemon runs, listening on ... is usually missing from the detail: the service is deliberately not allowed to inspect other programs' sockets. sudo ipfence init shows it.

Services that are not installed show no detail block.

Active bans

Plain text

Active bans (3)
  ADDRESS          ORIGIN  SERVICE  OFFENSE  EXPIRES IN  IN FIREWALL  REASON
  198.51.100.0/24  manual  -        -        6d 23h      yes          manual: abusive network
  198.51.100.200   manual  -        -        never       yes          manual ban
  203.0.113.80     auto    nginx    1        14m 57s     yes          3 Nginx exploit probes within 10m (latest: probe:credential-file)
Column Meaning
ADDRESS one address, or a range with /
ORIGIN auto (detected), manual (you), escalation (the opt-in IPv6 prefix policy)
SERVICE which detector, - for manual
OFFENSE repeat number, which sets the duration
EXPIRES IN time left, or never
IN FIREWALL yes; NO means recorded but not being blocked; no (observed) for dry-run entries
REASON what justified it, with counts. Never user names or raw log text

NO needs attention. The Degraded section and --json (enforce_error) say why.

Would have banned, observed only

The same table, for decisions made while enforcement was off. Nothing in it is blocked.

Probes through a trusted proxy

Appears only when a probe arrived through a proxy you listed. Columns: service, proxy, the visitor the proxy claimed (if the server logs it), count, last seen. Nothing here is blocked by ipfence; block these at the proxy. This list is kept in memory (at most 100 entries) and empties on restart.

Allowlist

Plain text

Allowlist (never banned)
  ADDRESS                    SOURCE     NOTE
  127.0.0.0/8                built-in
  ::1                        built-in
  10.0.2.15                  this-host
  ...
  10.0.2.2                   config
Source From Remove with
built-in always (loopback) cannot be removed
this-host this machine's own addresses, rechecked regularly cannot be removed
config [allow] addresses in the settings file edit the file, restart
command ipfence allow ipfence allow --remove

Local counters

Totals saved in the database since it was created. Unlike the kernel counters, they survive reboots. Every name is explained in Counters. The ones worth watching:

Counter Why look
bans.auto how much it is doing
ignored.private_address, ignored.allowlisted exempt sources that are failing
journal.untrusted possible forgery, or sshd in an unusual place
journal.cursor_lost some events may have been missed
file.unparsed the configured log format may be wrong
refused.capacity the 20,000 ban limit was reached

Recent history

The last 20 ended bans, newest first.

HOW Meaning
expired ran its time
unbanned you removed it
allowlisted an allow entry covered it
replaced superseded (a new manual ban, or enforcement was enabled)

Degraded

Appears only when something is wrong, for example:

Message Meaning
enforcement is on but the firewall table is foreign bans are not applied
enforcement is off but an ipfence table is still loaded; ... old rules still block; disable --yes
firewall: ... the last firewall write or read failed
...: a log reader is failing a detector is not seeing events
...: no line from file:... matched the configured format wrong format setting
hook: N notifications dropped because the program is slow your hook cannot keep up
the active ban limit has been reached at least once new bans were refused

Notes and unsupported

Standing facts, not errors: settings warnings, Docker, VPN interfaces, other firewall tools. Read them once; they describe what is not protected.