tui-tools

tui-traffic

What the network is doing right now, interface by interface

A terminal UI (TUI) for conntrack on Linux: realtime network metrics for one Linux machine, in the terminal.

v0.1.5betanetworkMIT

Betatui-traffic may still change keys, flags or output before its 1.0. Pin the version you depend on, and report what breaks.What stable means

Interfaces: RX and TX rates with a sparkline over the last minute
Interfaces: RX and TX rates with a sparkline over the last minute

Realtime network metrics for one Linux machine, in the terminal. Three screens, refreshed every second, and every number on them comes from a file the kernel already exports.

Interfaces is throughput per interface: RX and TX in bytes per second and packets per second, a sparkline over the last minute, the link state, and the errors and drops the counters have accumulated. It is /proc/net/dev read twice a second apart, which is what a rate actually is.

Connections summarises the conntrack table: how many connections there are, what states they are in, split by protocol, and the busiest talkers by bytes when the kernel is counting them. Byte accounting (net.netfilter.nf_conntrack_acct) is off by default on most kernels, and when it is off this screen says so rather than inventing figures. On a machine with no conntrack at all it counts sockets instead and names the source it used.

Sockets is what is listening and what is established, from /proc/net/tcp, tcp6, udp and udp6.

It changes nothing: no action key, no confirm dialog, and no privilege beyond the sudo -n that reading the conntrack table needs.

Keys

KeyAction
1 / 2 / 3Interfaces, connections, sockets
tabNext screen
pPause and resume the one-second refresh
/Filter the rows
rSample now, without waiting for the tick
?Help
qQuit

Press ? inside the tool for the full help screen, which is generated from the same action table as the key map.

Compatibility

This tool is a face on the program below, so its version matters. Tested is not a claim: a version lands there only after the tool's own suite passed against it on a real machine in the lab, and the run is kept as evidence in the repository. At startup the tool probes the backend once and says what it found in its header — a version nobody has run against is shown as (untested) in the warning colour, one older than the minimum as (below minimum) in the error colour. Neither stops it: the backend still refuses what it cannot do, in its own words.

conntrack

conntrack ≥ 1.4.0
Binary
conntrack
Minimum
1.4.0
Probed with
conntrack --version
Tested
No recorded run yet. The tool still runs and reports the version it found as untested.

What changes on older versions

  • conntrack <1.4.0

    conntrack -L -o extended prints a layout this parser does not read, so the connections screen falls back to /proc/net/nf_conntrack or to counting sockets, and says which it used

Maintain conntrack? You are welcome to help shape this tool. About → maintainers

Install

Once per machine, then every tool in the family is one pacman away.

Add the repository
$ curl -fsSL https://pkgs.tui.tools/install.sh | sh
Or run the same thing yourself, one command at a time

A family whose whole promise is preview before you run is not going to insist you pipe a script into a shell. These are the commands that script runs.

The one-time setup, by hand
$ k="$(mktemp -d)/tui-tools.asc"
  curl -fsSL --proto =https --tlsv1.2 -o "$k" https://pkgs.tui.tools/pubkey.asc
  [ "$(gpg --show-keys --with-colons "$k" | awk -F: '$1 == "pub" { p = 1; next } p && $1 == "fpr" { print $10; p = 0 }')" = 767CFB337B01F32FFC073F3F389120B277E4FB44 ] && echo "key OK" || { echo "WRONG KEY: stop here"; rm -f "$k"; }
  sudo pacman-key --add "$k"
  sudo pacman-key --lsign-key 767CFB337B01F32FFC073F3F389120B277E4FB44
  printf '[tui-tools]\nServer = https://pkgs.tui.tools/arch/$arch\n' | sudo tee -a /etc/pacman.conf
  sudo pacman -Sy

The first lines check the signing key: go on only if they print key OK.

Arch Linux · tui-traffic
$ sudo pacman -S tui-traffic

Upgrades then arrive with the rest of your system updates.

