install bandwidthd
apt-get install bandwidthd
debhelper asks for :
- interface to bind to
- networks to record
install apache2
apt-get install apache2
In /etc/apache2/sites-available/default , add:
Alias /bandwidthd/ "/var/lib/bandwidthd/htdocs/"
<Directory "/var/lib/bandwidthd/htdocs/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 10.8.0.0/24 192.168.0.0/16
</Directory>
And in ports.conf, restrict apache to listen only on the lan interface :
Listen 192.168.25.253:80
That's all, reload apache and go on http://rennes.tld/bandwidthd/