Jumat, 22 Juni 2012

Install Bandwidthd di ClearOS 6

cara install aplikasi untuk monitoring trafic bandwidth di ClearOS 6

Code: [Select]
% yum install gcc libpng libpng-devel gd gd-devel libtool freetype-devel fontconfig-devel libjpeg-devel libpcap libpcap-devel
% wget https://www.dropbox.com/s/adh7aamiayfjgwv/bandwidthd-2.0.1.tgz
% tar -zxvf bandwidthd-2.0.1.tgz
% cd bandwidthd-2.0.1
% ./configure
% make
% make install

- meluncur ke direktori /usr/local/bandwidthd/etc
- buka dan edit file bandwidthd.conf
Code: [Select]
# Subnets to collect statistics on.  Traffic that
# matches none of these subnets will be ignored.
# Syntax is either IP Subnet Mask or CIDR
subnet 10.0.0.0 255.0.0.0 <- sesuaikan dengan subnet jaringan kita -|
subnet 192.168.0.0/16 <- sesuaikan dengan subnet jaringan kita  |-> bisa juga di sisakan 1 ip lan clearos
subnet 172.16.0.0/12 <- sesuaikan dengan subnet jaringan kita -|

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

(sampai di sini bandwidthd sudah bisa dijalankan)
jalankan bandwithd dengan perintah
# /usr/local/bandwidthd/bandwidthd

- buka file httpd.conf yg berada di direktori /etc/httpd/conf
  tambahkan konfigurasi berikut ke baris paling bawah
Code: [Select]
Alias /bandwidthd "/usr/local/bandwidthd/htdocs"
<Directory "/usr/local/bandwidthd/htdocs">
Order Allow,Deny
Allow from All
</Directory>

- sekarang test di browser http://ip-lan/bandwidthd/

- agar bandwidthd berjalan setiap kali linux kita booting, masukan baris berikut ke /etc/rc.local
Code: [Select]
/usr/local/bandwidthd/bandwidthd
 
sample:
http://www.facebook.com/photo.php?fbid=430995850261894&set=o.275932249164333&type=1&theater

Sumber:
http://www.google.co.id
http://www.ravisaive.in/2011/08/how-to-install-bandwidthd-to-monitor.html

Tidak ada komentar:

Posting Komentar