Scrub node

On-demand diversion: the controller announces the attacked /32 or /128 with this node as next-hop. XDP applies vector rules. Clean traffic returns over a VLAN or GRE.

The scrub node must reach the controller on TCP 9412 (enrollment and mTLS). That port listens on all interfaces.

Install

The unpacked bundle has .deb and .rpm packages in packages/. Install templass-scrub from there:

sudo dpkg -i packages/templass-scrub_*.deb

On RHEL:

sudo rpm -i packages/templass-scrub-*.rpm

Enroll

  1. On the operator dashboard, open Scrub nodes and create a one-time enrollment token.
  2. In /etc/templass/scrub.yaml, set enroll_token and ca_fingerprint. The CA file is /opt/templass/ca/ca.crt. ca_fingerprint is the SHA-256 of that certificate in DER form, lowercase hex with no colons. A mismatch refuses enrollment:
openssl x509 -in /opt/templass/ca/ca.crt -outform DER | sha256sum
  1. Start templass-scrub. After enrollment the node keeps a per-node token.
  2. Set up the clean-return VLAN or GRE, IP forwarding, and policy routing so diverted prefixes do not loop.

Leave the group's host mode on RTBH until you want diversion.

Trial

Three separate options:

  • --bpf-info only loads the program and prints its programs and maps. It does not attach anything or run the kernel check:
sudo templass-scrub --bpf-info
  • An empty iface in /etc/templass/scrub.yaml lets the agent enroll and write rules but leaves XDP unattached.
  • Generic XDP is only the automatic fallback when iface is set and native XDP is unavailable.

Never divert customer traffic to a node with an empty iface.

Operations

Drain or disable a node from the GUI. If the node stops reporting for about 15 seconds, the controller uses the group's fallback chain and logs it. After the node is healthy for the stability window (default 60 seconds, set on System), traffic returns to scrubbing, make-before-break.

The node reports drop and pass rates.

Host and driver list: Requirements.