Darkstat captures network traffic, calculates statistics about network usage, and serves reports over HTTP. Darkstat track server PORTs based on local & remove server.
Install Darkstat 2.6 on Ubuntu https://t.co/IrF1g2LNfQ #tcpdump #ubuntu #darkstat pic.twitter.com/RCSWO2Mgnh
— Sandeep Verma (@svnlabs) January 8, 2019
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.
#TCPdump, a powerful command-line packet analyzer; and #libpcap, a portable C/C++ library for network traffic capture. https://t.co/jYqNbYARV5 #FridayFeeling pic.twitter.com/RRRuPwk6rR
— Sandeep Verma (@svnlabs) January 4, 2019
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/