cybersecurity Request an audit

Threat feed / Open-source, Linux, BSD and host firewalls / Script or API

Block attackers on nftables with the ACIDRIPP feed

A small scheduled script or an API call keeps the list up to date. The feature is called Named set with flags interval, loaded with nft -f.

The address to use

https://cybersecurity.acidripp.com/feed/block/strict.plain

This is the strict list: addresses that got into our decoys, ran commands there or brought malware in the last 14 days. It is small and safe to block. For more coverage, replace strict in the address with standard (also addresses that tried passwords) or wide (also every scanner). What each list holds, and every format, is on the threat feed page.

Before you start

Productnftables
What it acceptsip, cidr, ipv6
File formatPlain list, one address or CIDR per line; the script wraps it in "add element inet feedblock v4 { ... }". We can also serve the finished nft file. The set needs flags interval for CIDR entries; auto-merge avoids "conflicting intervals" errors when entries overlap.
Limitsnot documented (the optional size keyword sets a maximum; none by default)
Needsnftables (nft). Flushing sets and re-importing an existing set need a kernel newer than 3.16 per the nftables wiki.

Add the feed

# /etc/nftables.d/feedblock.nft - load once at boot (include it from /etc/nftables.conf). Composed by us from nft(8) syntax.
table inet feedblock
delete table inet feedblock
table inet feedblock {
  set v4 { type ipv4_addr; flags interval; auto-merge; }
  set v6 { type ipv6_addr; flags interval; auto-merge; }
  chain input   { type filter hook input   priority -10; policy accept; ip saddr @v4 drop; ip6 saddr @v6 drop; }
  chain forward { type filter hook forward priority -10; policy accept; ip saddr @v4 drop; ip6 saddr @v6 drop; }
}

#!/bin/sh
# /usr/local/sbin/feedblock-nft.sh - update script (composed by us). flush + add run in ONE nft -f transaction.
set -eu
URL="https://cybersecurity.acidripp.com/feed/block/strict.plain"; T=$(mktemp); trap 'rm -f "$T" "$T.v4" "$T.nft"' EXIT
curl -fsS --max-time 60 -o "$T" "$URL"
grep -E '^[0-9]{1,3}(\.[0-9]{1,3}){3}(/[0-9]{1,2})?$' "$T" | sort -u > "$T.v4" || true
[ -s "$T.v4" ] || { echo "feed empty or unreachable, keeping current set" >&2; exit 1; }
{
  echo "flush set inet feedblock v4"
  echo "add element inet feedblock v4 {"
  sed 's/$/,/' "$T.v4"
  echo "}"
} > "$T.nft"
nft -f "$T.nft"

# systemd timer alternative to cron:
# /etc/systemd/system/feedblock.service:  [Service] Type=oneshot ExecStart=/usr/local/sbin/feedblock-nft.sh
# /etc/systemd/system/feedblock.timer:    [Timer] OnBootSec=1min OnUnitActiveSec=5min   [Install] WantedBy=timers.target
# systemctl enable --now feedblock.timer
# or cron: */5 * * * * root /usr/local/sbin/feedblock-nft.sh

Ready-made file

We also serve this list already in the right shape for this product:

https://cybersecurity.acidripp.com/feed/block/strict.nft

An nftables file that creates the table inet acidripp with the sets strict4 and strict6 and replaces their content in one transaction: curl -fsS https://cybersecurity.acidripp.com/feed/block/strict.nft | nft -f -. Add a chain of your own that drops ip saddr @strict4 and ip6 saddr @strict6.

Block with it

  1. The static file creates its own table with input and forward chains at priority -10 that drop packets whose source is in @v4 / @v6.
  2. To block outbound add a chain on hook output with: ip daddr @v4 drop.
  3. Or reference the set from your own ruleset in the same table: ip saddr @v4 drop.

Good to know

  • From nft(8) and the nftables wiki: set syntax, flags interval, auto-merge, flush set, add element, nft -f, and the statement that the kernel handles all commands in a file as one transaction. The files and script are ours.
  • Because flush and add element are in one file, the set is replaced atomically; if the file has a syntax error nothing changes.
  • An empty element list is a syntax error, hence the empty-feed guard.
  • Loading the static file again deletes and recreates the table (empty sets) until the update script runs; load it only at boot and start the timer right after.
  • IPv6: add a second block in the script for set v6 with an IPv6 pattern.

What we could not confirm

  • Not executed on a Linux host in this research.
  • Older nftables releases had bugs with flush set plus add element on auto-merge interval sets in one transaction; we did not confirm the first fixed version.
  • The "table X / delete table X" idempotent idiom and the trailing comma inside { } are common practice (a trailing comma appears in a wiki example); newer releases also offer "destroy table".

Sources

Most steps were checked against the vendor's documentation; the points above were not on 30 November 2026. They were not tested on a device: menus move between versions, so check against your own. Found a mistake? Write to audit@acidripp.com. The feed comes with no guarantee; test before you block production traffic.