Anda di halaman 1dari 1

install htb-gen 0.

9 untuk melimit bandwidth

Htb-gen digunakan untuk melimit bandwith sekaligus membagi bandwith ke klien. Untuk lebih
menghemat bandwith dan mendapatkan hasil yang maksimal, alangkah baiknya limiter/htb-gen di
install pada server klien. Distro yang saya gunakan disini adalah slackware 10.2 dan berikut ini adalah
cara menginstalnya sekaligus konfigurasinya:

1. download htb-gen
root@slackids:~# wget http://www.praga.org.ar/dev/htb-gen/packages/htb-gen-0.9b-1.tar.gz
2. Tarball htb-gen-0.9b-1.tar.gz
root@slackids:~# tar xvfz htb-gen-0.9b-1.tar.gz
3. Masuk ke direktorinya htb-gen
root@slackids:~# cd htb-gen
4. Copykan file htb-gen ke direktori /usr/local/bin
root@slackids:~/htb-gen# cp htb-gen /usr/local/bin
5. Buat direktori htb-gen di direktori /etc
root@slackids:~/htb-gen# mkdir /etc/htb-gen/
6. Copy file konfigurasi dan rates nya ke direktori /etc/htb-gen/
root@slackids:~/htb-gen# cp htb-gen.conf /etc/htb-gen/
root@slackids:~/htb-gen# cp htb-gen-rates.conf /etc/htb-gen/
7. Edit file htb-gen.conf dengan pico atau editor apa saja
root@slackids:~/htb-gen# pico /etc/htb-gen/htb-gen.conf
8. Tambahkan /usr di baris ke 2,3 dan 4 dari bawah
iptables_command=”/usr/sbin/iptables”
iptables_save_command=”/usr/sbin/iptables-save”
iptables_restore_command=”/usr/sbin/iptables-restore”
Kemudian simpan file htb-gen.conf tersebut.
9. Edit file htb-gen-rates.conf dengan pico atau editor apa saja
root@slackids:~/htb-gen# pico /etc/htb-gen/htb-gen-rates.conf
10. Ubah konfigurasi seperti di bawah ini
#Four hosts from same network each one with a different ceil
# rate is in 0 so it means that it will be automagickly calculated
# otpions labeled with numbers so look numbres above to undestrand wich options your are reading

#[1] [2] [3] [4] [5] [6] [7] [8] [9][10][11][12][13][14]

192.168.10.12 0 512 0 256 eth1 eth0 70 0 0 0 0 1 client1


192.168.10.13 0 512 0 256 eth1 eth0 70 0 0 0 0 1 client2
192.168.10.14 0 512 0 256 eth1 eth0 70 0 0 0 0 1 client3
192.168.10.15 0 768 0 256 eth1 eth0 100 0 0 0 0 1 client4
192.168.10.16 0 768 0 256 eth1 eth0 100 0 0 0 0 1 client5
192.168.10.13 512 768 256 512 eth1 eth0 100 0 0 0 0 1 client6

# all other hosts default


192.168.10.0/24 0 128 0 128 eth1 eth0 70 0 0 0 0 1 network_default
Keterangan: Ip 192.168.10.0/24adalah Ip eth1

11. Simpan file tersebut dan jalankan htb-gen nya, untuk menjalankan htb-gen lakukan perintah ini htb-
gen all

Anda mungkin juga menyukai