Tambahkan baris berikut di squid.conf zph_mode tos zph_local 0x30 zph_parent 0 zph_option 136 Restart konfigurasi squid # squid -k reconfigure KONFIGURASI HTB-TOOLS Pertama generate konfigurasi HTB dengan q_parser, dengan perintah: # q_parser [interface yang digunakan] 10000 10000 [lokasi file/eth1-qos.cfg] > [direktori tujuan]/eth1-qos.sh Contoh: # q_parser eth1 10000 10000 /etc/htb/eth1-qos.cfg > /home/admin/eth1-qos.sh Selanjutnya buka direktori tujuan: # cd /home/admin Selanjutnya buka file eth1-qos.sh # vi eth1-qos.sh Kemudian cari baris berikut: $TC qdisc add dev $DEV parent 1:0x10 handle 0x10: pfifo limit 5 Tambahkan baris berikut di bawahnya: $TC class add dev $DEV parent 1:1 classid 1:0x15 htb rate 10Mbit $TC filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip protocol 0x6 0xff match ip tos 0x30 0xff flowid 1:15 Sehingga menjadi: $TC qdisc add dev $DEV parent 1:0x10 handle 0x10: pfifo limit 5 $TC class add dev $DEV parent 1:1 classid 1:0x15 htb rate 10Mbit $TC filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip protocol 0x6 0xff match ip tos 0x30 0xff flowid 1:15 Setelah menyimpan file eth1-qos.sh, selanjutnya buat file tersebut dapat dieksekusi oleh sistem: # chmod +x eth1-qos.sh Kemudian eksekusi file tersebut dengan perintah: # ./eth1-qos.sh