CODESEEDSign in
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

  1. 01

    Capture pcap

    Lists interfaces, captures packets with the pcap crate in promiscuous mode.

  2. 02

    Protocol parsing

    etherparse: decodes Ethernet → IP → TCP/UDP → payload.

  3. 03

    DNS parser

    Custom parser for DNS queries/responses from UDP port 53.

  4. 04

    Statistics

    Top connections, protocols, hosts, bytes/s in real-time.

  5. 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