An iftop alternative for cumulated network traffic monitoring, for OSS mirror admins.
Outbound traffic by default.
go build
This uses gopacket and thus NOT supporting CGO_ENABLED=0
for static linking.
You need to install libpcap to use this.
Note that binaries in Releases are compiled under Ubuntu 20.04 (glibc 2.31).
> ./chitose -h
Usage of ./chitose:
-i string
Interface to listen on (default "eth0")
-inbound
Show inbound traffic instead of outbound
-no-netstat
Do not detect active connections
-sort-delta
Sort by delta instead of total
-top int
Number of top values to show (default 10)
Press 's' (lowercase) to change sort order
You might need root privilege to run this program.
iBug's ctmon uses conntrack instead of pcap to monitor, which is a more lightweight solution.
Same as the nginx log analyzer ayano, and chitose shares some code with that :)