Shieldlist controller — ingestion, parsing, rules, sanctions, API and web interface
  • Go 72.2%
  • JavaScript 23.7%
  • CSS 3.4%
  • Shell 0.4%
  • HTML 0.2%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Robin 240f146633 List every exemption covering a portal token's servers, and the ended ones
GET /v1/portal/exemptions answers every exemption in force that covers one of the token's servers, whoever made it: origin portal (the customer's own, the only revocable ones), owner (on all the servers of the customer's account), operator (the fleet's files and lists made by hand) or declared (a server's own declaration), with revocable, the count of servers covered and, when known, when it was made. With ?history=1 it adds those that ended in the last 90 days: when, expired or revoked, and by you or team. No server, person or note is ever named; the published allow lists are left out. The removals of the tree's exemptions are now kept 90 days (exemption_ends), which the configuration files cannot keep.

Signed-off-by: Robin <git@lrob.net>
2026-12-03 20:26:20 +01:00
assets the Shieldlist icon 2026-08-16 16:33:41 +00:00
cmd/shieldlist-controller Let an owner exempt on all its servers and see its own share everywhere 2026-12-03 15:45:39 +01:00
docs List every exemption covering a portal token's servers, and the ended ones 2026-12-03 20:26:20 +01:00
internal List every exemption covering a portal token's servers, and the ended ones 2026-12-03 20:26:20 +01:00
packaging packaging: the unit may read the machine's addresses (AF_NETLINK) 2026-11-12 23:11:01 +00:00
proto/shieldlist/v1 Count what each list refused, server by server 2026-11-30 14:22:47 +01:00
scripts firewall: stock templates dns-authoritative and dns-resolver 2026-11-07 13:27:59 +00:00
shipped firewall: plesk-server preset opens DNS; plesk preset removed; a new declaration starts as an allow list 2026-11-29 22:05:24 +01:00
.gitignore release: build products outside the repository, the agent's release script (notes, loud failures), the unit in the assets 2026-08-16 01:50:16 +00:00
buf.gen.yaml protocol v1 and the store 2026-08-15 15:19:54 +00:00
buf.yaml protocol v1 and the store 2026-08-15 15:19:54 +00:00
CLAUDE.md console: the chosen ban colour is the ban colour everywhere 2026-09-07 13:55:06 +00:00
CONTRIBUTING.md The development suite is called dev, not beta 2026-08-26 21:01:20 +00:00
go.mod licence: lease keeping, activation and Settings → License 2026-11-12 20:52:26 +00:00
go.sum go.mod: the agent module at the commit that lets a report include the host 2026-10-14 17:02:56 +00:00
LICENSE Add AGPL-3.0-only licensing 2026-08-06 20:13:38 +00:00
Makefile Call leak-check from the PATH for packages and the hygiene test 2026-12-03 14:44:26 +01:00
README.md sources: GitHub webhooks, CloudFront, Microsoft 365, Zscaler, Starlink, Apple, Meta, Dropbox, Netskope, public resolvers; Onyphe's scanners in the blocklists; json-key and aws-service formats 2026-11-02 13:19:30 +00:00
THIRD_PARTY_LICENSES owner reports: the bounces read back, the desks that bounce left alone 2026-09-20 10:18:23 +00:00

shieldlist-controller

The central service for a fleet of Shieldlist agents: it assembles and pushes each machine's configuration, records the sanctions agents decide and redistributes them to the fleet, takes the operator's decisions — lift, exempt, settle a machine, edit a rule — reports the offenders to a reputation database and to the abuse desks of the networks they come from, reads what the desks answer, and shows it all in a console and through an API. Log ingestion and fleet-wide detection come next (SPEC §10).

The product specification is docs/SPEC.md; the configuration reference — the agent's files, the controller's tree, the API and the console — is docs/CONFIG.md. The agent that runs on protected machines lives in shieldlist-agent; the wire protocol it implements is published here, in proto/shieldlist/v1/agent.proto.

Running it

shieldlist-controller -t -config /etc/shieldlist/controller   # validate the tree, every machine's assembly included
shieldlist-controller -config /etc/shieldlist/controller      # serve: agents on :17453, API and console on 127.0.0.1:17454
shieldlist-controller account -name you                        # the first person; api-token -name x for a script
shieldlist-controller token                                    # a join token; then `shield enrol <token>` on the machine

On Debian and its derivatives, from the APT repository (https://repo.lrob.net/apt/shieldlist/ — the key, the suites stable and dev, and the two lines to add are on that page; fingerprint B528 0C88 7016 8A94 40A9 05C4 3BB5 8113 CFAB 6DC5): apt install shieldlist-controller, or apt install ./shieldlist-controller_<version>_<arch>.deb from the release page (one per architecture). The package creates the shieldlist user, puts the free rule library under /usr/share/shieldlist-controller (six packs, given to every machine that enrols without a declaration, in test), writes a starter tree under /etc/shieldlist/controller (local listeners), and enables the service; shieldlist-controller init does the same by hand, never replacing a file. packaging/ holds the unit and the hand-install notes for other systems. shield -controller URL -token T drives the fleet from any machine.

Third-party software

The binaries link a handful of Go modules, each under its own licence: yaml.v3 (MIT/Apache-2.0), modernc.org/sqlite with libc, mathutil and memory (BSD-3), google.golang.org/protobuf (BSD-3), golang.org/x/sys, x/crypto and x/term (BSD-3), github.com/google/uuid (BSD-3), github.com/dustin/go-humanize (MIT), github.com/remyoudompheng/bigfft (BSD-3), github.com/emersion/go-imap (MIT). Their licence texts are reproduced in THIRD_PARTY_LICENSES (regenerated by make third-party from what is actually linked) and shipped in the packages under /usr/share/doc/shieldlist-controller/. Shieldlist itself is free software under the GNU AGPL v3.

Contributing

See CONTRIBUTING.md. Go 1.25; make proto regenerates the protocol (buf, protoc-gen-go); the rule language is imported from the agent's public config package.

License

This project is licensed under the GNU Affero General Public License v3.0 — see the LICENSE file.

SPDX identifier: AGPL-3.0-only

Credits

Shieldlist stands on other people's work, credited here, on the console's Settings → About page, and in the wiki.

  • Map: Natural Earth country outlines (public domain), embedded — no tiles, no third party at run time.
  • Geolocation: with geoip: {source: dbip} the controller fetches the free DB-IP Lite country, ASN and (optionally) city databases monthly — IP Geolocation by DB-IP, CC BY 4.0.
  • Published blocklists (the console's catalogue, fetched only when turned on): malicious-ip by Romain Marcoux, an hourly aggregate of fifteen threat feeds, MIT licence.
  • Published allow lists (sources:, fetched only when turned on): the address ranges their publishers make public — Google (Googlebot, special crawlers), Microsoft (Bingbot), Apple (Applebot), DuckDuckGo (DuckDuckBot, DuckAssistBot), OpenAI (OAI-SearchBot, ChatGPT-User, GPTBot), Anthropic (Claude-User, Claude-SearchBot, ClaudeBot), Perplexity (Perplexity-User, PerplexityBot), Mistral AI (MistralAI-User, MistralAI-Index; and its outbound addresses, for MCP connectors), Google's user-triggered fetchers, PrestaShop (CloudSync), Cloudflare, Fastly, Ahrefs, Automattic (Jetpack), UptimeRobot, Pingdom, Stripe (webhooks), GitHub (webhooks), Amazon (CloudFront), Microsoft (Microsoft 365), Zscaler, Starlink; and by their networks, Apple, Meta, Dropbox, Netskope. Onyphe publishes its scanners' ranges, in the blocklists' catalogue.
  • Abuse reports: the X-ARF export and the mails to the networks' abuse desks follow the XARF specification (v4) by the XARF Project, MIT licence — xarf.org. The abuse desks are found through the free Abusix Abuse Contact DB (one DNS query per network, drawn from the RIRs' records; each mail acknowledges it, as they ask); then, when the operator keeps them locally, the registries' own databases — the RIPE Database (data of the RIPE NCC, under the RIPE Database Terms and Conditions) and the AFRINIC database (data of AFRINIC, under its Database Terms and Conditions), fetched as their published dumps, personal data removed by the registries — and, failing that, the registries' own RDAP service via rdap.org. The delivery failures are read over IMAP with go-imap by Simon Ser (MIT).
  • Rules: parts of the rule packs are translated from the CrowdSec hub (MIT) and the bad-bots list is built from Mitchell Krogza's nginx-ultimate-bad-bot-blocker — both credited in the rules repository too.
  • Software: the Go modules listed under Third-party software.