With HTB.INIT the things are more simple. This script has 2 pros: simple rules but powerfull and organizated your connections.

After reading the README(inside the script file) I created 5 files on /etc/sysconfig/htb: eth0, eth0-2.root, eth0-2:10.www, eth0-2:20.extra, eth0-2:30.lan

eth0 # My only net card on the gateway my pc
Code:
DEFAULT=30
R2Q=10
DCACHE=no
eth0-2.root # Max Speed of the net card
Code:
RATE=2Mbps
BURST=8kb
eth0-2:10.www #Class 2:10 WWW Services: dns, browser, mail, squid....
Code:
RATE=20kbps
CEIL=32kbps
LEAF=sfq
PRIO=1

RULE=*:80
RULE=*:210
RULE=*:591
RULE=*:777
RULE=*:3128
RULE=*:443
RULE=*:563
RULE=*:110
RULE=*:53
RULE=*:3128
eth0-2:20.extra # Services extra WWW: gift (KaZaa, OPenFt, Gnutella, Ares), Torrents
Code:
RATE=10kbps
CEIL=32kbps
BURST=2kb
LEAF=sfq
PRIO=3

RULE=*:1214
RULE=*:1215
RULE=*:1216
RULE=*:6346
RULE=*:59049
RULE=*:49166
eth0-2:30.lan # Communication between my pc and the other for file exchange
Code:
RATE=1Mbps
CEIL=2Mbps
LEAF=sfq
PRIO=5

RULE=*:137
RULE=*:138
RULE=*:139
RULE=*:631

With the command tc -s -d class show dev eth0 it shows how the bandwidth of the netcard is used. only 256kbps for internet conecctions and 2 Mbps for Lan connections.
Code:
class htb 1:10 parent 1:2 leaf 10: prio 1 quantum 2000 rate 160000bit ceil 256000bit burst 1799b/8 mpu 0b overhead 0b cburst 1919b/8 mpu 0b overhead 0b level 0 
 Sent 287852 bytes 1417 pkts (dropped 0, overlimits 0) 
 lended: 1404 borrowed: 13 giants: 0
 tokens: 71107 ctokens: 47515

class htb 1:2 root rate 16000Kbit ceil 16000Kbit burst 8Kb/8 mpu 0b overhead 0b cburst 21598b/8 mpu 0b overhead 0b level 7 
 Sent 1551826194 bytes 1080417 pkts (dropped 0, overlimits 0) 
 rate 6673Kbit 582pps 
 lended: 488052 borrowed: 0 giants: 0
 tokens: 3329 ctokens: 8821

class htb 1:20 parent 1:2 leaf 20: prio 3 quantum 1000 rate 80000bit ceil 256000bit burst 2Kb/8 mpu 0b overhead 0b cburst 1919b/8 mpu 0b overhead 0b level 0 
 Sent 100634 bytes 754 pkts (dropped 0, overlimits 0) 
 rate 368bit 
 lended: 727 borrowed: 27 giants: 0
 tokens: 162530 ctokens: 47515

class htb 1:30 parent 1:2 leaf 30: prio 5 quantum 100000 rate 8000Kbit ceil 16000Kbit burst 11599b/8 mpu 0b overhead 0b cburst 21598b/8 mpu 0b overhead 0b level 0 
 Sent 1551437708 bytes 1078246 pkts (dropped 0, overlimits 0) 
 rate 6448Kbit 562pps 
 lended: 590234 borrowed: 488012 giants: 0
 tokens: 9470 ctokens: 8831
I need more info from other services like the ports that use and all will be setup correctly...I hope this is good info.