Shieldlist

Get started

Shieldlist is two programs. The agent runs on every server you protect; it reads the logs, decides and bans on its own. The controller runs on one machine of yours and gives the fleet a single Web UI, a single place for rules and exemptions, shared bans and reporting. Start with the agent; the controller comes when you have more than one machine — or when you want rules delivered automatically.

1. Install the agent

On Debian and its derivatives, from the APT repository:

curl -fsSL https://repo.lrob.net/apt/shieldlist/shieldlist.gpg -o /usr/share/keyrings/shieldlist.gpg
echo "deb [signed-by=/usr/share/keyrings/shieldlist.gpg] https://repo.lrob.net/apt/shieldlist stable main" > /etc/apt/sources.list.d/shieldlist.list
apt update && apt install shieldlist-agent

stable carries the releases. There is also a dev suite with our development builds: ahead of the releases, and expected to break.

The package installs the agent, the shield command, the free rule library and a systemd unit, writes an agent.yaml naming the logs this machine keeps, and starts in detect-only: every rule records what it would have done, the firewall is not touched. Look at shield status, shield bans and shield why <address> for a day, then arm it: state: on in /etc/shieldlist/agent.yaml and a restart.

Other distributions and the build from source are covered in the agent's Getting Started.

2. Give it rules

The free rules are already there: the package puts them under /usr/share/shieldlist-agent, where an upgrade replaces them, and a rule is a short YAML file that says what it blocks and what it needs. The library shows them; a rule of your own, or a copy of ours you changed, goes under /etc/shieldlist/ and wins by name. Then validate, and ask what the rules would have done to the logs you already have:

shieldlist-agent -t              # reports every problem at once
shieldlist-agent -dry-run 24h    # the last day: every crossing, with the lines that caused it

3. Enrol the machine to a controller

This is the step that makes rules arrive on their own. An enrolled agent stays the same program — it still decides locally — but its configuration comes from the controller, and the controller fetches the packs your account allows, free and premium, and pushes them and their updates to every machine that should have them. Without enrolment, rules only reach a machine by hand.

Install the controller on one machine (same repository, apt install shieldlist-controller), open its Web UI, mint a join token, and on each server, one command:

shield enrol -controller https://shield.example.net:17453 <join-token>

The machine runs the controller's packs from then on, in detect-only until you arm it from the Web UI.

The full procedure is in the controller's Getting Started and the Enrolment page.

Where to read more