NetHawk
Real-time network traffic analysis in your terminal.
SSH into a server. Run nethawk. See everything hitting your network. One 5MB binary, zero config, no cloud.
curl -sSfL https://raw.githubusercontent.com/Flowtriq/nethawk/main/install.sh | sudo sh
What It Does
Live Traffic Dashboard
Bandwidth (Gbps/Mbps), packet rate (PPS), 60-second sparkline history, peak tracking. Updates every second.
Protocol Breakdown
TCP, UDP, ICMP percentages with visual bars. See your traffic composition at a glance.
Top Source IPs
Ranked by packet count. See who is sending you the most traffic, in real time.
Top Destination Ports
Which services are being hit, with percentages. Spot targeted attacks immediately.
Attack Detection
Classifies 12+ attack types in real time: DNS/NTP/memcached amplification, SYN flood, UDP flood, ICMP flood, and more.
JSON Output
Pipe structured data to jq, log aggregators, alerting systems, or any tool that reads JSON from stdin.
Attack Types Detected
How It Compares
| NetHawk | iftop | nload | bandwhich | Wireshark | |
|---|---|---|---|---|---|
| Real-time TUI | Yes | Yes | Yes | Yes | GUI only |
| Protocol breakdown | Yes | No | No | No | Yes |
| Top source IPs | Yes | Connections | No | Per-process | Yes |
| Top dest ports | Yes | No | No | No | Yes |
| Attack detection | Yes | No | No | No | No |
| Attack classification | 12+ types | No | No | No | No |
| JSON output | Yes | No | No | No | Yes |
| Single binary | 5MB | No | No | Yes | No |
| Zero config | Yes | Yes | Yes | Yes | No |
Need production DDoS protection?
NetHawk shows you what is hitting your network. Flowtriq stops it automatically with 24/7 monitoring, auto-mitigation, alerting, team dashboards, and incident forensics.
Other Open Source from Flowtriq
FAQ