Install Darkstat 2.6 on Ubuntu

Darkstat captures network traffic, calculates statistics about network usage, and serves reports over HTTP. Darkstat track server PORTs based on local & remove server.

Features
– Traffic graphs, reports per host, shows ports for each local & remote host.
– Embedded web-server with deflate compression.
– Asynchronous reverse DNS resolution using a child process.
– Small, Portable, Single-threaded and Efficient.
– Supports IPv4 & IPv6.

Darkstat uses TCPDump & Libpcap
TCPDump is a powerful command-line packet analyzer and Libpcap is a portable C/C++ library for network traffic capture.

Steps

Install dependency configure: error: I need libpcap

# apt-get install libpcap0.8 libpcap0.8-dev libpcap-dev

# wget https://archive.li/o/qWfHc/web.archive.org/web/20060610172516/http://www3.unievangelica.edu.br/darkstat-2.6.tar.gz

# ./configure
# make
# make install

# /usr/local/sbin/darkstat -i eth0 -p 8080

Then run your server IP with port 8080 (make sure port 8080 is open in server firewall)

http://server-ip:8080/

Links
https://unix4lyfe.org/darkstat/
https://www.tcpdump.org/