What it can do to your machine

  • Preview, then confirm

    Every change is shown as an exact command line and confirmed before it runs. The dialog and the runner receive the same value, so the preview cannot drift from what executes.

  • Escalates for actions

    Only the conntrack table needs it. Everything else — /proc/net/dev, /proc/net/tcp and its siblings, /sys/class/net — is world-readable. Escalation is sudo -n, which never prompts: a machine where it does not work shows the socket-count fallback with the reason instead of asking for a password.

  • No daemon, no state of its own

    Nothing keeps running after you quit, and nothing is installed to run later. The system is the source of truth; the tool re-reads it after every change.

  • No network access

    The tool opens no network connection of its own. No telemetry, no update check, no phone home.

  • Static binary

    Released statically linked, with no runtime dependencies to install.

  • Signed release, with provenance

    checksums.txt carries a keyless cosign signature from this repository's release workflow, every archive has a CycloneDX SBOM, and every archive, package and the checksum file carry SLSA build provenance. The security page shows the three commands that check it.

Reporting

Report a security issue privately, through GitHub's private vulnerability reporting on the repository's Security tab. The family-wide policy, and what counts as in scope, is on the security page.

Downloads

v0.1.5 · 2026-11-20
FileSizeSHA-256
checksums.txt1 KB—
checksums.txt.sigstore.json10 KB—
provenance.intoto.jsonl12 KB—
tui-traffic-0.1.5-1-aarch64.pkg.tar.zst1.7 MB4c10985443300496d2605204e15e684a9debf0e266e6af1c9ba17ce2db279dfc
tui-traffic-0.1.5-1-x86_64.pkg.tar.zst1.9 MB0e6076656097b9c205a3fda266298cb394b6ef1439c08dc3d1e62ed6d0369c5e
tui-traffic-0.1.5-1.aarch64.rpm1.7 MB8ed25b16a1465f727b4ce7149b657e4554e9719099e298615aa1d92db93fd473
tui-traffic-0.1.5-1.x86_64.rpm1.9 MB01147bf0bbd1e7aec851a4fb86ded6135fa5523b88d12a3f46216673e6defcd2
tui-traffic_0.1.5_amd64.deb1.9 MB596c0e0b044f37688d2637085d528503f05f4fabc0d371d39ea0a0e09c90fd68
tui-traffic_0.1.5_arm64.deb1.7 MBbd924d41f6936d31ddf9c2b522e3a86e15ef1c0b6c281d5a421d4c4217036999
tui-traffic_0.1.5_linux_amd64.tar.gz1.9 MBa2582e1231b3f2b9339366f28ac22a95103bd6a5548a8ffce50b544e49cf8aca
tui-traffic_0.1.5_linux_amd64.tar.gz.cyclonedx.json24 KB25f6d552caaa86308ea28b85bed8d1438d3c0c526097ff77283c2d882fec346e
tui-traffic_0.1.5_linux_arm64.tar.gz1.7 MB926b76aba6d994b0ed2a828163523f5f148a19c9429db2b427d15cda781bc793
tui-traffic_0.1.5_linux_arm64.tar.gz.cyclonedx.json24 KBdd4235fb9551c8d7dd118ee72aa4537148b5beb4b8e8da4b5684609200ef8c49

Every release ships a checksums.txt. Download it next to the archive and run sha256sum -c checksums.txt --ignore-missing. See verifying a download.

Releases

v0.1.5

2026-11-20
## tui-traffic v0.1.5

tui-traffic 0.1.5

- Built with tui-kit v0.5.0, the kit's security release, and Go 1.27.4, which fixes GO-2026-6859 in the standard library. When the tui-tools package repository is set up, its key is accepted only when it is the pinned key alone. As root, privileged commands are resolved only from trusted root-owned system paths and start from a minimal environment; config files must be owned and writable by root alone, and TUI_TRAFFIC_* variables carried over from sudo, doas, pkexec or su are refused (the error points at /etc/tui-traffic/config.toml). Running without root is unchanged.
- The manual apt, dnf and pacman setup in the README checks the downloaded key against the pinned fingerprint before any step trusts it.
- The README and tool.json list the apt, dnf and pacman packages from pkgs.tui.tools (#18).
- CI actions on their latest versions.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* fd00d67d3970407224c34e50d8a2ea0a4f1733f5 0.1.5: tui-kit v0.5.0 (security release) (#23)
* f29b7795828b00ff42681d390a90dad280865cc4 Bump github.com/tui-tools/tui-kit (#20)
* 84fde2aff80f800e0a6eb7012d4e256fa1ec9cf2 Bump the github-actions group across 1 directory with 5 updates (#21)
* ebea4ccf187d088430f0b602b7b4b2a024acb7c9 Packages are available from pkgs.tui.tools (#18)
* be184ecbc8776708447c5edbf3879f3f6eee1fc6 Take tui-kit v0.5.0 and Go 1.27.4 (#22)

v0.1.4

2026-10-22
## tui-traffic v0.1.4

tui-traffic 0.1.4

- Built with Go 1.27.3, which fixes CVE-2026-111943 in the standard library (crypto/x509), and tui-kit v0.4.5; dependencies on their latest versions. No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 02036177dbe695f5d083b42992de4bbc3d9b0658 0.1.4: Go 1.27.3 (stdlib security fixes) (#17)
* 7550a7ae511b955118c2a7e4045726f8a28f3fe2 Bump the github-actions group across 1 directory with 9 updates (#15)

v0.1.3

2026-10-20
## tui-traffic v0.1.3

tui-traffic 0.1.3

- Built with Go 1.27.2, which fixes CVE-2026-78667, CVE-2026-78669 and CVE-2026-97031 in the standard library (net/http, crypto/tls). No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* c341539594b146855931a7bc86c3a6449a7596af 0.1.3: Go 1.27.2 (stdlib security fixes) (#16)

v0.1.2

2026-09-25
## tui-traffic v0.1.2

tui-traffic 0.1.2: tui-kit v0.4.4

tui-traffic 0.1.2 moves to tui-kit v0.4.4: every probe now runs in its own session without a controlling terminal, so nothing can wait on a prompt hidden behind the UI, and a failed read reports its meaningful line, cleaned of escape codes. The README screenshots are re-rendered with continuous box borders and the install snippet points at this release.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* a9306353d56b2da79ec96180a84e42c1fc57b685 0.1.2: tui-kit v0.4.4 (#12)
* c0f4c789e01b2aef220b712ee4f31a1804730dac Bump anchore/sbom-action/download-syft in the github-actions group (#10)
* 1636cdaaa9e891ec8b14471ad4d596b65f635efc Bump the github-actions group with 4 updates (#11)
* 7485b287365534c0d2848b240ff3ce671f665956 README: link the tool's page on tui.tools (#9)
* afcdbfc91a4583d745d68e1d170a68285a1d37e9 README: point the install snippet at the current release (#8)

v0.1.1

2026-09-02
## tui-traffic v0.1.1

tui-kit v0.3.0: the dialogs wrap and scroll instead of clipping the
command preview, and the picker filters as you type.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 5627c8bf458028450d4a178c583367e4a00e22fc Bump tui-kit to v0.3.0 (#7)
* 32c4e58a6fed7d0ac64b017cd44097ea588b23bb tool.json: released (#6)

v0.1.0

2026-09-01
## tui-traffic v0.1.0

First validated release: the router-1.0 lab ran this tool against real VMs (tui-lab router topology).

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 180d7fc89f524ecd88849da53abf404b5807f918 Add internal/traffic: the read-only core and its three parsers (#3)
* f8765574a4d43976b231524249aa2e54df0d5181 Add the smoke test and re-render the screenshots from the real binary (#5)
* 8013ec0bab39f7aa2e227424a7c0179a24e8464d Bump anchore/sbom-action/download-syft (#2)
* 2623d9568d26a94865f8289d8a5b96754d439e69 Initial commit
* cad48b0983f748c2d75a69e0c9e099247d3a6276 Rename the template scaffold to tui-traffic (#1)
* f78602a30599bd4022e738570fba73b8163eea20 Replace the template's sample with the three screens, --check and --report (#4)