📡
sknet · skstacks service

sknet

See the traffic between your networks.

sknet is an skstacks role that turns flow records from every network hop into one searchable history and one live view. Akvorado keeps the estate-wide record, ntopng Community shows what is happening right now, and small softflowd exporters on each gateway feed both. Web access is gated by SSO and a mesh or LAN allowlist, and isolated sites get exactly one one-way telemetry exception.

What sknet is

Once a network is split into a trusted core, a mesh and a few one-way sites, "who is talking to whom, and how much" stops being obvious. sknet answers it without a SPAN port, a commercial probe or a new appliance: it deploys like every other skstacks service, documents itself, and keeps the upstream applications exactly as their authors built them.

Estate-wide history

Akvorado stores flows from every hop in ClickHouse, with retention sized to a fixed disk budget, so last week's traffic is still a query away.

A live view

ntopng Community runs on the gateway host with a hard memory cap, for the "what is happening right now" question Akvorado is not built for.

Exporters per hop

softflowd runs one instance per interface on the hosts you choose, with pinned interface indexes so graphs stay stable across reboots.

Gated by default

Both web UIs sit behind SSO and a CIDR allowlist, and the collector ports accept flows only from the exporter addresses you list.

Small enough to run

The whole collector stack defaults to a budget of about 3.5 GB of RAM and a 20 GB disk cap, on one pinned node with local disk.

Upstream UIs kept

No forks, no custom images, no re-skinning. Pinned upstream tags, upstream logos, credited below.

§How it works

  1. Exporters observe. softflowd watches an interface and emits NetFlow v9 records over UDP, unsampled, to a single collector IPv4 address.
  2. The inlet collects. Akvorado's inlet listens on UDP 2055 (NetFlow) and 4739 (IPFIX), published in host mode so the exporter's source address survives, and only listed exporters are allowed through.
  3. Kafka buffers, the outlet enriches. Flows pass through a single-node Kafka, then the outlet adds interface names, network names and classification.
  4. ClickHouse stores. Enriched rows land on local disk with a TTL, never on network storage.
  5. The console answers. Akvorado's console queries ClickHouse for graphs, top talkers and per-interface breakdowns.
  6. ntopng shows live. On the gateway host, ntopng captures the same interfaces for an instant, memory-capped live view.
exporters (softflowd) --NetFlow v9--> inlet --> Kafka --> outlet --> ClickHouse --> console gateway interfaces --live capture--> ntopng --> live view

§Seeing flows across mesh hops

A flow that crosses several networks is visible at every hop it touches. sknet's pattern is to put one exporter on each hop that matters and one collector where the data can live on local disk, then name the networks so the console reads like a map instead of a list of addresses.

Example hopWhat to export
Gateway, LAN sideThe LAN interface, so internal traffic and what leaves the LAN is recorded (for example 192.0.2.0/24).
Gateway, mesh and linksThe mesh interface and each site-to-site link interface, classified so the console can tell mesh from internet.
Cloud VPC siteOne exporter at the site's edge. It is one-way: it can send telemetry to the collector and nothing else.

one exceptionIsolated sites send telemetry one way

  • The isolated site gets one policy: UDP to the collector's flow port, from the exporter address, to one collector. Nothing flows back.
  • The collector's firewall drops flow packets from every address that is not on the exporter list.
  • Because each hop reports separately, a flow crossing two exporters is counted at both. The docs explain how to read the console without double counting.

§Access and privacy

Flow metadata reveals who talks to whom, so sknet treats it as sensitive from the first packet. Nothing is exposed publicly, and the web UIs are reachable only from the networks you name.

SSO in front

Two Traefik routers, one for the console and one for the live view, both require your identity provider (Authentik) before a page loads.

CIDR allowlist

A per-router allowlist middleware limits who can even reach the login. It defaults to private ranges and is set to your mesh and LAN in an instance.

Mesh-only DNS

Split DNS points the UI names at an internal address, so off-mesh resolvers either fail to resolve or hit the allowlist and get a 403.

Placeholders in public

The framework ships with documentation addresses only (192.0.2.0/24, 198.51.100.0/24). Real addresses and names live in your private instance repository.

§Components

ComponentRole
softflowdPer-interface NetFlow v9 exporter from distro packages, installed by an idempotent play that also supports removal.
AkvoradoInlet, outlet, orchestrator and console: the flow collector and the estate-wide web console.
Kafka and ClickHouseSingle-node Kafka (KRaft) as a buffer and ClickHouse as the store, both on local disk of the pinned data node.
ntopng CommunityLive view as a pinned container on the gateway host, memory capped, bound to the LAN address behind Traefik.
Traefik and SSOOne router per UI, each with the SSO middleware and a per-service CIDR allowlist.
Port allowlistFirewall rules on the data node that accept flow packets only from listed exporter addresses.

§Architecture: three ways to read it

Each diagram is a standalone, self-contained HTML page: explorable, with motion, and a dark/light toggle. They open in a new tab.

A plain Markdown version of the component map, which renders directly on GitHub, lives in the repository README.

§Built on

creditBuilt on Akvorado (AGPL-3.0) and ntopng Community (GPLv3)

  • Akvorado (AGPL-3.0) is the flow collector and console. sknet runs the upstream image, unmodified.
  • ntopng Community (GPLv3) is the live view. sknet runs the upstream container, unmodified.
  • softflowd exports the flow records, installed from the distribution package.
  • Upstream logos and interfaces are kept as their authors made them. sknet only automates deploying and gating them. The skstacks role is AGPL-3.0, like the rest of skstacks; this site is MIT licensed.

Deploy and operate

sknet is an optional role in skstacks, deployed with the same swarm and host plays as its siblings: set the data node, the exporter list and the allowlist in your private vault, deploy the stack, run the exporter play on the hosts you chose, then the live play on the gateway. The documentation below covers the overview, the architecture, the multi-hop pattern and day-two operations.

Part of the ecosystem

sknet gives the rest of the fleet a window onto its own traffic. SKStacks is the framework it deploys through, sksec guards the edge its UIs sit behind, and skpatch keeps its pinned images current. All part of SKWorld, the sovereign AI ecosystem where you own the whole stack, from silicon to soul.