Na stronie http:/reliserv.pl/nnd jest pakiet statystyka, są tam w szczegolnosci statystyki HTB zrobilem je wlasnie na taka okolicznosc bo chcialem widziec wewnetrzne życie htb.
wystarczy zainstalowac a potem na stronie:
http://IP_Serwerwa//stat/htb.html patrzec na statystyki gdzie i jakie pakiety leca.
WIEDZA TO PODSTAWA ZARZADZANIA
PS. jesli sciagasz na sewer to niestety pakiety te nie przechodza przez htb.
HTB Kontroluje tylko ruch WYCHODZACY przez interfejs !!
/usr/src/rchtb/read/rc.htb
# INTERFEJS ETH1 (ruch przychodz±cy)
/usr/sbin/rchtb_tc qdisc add dev eth1 root handle 1:0 htb default 3 r2q 1
# Główna klasa dla eth1
/usr/sbin/rchtb_tc class add dev eth1 parent 1:0 classid 1:1 htb rate 90000kbit ceil 90000kbit
# Podział na pasmo dla ł±cza internetowego i resztę
/usr/sbin/rchtb_tc class add dev eth1 parent 1:1 classid 1:2 htb rate 1013kbit ceil 1013kbit
/usr/sbin/rchtb_tc class add dev eth1 parent 1:1 classid 1:3 htb rate 88987kbit ceil 88987kbit prio 9
/usr/sbin/rchtb_tc qdisc add dev eth1 parent 1:3 esfq perturb 10 hash dst
# pasmo priorytetowe dla ICMP, TOS 0x10 (min. delay) oraz wybranego portu 22
/usr/sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:20 htb rate 20kbit ceil 20kbit prio 1 quantum 1500
/usr/sbin/rchtb_tc qdisc add dev eth1 parent 1:20 esfq perturb 10 hash dst
/usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 3 parent 1:0 u32 match ip sport 22 0xffff flowid 1:20
/usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 2 parent 1:0 u32 match ip tos 0x10 0xff flowid 1:20
/usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 2 parent 1:0 u32 match ip protocol 1 0xff flowid 1:20
# Komputer_12
/usr/sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:21 htb rate 20kbit ceil 1013kbit prio 2 quantum 1500
/usr/sbin/rchtb_tc qdisc add dev eth1 parent 1:21 esfq perturb 10 hash dst
/usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.12 flowid 1:21
itd...
# transfer serwer->LAN
/usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 1 parent 1:0 handle 1 fw flowid 1:3
# INTERFEJS ETH0 (ruch wychodz±cy)
/usr/sbin/rchtb_tc qdisc add dev eth0 root handle 2:0 htb default 11 r2q 1
# główna klasa
/usr/sbin/rchtb_tc class add dev eth0 parent 2:0 classid 2:1 htb rate 200kbit ceil 200kbit
# klasa priorytetowa ACK
/usr/sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:10 htb rate 50kbit ceil 50kbit prio 1 quantum 1500
/usr/sbin/rchtb_tc qdisc add dev eth0 parent 2:10 esfq perturb 10 hash dst
/usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 2 u32 match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 1 match u8 0x10 0xff at 33 flowid 2:10 # ACK
# klasa priorytetowa TOS 0x10 oraz ICMP
/usr/sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:9 htb rate 1kbit ceil 149kbit prio 2 quantum 1500
/usr/sbin/rchtb_tc qdisc add dev eth0 parent 2:9 esfq perturb 10 hash dst
/usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip tos 0x10 0xffflowid 2:9 # TOS 0x10
/usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 2 u32 match ip dport 22 0xffff flowid 2:9 # port 22
/usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip protocol 1 0xff flowid 2:9 # ICMP
# ruch serwerowy (pasmo dla go¶ci z zewn±trz)
/usr/sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:11 htb rate 6kbit ceil 149kbit prio 2 quantum 1500
/usr/sbin/rchtb_tc qdisc add dev eth0 parent 2:11 esfq perturb 10 hash dst
/usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 3 handle 1 fw flowid 2:11
# Komputer_12
/usr/sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:12 htb rate 3kbit ceil 149kbit prio 2 quantum 1500
/usr/sbin/rchtb_tc qdisc add dev eth0 parent 2:12 esfq perturb 10 hash dst
/usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 2 fw flowid 2:12