Per-process network monitoring for your terminal with deep packet inspection. Cross-platform, sandboxed.
Per-process network monitoring for your terminal with deep packet inspection. Cross-platform, sandboxed.
Per-process network monitoring for your terminal: live TCP, UDP, and QUIC connections with deep packet inspection, sandboxed by default.
Real-time visibility into every connection your machine makes, who owns it, and what protocol it's speaking. No tcpdump, X11 forwarding, or root piping.
netstat / ss can't show live state.--pcapng-export writes a Wireshark-ready capture with process, PID, direction, DPI/SNI, and GeoIP embedded as per-packet comments. Open it in Wireshark and every packet already names its owning process, with no post-processing. Classic --pcap-export with a JSONL sidecar for offline correlation is also available.t to keep historic (closed) connections visible for forensics.port:, src:, dst:, sni:, process:, state:, proto:, plus regex via /(?i)pattern/.kubernetes feature): connections mapped to their pod, namespace, and container, shown in the details pane, JSON/PCAPNG exports, and the pod:, ns:, container: filters. Enabled in the official Docker image; on a cluster, use the kubectl-rustnet plugin to run it as an ephemeral debug pod. See USAGE.md.RustNet fills the gap between simple connection tools (netstat, ss) and packet analyzers (Wireshark, tcpdump):
RustNet complements packet capture tools. Use RustNet to see what's making connections. For direct Wireshark inspection, --pcapng-export writes live best-effort packet comments with PID/process context. For cleanup-time correlation, use --pcap-export plus the JSONL sidecar and optional scripts/pcap_enrich.py. See PCAP Export and Comparison with Similar Tools for details.
Built on ratatui, libpcap, eBPF (libbpf-rs), DashMap, crossbeam, ring, MaxMind GeoLite2, and Landlock. See ARCHITECTURE.md for the full dependency breakdown.
eBPF Enhanced Process Identification (Linux Default)RustNet uses kernel eBPF programs by default on Linux for enhanced performance and lower overhead process identification.
Process Names:
comm name (a kernel field limited to 16 characters) rather than the acting thread's name, so multi-threaded applications show the main process name instead of thread names like "Socket Thread"/proc/<tgid>/comm, recovers comm-truncated names from the executable's file name (e.g. "chromium-browse" becomes "chromium-browser"), and resolves the full executable path shown in the Details viewFallback Behavior:
To disable eBPF and use procfs-only mode, build with:
cargo build --release --no-default-featuresSee ARCHITECTURE.md for technical information.
Process Activity and Host MonitoringRustNet combines process-level traffic accounting with real-time network interface statistics:
3): Ranks processes by Egress (TX) or Ingress (RX), including retained and rolling traffic, rates, shares, connections, and destinations5): Shows TCP LISTEN sockets, UDP BOUND endpoints, aggregated TCP states, observed RTT, and process ownershipi on Host): Shows comprehensive metrics for every interfaceSee USAGE.md for detailed documentation on interpreting interface statistics and platform-specific behavior.
Metrics Available:
Stats are collected every 2 seconds in a background thread with minimal performance impact.
| Overview Connections table with live stats and sparklines |
Details Per-connection SNI, cipher, GeoIP, DPI |
| Graph Traffic chart, app distribution, top processes |
Activity Process egress/ingress, 60-second coverage, attribution, and remote peers |
Homebrew (macOS / Linux):
brew install rustnetUbuntu (22.04 LTS+) / Linux Mint 21+ / Pop!_OS 22.04+:
sudo add-apt-repository ppa:domcyrus/rustnet
# on Pop!_OS: sudo apt-manage add ppa:domcyrus/rustnet
sudo apt update && sudo apt install rustnetFedora (42+):
sudo dnf copr enable domcyrus/rustnet
sudo dnf install rustnetopenSUSE Tumbleweed:
sudo zypper addrepo https://download.opensuse.org/repositories/home:/domcyrus:/rustnet/openSUSE_Tumbleweed/home:domcyrus:rustnet.repo
sudo zypper refresh
sudo zypper install rustnetArch Linux:
sudo pacman -S rustnetNix / NixOS:
nix-shell -p rustnet
# Then inside the shell: sudo rustnetFrom crates.io:
cargo install rustnet-monitorWindows (Chocolatey):
# Run in Administrator PowerShell
# Requires Npcap (https://npcap.com); default installer settings are supported
choco install rustnetOther platforms:
Packet capture requires elevated privileges:
# Quick start (all platforms)
sudo rustnet
# Linux: Grant capabilities to run without sudo (recommended)
sudo setcap 'cap_net_raw,cap_bpf,cap_perfmon+eip' $(which rustnet)
rustnetCommon options:
rustnet -i eth0 # Specify network interface
rustnet --show-localhost # Show localhost connections
rustnet --no-resolve-dns # Disable reverse DNS lookups (enabled by default)
rustnet -r 500 # Set refresh interval (ms)
rustnet --theme tokyo-night # Theme: muted (default), vivid, catppuccin-mocha, tokyo-night, gruvbox, nord
rustnet --pcapng-export capture.pcapng # Annotated PCAPNG for WiresharkThe theme and per-color overrides can also be set in ~/.config/rustnet/config.toml; --theme takes precedence. See USAGE.md for the schema.
See INSTALL.md for detailed permission setup and USAGE.md for complete options.
If you set capabilities but the TUI still shows
eBPF unavailable, see eBPF Unavailable Despite Capabilities Being Set in the troubleshooting section.
| Key | Action |
|---|---|
q |
Quit (press twice to confirm) |
Ctrl+C |
Quit immediately |
x |
Clear all connections (press twice to confirm) |
Tab or ] |
Next tab |
Shift+Tab or [ |
Previous tab |
1–5 |
Jump to Overview / Details / Activity / Graph / Host |
↑/k ↓/j |
Navigate up/down |
g G |
Jump to first/last connection |
Enter |
View connection details |
Esc |
Go back or clear filter |
c |
Copy remote address |
p |
Toggle service names/ports |
d |
Toggle hostnames/IPs on Overview or Egress/Ingress on Activity |
s S |
Cycle sort columns / toggle direction |
a |
Toggle process grouping |
Space |
Expand/collapse process group |
← / → or l |
Collapse/expand group |
PageUp/PageDown or Ctrl+B/F |
Page navigation |
t |
Toggle historic (closed) connections |
i |
Toggle System info on Overview or interface details on Host |
r |
Reset view (grouping, sort, filter) |
/ |
Enter filter mode |
h |
Toggle contextual help for the active tab |
On Overview, the bottom status bar highlights
No open issues yet, or sync has not completed.