BLACKLISTCTL(8)

๐Ÿ“ฆ
version 15.1 ยท 2 versions
, in freebsd 15.1

okay bestie, welcome to BLACKLISTCTL(8) from the System Managerโ€™s Manual โ€” this is the manual page, but make it make sense ๐Ÿ’…


๐Ÿ’– NAME ๐Ÿ’–

blacklistctl โ€” display and change the state of the blacklistd database. Thatโ€™s the whole vibe, and sheโ€™s serving it.


๐ŸŒธ SYNOPSIS ๐ŸŒธ

blacklistctl dump [-abdnrw] [-D dbname]

โœจ DESCRIPTION โœจ

blacklistctl is a program used to display and change the state of the blacklistd(8) database. The following sub-commands are supported โ€” and yes, thereโ€™s literally one listed here, so letโ€™s get into it:

๐Ÿ—‚๏ธ dump

The following options are available for the dump sub-command:

  • -a โ€” show all database entries; by default it shows only the active ones. Inactive entries will be shown with a last-access (or, with -r, the remaining) time of โ€˜neverโ€™.
  • -b โ€” show only the blocked entries.
  • -D dbname โ€” specify the location of the blacklistd database file to use. The default is /var/db/blocklistd.db.
  • -d โ€” increase debugging level.
  • -n โ€” donโ€™t display a header.
  • -r โ€” show the remaining blocked time instead of the last activity time.
  • -w โ€” normally the width of addresses is good for IPv4; the -w flag makes the display wide enough for IPv6 addresses.

๐Ÿ“Š the output (what youโ€™re actually looking at)

The output of the dump sub-command consists of a header (unless -n was given) and one line for each record in the database, where each line has the following columns:

  • โ€˜address/ma:portโ€™ โ€” the remote address, mask, and local port number of the client connection associated with the database entry.
  • โ€˜idโ€™ โ€” column will show the identifier for the packet filter rule associated with the database entry, though this may only be the word โ€˜OKโ€™ for packet filters which do not create a unique identifier for each rule.
  • โ€˜nfailโ€™ โ€” the number of failures reported for the client on the noted port, as well as the number of failures allowed before blocking (or, with -a, an asterisk โŸจ*โŸฉ).
  • โ€˜last accessโ€™ | โ€˜remaining timeโ€™ โ€” the last time the client was reported as attempting access, or, with -r, the time remaining before the rule blocking the client will be removed.

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€


๐Ÿซถ NOTES ๐Ÿซถ

bestie, heads up: the blacklistctl program has been renamed to blocklistctl(8).

Sometimes the reported number of failed attempts can exceed the number of attempts that blacklistd(8) is configured to block. This can happen either because the rule has been removed manually, or because there were more attempts in flight while the rule block was being added. This condition is normal; in that case blacklistd(8) will first attempt to remove the existing rule, and then it will re-add it to make sure that there is only one rule active.


๐Ÿ•ฐ๏ธ HISTORY ๐Ÿ•ฐ๏ธ

blacklistctl first appeared in NetBSD 7. FreeBSD support for blacklistctl was implemented in FreeBSD 11.


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Christos Zoulas


This lilโ€™ page is from Debian, dated January 27, 2025 โ€” mwah ๐Ÿ’‹โœจ

๐Ÿ“ฆ where this page comes from
  • freebsd 15.1: base 15.1
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms