netwatch: terminal network monitor and diagnostics tool

netwatch shows connections, per-process bandwidth, latency and packets in one terminal and diagnoses network problems. How to install it, run it without sudo and how it compares with other tools.

netwatch is a network diagnostics tool that runs in your terminal. It shows what a machine is doing on the network: every connection and the process behind it where the operating system exposes that, the latency of each hop on the way out, and, with capture permissions, packets decoded up to the application layer. It is one binary written in Rust, needs no configuration and runs on Linux, macOS, Windows and FreeBSD. Version 1.0.0 came out on 19 November 2026.

netwatch's dense view on a light terminal: a mirrored braille throughput graph with download above the axis and upload below, per-interface rates with sparklines, four-hop latency budgets, and a connection table with the selected socket's kernel TCP state
netwatch --view dense: download grows up from the axis, upload grows down. Demo from the netwatch repository.

What sets it apart from a plain bandwidth monitor is the Diagnose tab. It learns what normal looks like on your network, opens an issue when that breaks, ranks the likely causes by the checks each one passed, and closes the issue itself once the fix has held.

What netwatch shows

The tabs switch with the keys 1 to 9 and 0:

Key Tab What it shows
1 Dashboard Latency tiles, mirrored throughput, connections rolled up per process
2 Connections Every socket with process, PID, state, GeoIP, RTT and retransmits
3 Interfaces Addresses, MTU, rates, errors and drops
4 Packets Live decoding, TLS decryption, display filters, PCAP and PCAPNG export
5 Stats Protocol breakdown and handshake timing
6 Topology Machine, gateway, DNS, top hosts and traceroute
7 Timeline Connections by TCP state, with alerts
8 Processes Bandwidth per process
9 Diagnose Issue, cause, fix and verified close
0 Egress Learned destinations and policy drift

There are three views, switched with V without a restart: full (all tabs), lite (--lite, one 80x24 screen for an SSH session to a Raspberry Pi or a tmux pane) and dense (--view dense, four boxes for a terminal of at least 130x44, the one in the animation above). Press ? in the program for every key.

Install netwatch

Platform Command
macOS and Linux (Homebrew) brew install netwatch
Windows (needs Npcap) scoop install netwatch
Prebuilt binary cargo binstall netwatch-tui
Build from source cargo install netwatch-tui
Arch Linux (AUR) paru -S netwatch-tui
Nix nix-shell -p netwatch
conda or mamba conda install -c conda-forge netwatch
Fedora sudo dnf copr enable matthart1983/netwatch && sudo dnf install netwatch

On Debian and Ubuntu the project has a signed apt repository:

curl -fsSL https://matthart1983.github.io/netwatch/apt/netwatch.gpg \
  | sudo tee /usr/share/keyrings/netwatch.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/netwatch.gpg] \
https://matthart1983.github.io/netwatch/apt stable main" \
  | sudo tee /etc/apt/sources.list.d/netwatch.list
sudo apt update && sudo apt install netwatch

Binaries for Linux (x86_64, aarch64, armv5te), macOS, FreeBSD 13 or newer and Windows are on the releases page, with .deb and .rpm packages, checksums and signed provenance. The Linux builds are static and need nothing installed. Windows needs Npcap.

There is also a container image. It needs the host’s network and process view to see anything useful:

docker run --rm -it --net=host --pid=host --cap-add=NET_RAW ghcr.io/matthart1983/netwatch

Run it

Packet capture needs elevated access, but a lot works without it:

  • netwatch shows interfaces, connections and configuration with no privileges.
  • sudo netwatch adds ICMP health probes and packet capture. It works, but as root the built-in sandbox is only defence in depth.
  • netwatch --lite and netwatch --view dense start in the other views.
  • netwatch --demo replays a recorded Diagnose incident, with no capture needed. It is the quickest way to see the tool before you give it any permissions.

Features that need more rights show a clear message instead of crashing.

Run without sudo on Linux

Packet capture and eBPF-based process attribution need capabilities, not the whole TUI as root. The documented approach is a root-owned copy of the binary that only members of one group can run, with the capabilities attached last. This is a shortened form of the recipe in the netwatch reference:

sudo groupadd -f netwatch
sudo usermod -aG netwatch "$USER"
sudo install -o root -g netwatch -m 0750 "$(readlink -f "$(which netwatch)")" /usr/local/bin/netwatch
sudo setcap 'cap_net_raw,cap_bpf,cap_perfmon+eip' /usr/local/bin/netwatch

Log in again so the group membership takes effect, then run /usr/local/bin/netwatch. The three capabilities do these things:

Capability What it unlocks
cap_net_raw Opening packet capture on a live interface
cap_bpf Loading the kernel probe that attributes connections to processes (kernel 5.10 or newer)
cap_perfmon Reading the buffer that probe writes to

