-
HTB.INIT
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.
Similar Threads
-
By antsu in forum General Support
Replies: 0
Last Post: 05-08-2008, 08:33 PM
-
By MichaeW in forum Hardware & Booting
Replies: 0
Last Post: 11-20-2007, 04:17 AM
-
By Ueberbach in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 08-01-2006, 08:44 AM
-
By svenaron in forum Customising & Remastering
Replies: 1
Last Post: 08-23-2005, 09:18 PM
-
By bongski55 in forum General Support
Replies: 0
Last Post: 05-21-2004, 08:30 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

π Juniper Networks EX2300-C-12P 12Γ Gigabit PoE+ β’ 2Γ 10G SFP+ Compact Switch β‘
$109.99

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P
$149.99

JUNIPER NETWORKS MIST AI AP63-US HIGH PERFORMANCE OUTDOOR ACCESS POINT - WHITE
$59.99

Juniper Networks EX2300-48P 48-Port PoE Gigabit Switch (Renewed)
$361.91

Juniper Networks SRX4100 AC Service Gateway Appliance 8 Port 10G SFP+ Dual PSU
$1000.00

Juniper MX2K-MPC6E MPC6E 3D 480G 2 Slot Modular Port Concentrator Used Preowned
$250.00

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch
$79.99

Juniper AP47 Mist Wi-Fi 7 802.11 6GHz 4x4 Wireless Access Point (NEW)
$999.99

Juniper Networks SRX220 8-Port Gigabit Layer 3 Managed Rackmount RJ-45 USB
$285.00

Juniper EX2300 Unclaimed 12-Port Gigabit Switch EX2300-C-12T
$249.99