{"repo":"dkorunic/pktstat","free":true,"listed":false,"github":"https://github.com/dkorunic/pktstat","clone":"git clone https://github.com/dkorunic/pktstat.git","description":"Lightweight Ethernet interface traffic monitor and reporter","language":"Go","stars":101,"topics":["networking","linux","packet","packet-capture","unix","terminal"],"license":"MIT","category":"networking-infra","readme_excerpt":"pktstat About pktstat is a lightweight replacement for the ncurses-based pktstat. On Linux it uses AF PACKET; on all other platforms it uses generic live PCAP capture. It requires no special or recent kernel features — AF PACKET has been available since Linux v2.2 (1999) — and is fully compatible with other Unix platforms such as Darwin, where it falls back to generic PCAP. At the end of execution, the program displays per-IP and per-protocol statistics (IPv4, IPv6, TCP, UDP, ICMPv4, and ICMPv6), sorted by per-connection bps, packet count, and (source-IP:port → destination-IP:port) tuples. Note: pktstat with AF PACKET handles up to several thousand packets per second without loss, but for higher traffic volumes consider the pktstat-bpf alternative. It is implemented as a Linux eBPF program, operates near wire-speed, and has no measurable impact on production systems. Requirements Capturing traffic typically requires root privileges. As an alternative, you can run pktstat as a regular user after granting it the necessary Linux capabilities: Usage By default, pktstat listens on all interfaces with no BPF filter applied. Use --iface to select a specific interface, and --filter to restrict captured traffic — for example, --filter \"not port 22\" to exclude SSH traffic. --timeout stops the capture after the specified duration. You can also interrupt the program at any time with Ctrl-C, SIGTERM, or SIGINT. --json outputs the traffic statistics as JSON instead of plain text. --interva","default_branch":null,"files":null,"tree":[],"storefront":"/r/dkorunic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dkorunic/pktstat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}