*HTB tools untuk melakukan management bandwidth*
langsung aja yach...
unduh filenya HTB-tools nya di sini
or pilihannya disini
saya memilih file HTB-tools 0.3.0a-i486-1.tgz tersebut karena lengkap...
kalau sudah extract file nya
[root@rm2 support]# tar zxvf HTB-tools-0.3.0a-i486-1.tgz -C /usr/local/src
./
etc/
etc/htb/
etc/htb/eth1-qos.cfg.new
etc/htb/eth0-qos.cfg.new
etc/rc.d/
etc/rc.d/rc.htb.new
usr/
usr/doc/
usr/doc/HTB-tools-0.3.0a/
usr/doc/HTB-tools-0.3.0a/copying
usr/doc/HTB-tools-0.3.0a/credits
usr/doc/HTB-tools-0.3.0a/HowTo/
usr/doc/HTB-tools-0.3.0a/HowTo/HTB-tools-howto.txt
usr/doc/HTB-tools-0.3.0a/README-en
usr/doc/HTB-tools-0.3.0a/README
usr/doc/HTB-tools-0.3.0a/README-htbweb-en
usr/doc/HTB-tools-0.3.0a/README-htbweb-ro
usr/doc/HTB-tools-0.3.0a/complex.cfg
usr/doc/HTB-tools-0.3.0a/README-inst
usr/doc/HTB-tools-0.3.0a/INSTALL
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/todo
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/copying
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/README.en
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/htbgen
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/thanks
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/authors
usr/doc/HTB-tools-0.3.0a/htbgen-0.25/ChangeLog
usr/doc/HTB-tools-0.3.0a/Changelog
usr/doc/HTB-tools-0.3.0a/simple.cfg
usr/doc/HTB-tools-0.3.0a/README.cfg.en
usr/doc/HTB-tools-0.3.0a/README.cfg.ro
sbin/
sbin/htb
sbin/q_checkcfg
sbin/htbgen
sbin/q_parser
sbin/q_show
install/
install/doinst.sh
install/slack-desc
masuk kedalam /usr/local/src/sbin
[root@rm2 support]# cd /usr/local/src/sbin
[root@rm2 sbin]#
pindahkan semua isi dari dalam folder sbin ke /sbin
[root@rm2 sbin]# mv htb /sbin
[root@rm2 sbin]# mv htbgen /sbin
[root@rm2 sbin]# mv q_checkcfg /sbin
[root@rm2 sbin]# mv q_parser /sbin
[root@rm2 sbin]# mv q_show /sbin
masuk kedalam folder etc di dalam /usr/local/src
[root@rm2 sbin]# cd /usr/local/src/etc
pindahkan file eth0-qos.cfg.new dan eth1-qos.cfg di dalam folder htb ke /etc/htb/
[root@rm2 etc]# mv htb/eth0-qos.cfg.new /etc/htb/eth0-qos.cfg
[root@rm2 etc]# mv htb/eth1-qos.cfg.new /etc/htb/eth1-qos.cfg
[root@rm2 etc]#
masuk ke dalam folder rc.d
[root@rm2 etc]# cd /usr/local/src/etc/rc.d
masukkan file rc.htb new ke folder /etc/init.d dan ganti jadi rc.htb
[root@rm2 rc.d]# mv rc.htb.new /etc/init.d/rc.htb
ubahlah akses file rc.htb nya
[root@rm2 rc.d]# chmod 755 /etc/init.d/rc.htb
sudah itu konfigurasi file eth1-qos.cfg dan eth0-qos.cfg sesuai kebutuhan perusahaan tempat anda....
[root@rm2 rc.d]# vi /etc/htb/eth0-qos.cfg
################
# eth0-qos.cfg #
################
# for how to configure and use see docs/HowTo/
class class_1 {
bandwidth 512;
limit 256;
burst 2;
priority 1;
client client_1 {
bandwidth 48;
limit 64;
burst 2;
priority 1;
dst{
172.16.1.1/24;
};
};
client client_2 {
bandwidth 48;
limit 64;
burst 2;
priority 1;
dst{
172.16.1.2/24;
};
};
client client_3 {
bandwidth 48;
limit 64;
burst 2;
priority 1;
dst{
172.16.1.3/24;
};
};
client client_4 {
bandwidth 48;
limit 64;
burst 2;
priority 1;
dst{
172.16.1.4/24;
172.16.1.5/24;
172.16.1.6/24;
};
};
};
class default { bandwidth 8; };
simpan wq!
:wq!
lakukan generate file tersebut
[root@rm2 rc.d]# q_checkcfg /etc/htb/eth1-qos.cfg
Default bandwidth: 8
Class class_1, CIR: 192, MIR: 256
** 4 clients, CIR2: 192, MIR2: 256
1 classes; CIR / MIR = 192 / 256; CIR2 / MIR2 = 192 / 256
begitu juga file eth0-qos.cfg nya....
bila sudah jalankan htb nya'
[root@rm2 rc.d]# /etc/init.d/rc.htb start
Starting HTB-tools on eth0 ...
Checking the config file ...OK
Checking kernel support for HTB: present.
HTB-tools was successfuly started on eth0.
Starting HTB-tools on eth1 ...
Checking the config file ...OK
Checking kernel support for HTB: present.
HTB-tools was successfuly started on eth1.
[root@rm2 rc.d]#
untuk melihat trafficnya bisa menggunakan perintah /etc/rc.d/rc.htb show_eth0/eth1
class_1 0.00 0 192 256
_DEFAULT_ 0.00 0 8 8
class_1 0.00 0 192 256
_DEFAULT_ 0.64 0 8 8
class_1 0.00 0 192 256
_DEFAULT_ 1.28 0 8 8
class_1 0.00 0 192 256
_DEFAULT_ 1.92 1 8 8
whew..akhirnya...bisa kelar juga...secara melakukan perbandingan tutorial yg ada di google masih banyak yg error dan konfigurasinya yg beda2....tapi akhirnya ketemu jg permasalahannya...
sekalian dibawah ini saya instal tampilan web interfacesnya dari HTB-tools unutk memonitoring melalui web interfaces....
*INSTALLING WEBHTB*
1. Download filenya disini
2. pindahkan filenya kedalam folder html/apache biasa di centos or Redhat berada di /var/ www/html atau varian lainnya /var/www/htdocs
3. lakukan extract tar jxvf WebHTB_..bz2
# tar jxvf Webhtb-tools_...bz2
4. pindahkan folder webhtb kedalam /var/ww/html/
# mv webhtb /var/www/html/
4. rubah ownernya webhtb = chown -R apache.apache webhtb
jalankan service mysql dan apache nya....
5. edit /etc/sudoers berikan tanda # di baris comment "Defaults requiretty"
# vi /etc/sudoers
rubahlah aksesnya # chown root.root /usr/bin/sudo
# chmod 4775 /usr/bin/sudo
6. Buka browser, masuk ke alamat http://ip-server/webhtb/setup/index.php
saat halaman web tampil login menggunakan user mysql atau bila tidak membuat user bisa menggunakan root defaultnya, disaat login ada perintah untuk menghapus /setup folder didalam /var/www/html/webhtb/ segeralah di hapus...
# rmdir -R /var/www/html/setup
contoh tampilan web interfacesnya...