Tuesday 30 August 2016

centos 6 - bandwidthd

centos 6 - bandwidthd:
1. yum install gcc cpp glibc glibc-devel gcc-c++
2. yum install libpcap libpcap-devel libpng libpng-devel gd gd-devel
3. yum install httpd mod_ssl
4. service httpd start
5. chkconfig httpd on
6. wget http://jaist.dl.sourceforge.net/project/bandwidthd/bandwidthd/bandwidthd%202.0.1/bandwidthd-2.0.1.tgz
7. tar -zxvf bandwidthd-2.0.1.tgz
8. cd bandwidthd-2.0.1
9. ./configure
10. make;make install
11. ll /usr/local/bandwidthd
12. vim /usr/local/bandwidthd/etc/bandwidthd.conf
subnet 10.200.10.0/24
dev "eth0"
output_cdf true
recover_cdf true
13. cd /var/www/html/
14. ln -s /usr/local/bandwidthd/htdocs bandwidthd
15. cd /usr/local/bandwidthd
16. ./bandwidthd
17. service httpd restart
18. vim /etc/rc.local
/usr/local/bandwidthd/bandwidthd
19. http://IP/bandwidthd