Quick Summary: 📝
RustNet is a cross-platform, terminal-based network monitoring tool that provides per-process visibility into live TCP, UDP, and QUIC connections. It features deep packet inspection for various protocols and offers enhanced security through sandboxing mechanisms.
Key Takeaways: 💡
✅ RustNet provides live, per-process network monitoring directly within your terminal.
✅ It offers deep packet inspection to identify various protocols like HTTP, SSH, and MQTT without external dissectors.
✅ Developers benefit from real-time TCP analytics for troubleshooting and powerful Vim/fzf-style filtering.
✅ The tool prioritizes security with robust sandboxing and offers optional Kubernetes integration for containerized environments.
✅ RustNet effectively fills the crucial gap between simple connection tools and advanced packet analyzers.
Project Statistics: 📊
- ⭐ Stars: 4693
- 🍴 Forks: 216
- ❗ Open Issues: 10
Tech Stack: 💻
- ✅ Rust
Ever felt like you're flying blind when it comes to your system's network connections? You know netstat and ss give you a snapshot, and tcpdump or Wireshark offer deep dives, but what if you need something in between? Something that tells you which process owns that mysterious connection, what protocol it's speaking, and does it all live, right in your terminal? Well, get ready to meet RustNet, a game-changer for anyone who needs real-time, per-process network visibility without the hassle.
RustNet is a powerful, cross-platform terminal-based tool that provides live monitoring of all TCP, UDP, and QUIC connections on your machine. Its core magic lies in its ability to attribute every single connection to its owning process. This is a huge leap beyond traditional tools like tcpdump or Wireshark, which only see packets and can't tell you which application is responsible. RustNet achieves this on Linux using eBPF, on macOS with PKTAP, and through native APIs on Windows and FreeBSD, making it incredibly versatile.
Beyond just showing connections, RustNet offers deep packet inspection, intelligently identifying common protocols like HTTP, HTTPS/TLS (with SNI!), DNS, SSH, FTP, and many more, all without needing external dissectors. Imagine instantly seeing that a connection is an MQTT stream or a BitTorrent transfer, directly in your terminal. This level of insight is invaluable for debugging, security analysis, or simply understanding your system's behavior.
Developers will especially appreciate features like real-time TCP network analytics, which pinpoint retransmissions, out-of-order packets, and fast-retransmits per connection. This can be a lifesaver when troubleshooting network performance issues. The tool also boasts smart connection lifecycle management with visual indicators for connection staleness, and a toggle to keep historic connections visible for forensic analysis. Plus, its Vim/fzf-style filtering is incredibly powerful, letting you quickly narrow down connections by port, source, destination, SNI, process name, state, or protocol using simple commands or even regex.
Security is also a top priority, as RustNet employs robust sandboxing mechanisms like Landlock on Linux and Seatbelt on macOS, dropping privileges immediately after initialization. This means you can gain deep insights into your network without compromising your system's security. For those working in containerized environments, an optional Kubernetes feature maps connections directly to their pods, namespaces, and containers, making it an indispensable tool for cluster debugging. RustNet even offers annotated PCAPNG export, creating Wireshark-ready captures with process, PID, and GeoIP data embedded as per-packet comments, streamlining your workflow for deeper analysis. It's truly a comprehensive solution that bridges the gap between basic network utilities and full-blown packet analyzers, giving you the clarity you need right where you work.
Learn More: 🔗
🌟 Stay Connected with GitHub Open Source!
📱 Join us on Telegram
Get daily updates on the best open-source projects
GitHub Open Source👥 Follow us on Facebook
Connect with our community and never miss a discovery
GitHub Open Source
Top comments (0)