Getting started

You need a supported OS, python3, openssl, Docker Engine with Compose, UDP from your exporters, and BGP to the edge. See Requirements. The installer installs Docker from Docker's official repository if it is missing.

The license is optional at install and can be added later. Email [email protected] for a time-limited demo key, or buy a license on Templass.com. The bundle link is sent by email with the license.

1. Install the controller

Unpack the offline bundle. Check the payload:

sha256sum -c SHA256SUMS

install.sh verifies SHA256SUMS.sig against built-in release keys and prints the prod1 fingerprint. Compare it with this value:

sha256:fc0ce1282a8d75e6f868e8e1d3e88f514871b5ff454fe2d555e5f86352a562f3

Pin it with --expect-fingerprint:

sudo ./install.sh --yes \
  --operator-email [email protected] \
  --operator-password-file /root/op.pass \
  --expect-fingerprint sha256:fc0ce1282a8d75e6f868e8e1d3e88f514871b5ff454fe2d555e5f86352a562f3

Delete the operator password file after install.

Useful flags:

  • --license /path/license.tpl to install a license at setup
  • --tls acme|files|selfsigned
  • --public to bind the dashboard and API beyond localhost
  • --expect-fingerprint sha256:fc0ce1282a8d75e6f868e8e1d3e88f514871b5ff454fe2d555e5f86352a562f3

The installer writes /opt/templass and /opt/templass/.env (mode 600). The config file is /opt/templass/compose/config.yaml. Check with sudo systemctl status templass. Restart with:

sudo systemctl restart templass

Dashboard: http://127.0.0.1:9411. API: http://127.0.0.1:9410. Both stay on localhost. Use an SSH tunnel or --public for remote access.

Flow ports UDP 2055 and 6343 and scrub enrollment TCP 9412 listen on all interfaces. Firewall the flow ports to your router IPs.

2. License

Add a key from the panel System > License, or run sudo templassctl license install FILE. Details: License.

3. TLS and Public URL

For a public dashboard, use --tls acme (needs ports 80/443) or put a reverse proxy in front. On System, set Public URL. Customer invites and some webhooks use that URL.

4. Flow sources

In the operator dashboard, add each exporter under Flow sources. Listeners default to UDP 2055 (NetFlow/IPFIX) and UDP 6343 (sFlow) on all interfaces. Confirm flows arrive with templassctl status (1.0.1 prints flow counters).

5. BGP peer

Edit /opt/templass/compose/config.yaml:

bgp:
  asn: 64500
  router_id: 192.0.2.1
  peers:
    - address: 192.0.2.2
      asn: 64501
      families: [ipv4-unicast, ipv6-unicast, ipv4-flowspec, ipv6-flowspec]

Restart so the speaker picks up ASN, router-id and peers:

sudo systemctl restart templass

The GUI BGP peers page shows session state.

On the edge, import RTBH (community 65535:666, NO_EXPORT) and FlowSpec if you use them.

6. Organizations, prefixes, thresholds, policy

Create an organization, a group, and prefixes in the GUI. Set pps, bps and flow-rate thresholds (global or per vector). A new group's host mode defaults to RTBH only. Set it to both to add FlowSpec. Prefix and threshold changes apply within 5 seconds.

For a first test, use Mitigations to announce and withdraw by hand on a prefix you can afford to blackhole.

7. Scrub node

The scrub node must reach the controller on TCP 9412.

  1. Create an enrollment token on Scrub nodes.
  2. Install templass-scrub from packages/ in the bundle (.deb or .rpm).
  3. 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. The node stores a per-node token after enrollment.
  2. Build the clean-return path (VLAN or GRE) and policy routing.
  3. Leave the group's host mode on RTBH while you confirm enrollment. Set it to scrub when you want diversion.

--bpf-info only loads the program and prints its programs and maps. An empty iface lets the agent enroll and write rules with 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. Details: Scrub node.

8. Invite customers

After Public URL is set, invite from Users by password or one-time link. Preview their panel from the operator UI. They see only their prefixes.