RustNet shows live TCP, UDP, and QUIC connections with per-process attribution.
Npcap must be installed separately for live capture. Default Npcap
installation settings are supported. --help and --version work without Npcap.
RustNet is a terminal network monitor that shows live TCP, UDP, and QUIC connections with process attribution when available. It runs on Linux, macOS, Windows, and FreeBSD.
Install
On macOS or Linux with Homebrew:
brew install rustnet
Packet capture needs platform-specific permissions. See the installation guide for Linux capabilities, macOS PKTAP and BPF access, other package managers, and troubleshooting.
> Release status: The highlights, GIF, and screenshots show v1.7.0. The recordings use generated traffic in an isolated Linux environment. The guides linked from main may also describe unreleased changes. For the installed release, use the v1.7.0 documentation and check rustnet --version and rustnet --help.
Demo
Highlights
Shows connection state, traffic, application protocol, and available process information in a terminal UI that works over SSH.
Identifies protocols such as HTTP, TLS/SNI, DNS, SSH, and QUIC through packet inspection.
Filters connections by process, address, port, protocol, and more.
Streams versioned JSON snapshots in headless mode for scripts and monitoring.
Shows host sockets, passive DNS analytics, and connection health.
Exports captures as PCAP or PCAPNG with best-effort annotations for analysis in Wireshark.
Reduces privileges after startup and uses platform sandboxing where supported.
Since v1.7.0, RustNet requires trusted directories for Unix output files and creates diagnostic logs exclusively.
v1.7.0 fixes ARM DEB compatibility with older glibc and Debian 13's time64 libraries. See the installation guide for supported distributions; v1.6.0 assets do not include these fixes.
Screenshots
<strong>Overview</strong>Live connections and traffic<img src="./assets/screenshots/overview.png" width="400" alt="RustNet Overview" />
<strong>Details</strong>Process, protocol, and peer information<img src="./assets/screenshots/details.png" width="400" alt="RustNet Details" />
<strong>Graph</strong>Traffic and application charts<img src="./assets/screenshots/graph.png" width="400" alt="RustNet Graph" />
<strong>Activity</strong>Traffic by process<img src="./assets/screenshots/activity.png" width="400" alt="RustNet Activity" />
<strong>Host sockets</strong>Listening and bound endpoints<img src="./assets/screenshots/host.png" width="400" alt="RustNet Host sockets" />
<strong>DNS</strong>Passive DNS queries and responses<img src="./assets/screenshots/dns.png" width="400" alt="RustNet DNS" />
Windows also requires Npcap. v1.7.0 supports its default settings; v1.6.0 requires "WinPcap API compatible mode". For openSUSE, Pop!_OS, FreeBSD, Docker, and source builds, see the installation guide.
Run
On Linux, after configuring capabilities:
rustnet
On macOS, PKTAP requires sudo. With BPF access configured, RustNet can run without it but uses lsof for process detection.
Press / to filter connections, Enter to inspect one, and q to quit. See the usage guide for interface selection, options, controls, filters, and exports.
Documentation
QUIC inspection: handshake storage and library compatibility (available since v1.7.0).
Installation: platforms, permissions, and troubleshooting
Usage: controls, filtering, automation, and capture exports