domingo, 20 de janeiro de 2013


bandwidthd                                             


# apt-get install bandwidthd

Na tela azul de configuração selecione a placa eth1 e na segunda tela azul informe a sua rede 192.168.1.0/24


# mkdir /var/www/report_bandwithd

# cd /var/www

# chmod 777 report_bandwithd/

# ln -s /var/lib/bandwidthd/htdocs/ /var/www/report_bandwithd

# ls -la /var/www/report_bandwithd
total 8
drwxrwxrwx  2 root root 4096 2011-07-21 19:35 .
drwxr-xr-x 10 root root 4096 2011-07-21 19:31 ..
lrwxrwxrwx  1 root root   27 2011-07-21 19:35 htdocs -> /var/lib/bandwidthd/htdocs/



Não sei porque, mas  o bandwithd.conf fica armazenado no diretório /usr/share/doc/bandwidthd/bandwidthd.conf e dentro do arquivo bandwidthd.conf


# find / -name "bandwidthd.conf"
/usr/share/doc/bandwidthd/bandwidthd.conf


# cp /usr/share/doc/bandwidthd/bandwidthd.conf /etc/bandwidthd/

# cd /etc/bandwidthd/

# /etc/init.d/bandwidthd stop
Stopping BandwidthD: bandwidthd.

# /etc/init.d/bandwidthd start
Skipping BandwidthD: No devices configured. Please edit /etc/bandwidthd/bandwidthd.conf. ... failed!



Quando instalamos foi informado eth1, porém não gravou, então incluiremos no arquivo de configuração  a linha  ( dev “eth1” )


# nano /etc/bandwidthd/bandwidthd.conf

# Device to listen on
# Bandwidthd listens on the first device it detects
# by default.  Run "bandwidthd -l" for a list of
# devices.
#dev "eth0"
dev "eth1"

ctrl + x + y + enter ( para salvar e sair do arquivo )




Vamos iniciar o serviço.

# /etc/init.d/bandwidthd start
Starting BandwidthD: bandwidthd.

# /etc/init.d/bandwidthd stort

# /etc/init.d/bandwidthd restart




Rede interna:




Rede externa:

http://ewb.no-ip.org:8080/report_bandwithd/htdocs/index.html





------------------------------------------------------------------------------------------------------------------------
===[ Sharing Knowledge ]===   -  Obrigado - Thank you - Danke - Merci - Grazie - Gracias - arigatou gozaimasu
“We make a living by what we get, but we make a life by what we give.”  - Give and you will receive - just share :)
------------------------------------------------------------------------------------------------------------------------

Um comentário: