Установка bandwidthd (статистика) Печать
18.10.11 09:22

Установка и настройка bandwidthd

bandwidthd
bandwidthd1



Добавим debian репозитарии в apt:

Code:
nano /etc/apt/sources.list

Добавим текс:

Code:
deb ht tp://ftp.de bian.org/debian/ lenny main contrib non-free
deb-src http://ftp.deb ian.org/debian/ lenny main contrib non-free

Обновим sources и установим bandwidthd

Code:
apt-get update
apt-get install bandwidthd

Модифицируем конфиг для просмотра http графиков

Code:
nano /etc/bandwidthd/bandwidthd.conf

Закоментируйте лишние подсети (subnet) впишите по аналогии свои подсети

Раскоментируйте путь к директории bandwidthd

Code:
subnet 91.62.186.0/28
subnet 192.168.0.0/24
htdocs_dir "/var/lib/bandwidthd/htdocs"

Отредактируйте конфигурационный файл apache

Code:
nano /etc/apache2/sites-available/uvm

Добавьте:

Code:
<VirtualHost *:80>
Include /etc/apache2/untangle-conf.d/*
Include /etc/apache2/untangle-unrestricted-conf.d/*
Alias /bandwidth "/var/lib/bandwidthd/htdocs"
<Directory "/var/lib/bandwidthd/htdocs">
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>

Рестарт bandwidthd daemon и apache

Code:
/etc/init.d/bandwidthd restart
/etc/init.d/apache2 reload

Зайдем на роутер для просмотра статистики

Code:
http://192.168.0.1/bandwidth


P.S. Мне не пришлось редактировать файл апача ( /etc/apache2/sites-available/uvm )

мой Untangle был модифицирован ранее http://thin.kiev.ua/index.php?option=com_content&view=article&id=236:untangle1&catid=61:untangle-new&Itemid=81

Я сделал симлинк в директории /var/www

cd /var/www

ln -s /var/lib/bandwidthd/htdocs bandwidth

 

 

источник: http://forums.untangle.com/reports/15594-bandwidth-usage-2.html

ссылка на статью: http://thin.kiev.ua/index.php?option=com_content&view=article&id=430:bandwidthd&catid=61:untangle-new&Itemid=81

{jcomments on}

Последнее обновление 18.10.11 09:48