darkstat
Captures network traffic, calculates statistics about usage, and serves reports over HTTP.
Features:
- Traffic graphs, reports per host, shows ports for each host.
- Embedded web-server with deflate compression.
- Asynchronous reverse DNS resolution using a child process.
- Small. Portable. Single-threaded. Efficient. Uncomplicated.
Screenshots: (click)
Downloads:
- darkstat-3.0.713.tar.bz2 (99,671 bytes)
- ChangeLog
Quickstart:
# ./configure
# make
Once built, this is all it takes to get darkstat running:
# darkstat -i eth0
Although it's possible to configure / complicate things further, once out of the box, darkstat will just work without much trouble on your part.
Slower start:
# man darkstat
Portability:
darkstat should build and run on any modern UNIX system that has libpcap. It has been reported to build on:
- AIX
- FreeBSD
- Linux (Archlinux, Debian, Fedora, Gentoo, OpenSUSE, Ubuntu)
- Mac OS X
- NetBSD
- OpenBSD
- Solaris
There is an unofficial Windows port of darkstat.
Efficiency:
On my FreeBSD router, ppp takes an order of magnitude more CPU time than darkstat. If your system can keep up with PPPoE, you should have no trouble running darkstat.
Links:
- darkstat on freshmeat.net
- darkstat in FreeBSD ports
- darkstat in OpenBSD ports
- darkstat in pkgsrc
- darkstat in Gentoo Portage
- ebuild from git thanks to Sebastian Schuberth
- darkstat packages for [open]SUSE
- darkstat packages for Debian (PTS)
- darkstat packages for OpenWRT
- darkstat in SlackBuilds, for Slackware
Some router / firewall / security oriented UNIX distributions package darkstat:
- pfSense (based on FreeBSD)
- redWall Firewall (a bootable CD firewall)
If you package darkstat, please contact me; I'd like to hear about it. If you would like to help with the Release Engineering process for future versions, please contact me.
Some links regarding the previous branch (v2.x):
- cor's darkstat package for OS X
- LinuxFormat review of darkstat (thanks to cor for the scan!)
- Linuxfocus review of darkstat
Similar tools:
Developers:
$ git clone http://dmr.ath.cx/git/darkstat
I try to be well-behaved about releng, but I will rebase master with wild abandon.
copyright © 2001-2010 Emil Mikulic
(contact)
Valid XHTML 1.1