Without the capabilities netwatch still runs. It falls back to ss and lsof style polling for process attribution and skips packet capture. netwatch doctor prints a read-only report of what netwatch can see on the host and why not, and netwatch doctor --check-capture tries a real capture.

Diagnose network problems

The Diagnose tab, and the same engine on the command line, answer “why is my network slow or down?” instead of only showing numbers:

netwatch diagnose run --budget 30s

This runs one bounded diagnosis. Add --format json for scripts. The exit code is part of the stable interface:

Exit code Meaning
0 Completed, no open issue
1 At least one open issue
2 No usable observation within the budget
3 Bad arguments or no session

Diagnose checks rules such as an unreachable gateway or a failing target. Five rules are stable at 1.0. The rest are marked beta, so their thresholds can change and a beta finding may be wrong. The project asks you to open an issue with the JSON output when Diagnose misreads your network.

Run it as a service with Prometheus metrics

netwatch daemon runs the same collectors with no screen. With --metrics it serves Prometheus metrics at 127.0.0.1:9464, plus a /healthz check:

netwatch daemon --metrics

The endpoint binds to loopback by default. Use --metrics-addr or NETWATCH_METRICS_ADDR to change the address, and expose it only on a trusted network. A systemd unit and a launchd agent are in the repository (packaging/systemd/netwatch.service); the systemd unit grants the capabilities to its own service user, so the group recipe above is not needed.

Scrape it like any other exporter:

scrape_configs:
  - job_name: netwatch
    static_configs:
      - targets: ["127.0.0.1:9464"]

The metrics cover per-interface bytes, packets, errors, drops and current throughput, round-trip time and loss to the gateway and to your DNS server, tracked connections by TCP state and capture counters. They are aggregate only by design. Per-connection detail stays out of the metrics, because it would make them expensive to store.

For a history of outages, netwatch uptime --since 7d lists when your connection dropped, for how long and which hop failed: the gateway (your router or LAN), the internet probe (your ISP or beyond) or DNS alone. It reads a log that the TUI and the daemon keep while they run, so for a complete record run the daemon.

netwatch looks at the network from one machine. For CPU, memory, disk and container charts across several servers, Beszel covers the host side, and Uptime Kuma checks from outside whether your services answer.

What netwatch sends off your machine

netwatch is local, but it does make its own network probes, and they are documented. Automatically, in the TUI and the daemon:

  • A DNS query for dns.google to 1.1.1.1 and an internet reachability probe to 1.1.1.1, with 8.8.8.8 as a fallback.
  • STUN requests to Google and Cloudflare about once a minute, which tell them your public address.
  • A traceroute to 1.1.1.1 on every TUI start, and probes to your own gateway and resolver.
  • Reverse DNS lookups for the addresses in your own connections, through the system resolver.

Everything else is opt-in or on demand: WHOIS lookups happen only when you press W, the GeoIP database is downloaded only when you run netwatch geoip update, and the optional AI commentary and --remote streaming are off by default and marked experimental.

If you do not want the automatic probes to public servers, set this in config.toml (on Linux ~/.config/netwatch/config.toml, created with netwatch --generate-config):

third_party_probes = false

The measurements they provided then show as not measured, and some Diagnose rules stop working. Your own gateway and resolver are still probed.

Is it stable?

From 1.0.0 the project promises that subcommands and long flags, config keys, the JSON output of diagnose run and doctor, the diagnose run exit codes, uptime output and the Prometheus metric names will not break before a 2.0, and says no 2.0 is planned. The TUI layout, key bindings and human-readable text are not covered. AI Insights, --remote, resolver changes and the flow log are experimental.

Keep in mind that 1.0.0 is days old. Process attribution also differs by platform. On Linux it can be verified through the kernel. On macOS and Windows it is based on polling and can miss short-lived connections. The sandbox exists only on Linux, and kernel TCP metrics are not implemented on Windows and FreeBSD.

netwatch compared with other network tools

Facts are from each project’s repository on 28 November 2026.

Tool License What it is
netwatch MIT One terminal tool for connections, latency, packets, diagnosis and a Prometheus daemon
bandwhich MIT A terminal bandwidth utilization tool
nethogs GPL-2.0 A Linux “net top” tool
vnStat GPL-2.0 A network traffic monitor for Linux and BSD
Wireshark GPL-2.0 The graphical packet analyzer
ntopng GPL-3.0 Web-based traffic monitoring
  • Take netwatch when you want one program that shows connections with their processes, the health of the path to the internet and decoded packets, and can run unattended as a daemon.
  • Take bandwhich or nethogs when all you need is to see which process uses bandwidth, with the smallest tool.
  • Take vnStat for traffic totals over time, Wireshark for deep packet analysis in a graphical interface, and ntopng when you want a web interface that watches a whole network.

None of them replaces another entirely. Packet capture with netwatch is handy for a quick look from an SSH session, and Wireshark is still the tool for a long capture analysis.