Explore projects
Rustintermediatedevops
Network Packet Analyzer
Network packet analyzer in Rust that captures traffic, decodes protocols (IP, TCP, UDP, DNS, HTTP), and displays statistics.
5 steps
Project steps
- 01
Capture pcap
Lists interfaces, captures packets with the pcap crate in promiscuous mode.
- 02
Protocol parsing
etherparse: decodes Ethernet → IP → TCP/UDP → payload.
- 03
DNS parser
Custom parser for DNS queries/responses from UDP port 53.
- 04
Statistics
Top connections, protocols, hosts, bytes/s in real-time.
- 05
TUI ratatui
Terminal dashboard with live tables and graphs for traffic.
Recommended resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech stack
Rustpcapetherparseratatuicrossterm