Ja mam taki pomysl moze ktos zapoda jeden a dobrze = popracujmy nad jednym a dobrym gotowcem wlozmy gdzies go na stronke i = miejmy juz to wszystko z glowy ?
---- Wiadomość Oryginalna ----
Od: Grzegorz Szapiel <gszap@stnet.pl>
Do: slacklist@slackware.com.pl
Data: Sun, 13 Jul 2003 20:42:07 +0200
Temat: [slacklist] HTB
>Witam!
>Wiem ze temat HTB byl wielokrotnie walkowany. =
Przejrzalem mnostwo
>zrodel dotyczacych tego ale cos u mnie nie dziala =
jak nalezy.
>Mam Slackware 8.0, kernel 2.4.21, wkompilowalem =
wszystkie potrzene
>rzeczy, transfer lacza upload 64 kbit, pentium =
200, 128 RAM.
>Problem jest tej natury, ze na serwerze mam =
sendmaila do obslugi kilku
>kont. Jak ludzie wysylaja wieksze listy, to w =
trakcie przekazywania
>tego listu do innego serwera przez sendmaila =
zapycha mi lacze i nie
>moge nic sciagac (stron ww itp). Jak juz =
przejdzie ten plik to dziala
>ok. Wyczytalem gdzies na necie, ze trzeba =
ograniczyc transfer
>wychodzacy i powinno dzialac dobrze. Wiec =
postanowilem uzyc HTB.
>Moj skrypt wyglada tak:
>
>tc qdisc del root dev eth0
>tc qdisc add dev eth0 root handle 1:0 htb default =
40
>tc class add dev eth0 parent 1:0 classid 1:1 htb =
rate 64kbit burst 6k
>
># podzial calego pasma: smtp, pop3, inne
>tc class add dev eth0 parent 1:1 classid 1:20 htb =
rate 20kbit ceil 56kbit burst 6k prio 2
>tc class add dev eth0 parent 1:1 classid 1:30 htb =
rate 20kbit ceil 56kbit burst 6k prio 2
>tc class add dev eth0 parent 1:1 classid 1:40 htb =
rate 30kbit ceil 64kbit burst 6k prio 1
>
># wszystkim po rowno
>tc qdisc add dev eth0 parent 1:20 handle 20: sfq =
perturb 5 (probowalem
>rozne ustawienia, nic nie pomoglo)
>tc qdisc add dev eth0 parent 1:30 handle 30: sfq =
perturb 5
>tc qdisc add dev eth0 parent 1:40 handle 40: sfq =
perturb 5
>
># filtry: smtp, pop3, reszta
>tc filter add dev eth0 parent 1:0 protocol ip =
prio 2 u32 match ip dport 25 0xffff flowid 1:20
>tc filter add dev eth0 parent 1:0 protocol ip u32 =
match ip sport 110 0xffff flowid 1:30
>
>#ten wpis z pliku wshaper.htb ze strony http://lartc.org/wondershaper/
>tc filter add dev eth0 parent 1:0 protocol ip =
prio 1 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 =
0x0000 0xf
>
>Wysylam testowo jakis wiekszy list i w trakcie =
wysylki z serwera do
>innego serwera podgladam przy uzyciu snifit, nie =
ma zadnego innego
>transferu. Probuje odpalic stronke jakakolwiek i =
>moze znalezc tej strony. Koczy sie transfer listu =
>normy.
>Po wydaniu komendy: tc -s -d class show dev eth0 =
widze takie wpisy:
>
>class htb 1:1 root rate 64Kbit ceil 64Kbit burst =
6Kb/8 mpu 0b cburst 1680b/8 mpu 0b level 7
> Sent 1057664 bytes 865 pkts (dropped 0, =
overlimits 0)
> rate 3552bps 3pps
> lended: 224 borrowed: 0 giants: 0
> tokens: 320194 ctokens: -126107
>
>class htb 1:20 parent 1:1 leaf 20: prio 2 quantum =
1000 rate 20Kbit ceil 56Kbit burst 6Kb/8 mpu 0b cburst 1670b/8 mpu 0b =
level 0
> Sent 1040141 bytes 693 pkts (dropped 0, =
overlimits 0)
> rate 3496bps 2pps
> lended: 469 borrowed: 224 giants: 0
> tokens: -1531904 ctokens: -146435
>
>class htb 1:30 parent 1:1 leaf 30: prio 2 quantum =
1000 rate 20Kbit ceil 56Kbit burst 6Kb/8 mpu 0b cburst 1670b/8 mpu 0b =
level 0
> Sent 0 bytes 0 pkts (dropped 0, overlimits =
0)
> lended: 0 borrowed: 0 giants: 0
> tokens: 1966080 ctokens: 190971
>
>class htb 1:40 parent 1:1 leaf 40: prio 1 quantum =
1000 rate 30Kbit ceil 64Kbit burst 6Kb/8 mpu 0b cburst 1680b/8 mpu 0b =
level 0
> Sent 17523 bytes 172 pkts (dropped 0, overlimits =
0)
> rate 111bps 1pps
> lended: 172 borrowed: 0 giants: 0
> tokens: 1300480 ctokens: 163300
>
>Mam wrazenie ze nie ogranicza transferu. (dropped =
0) jezeli jestem w
>bledzie to porawcie. Co moze byc nie tak. =
Pomozcie mi rozwiazac ten problem.
>
>
>--
>Z powazaniem,
> Grzegorz =
Szapiel =
&=
nbsp; mailto:gszap@stnet.pl
>
>
>
Fajne nie :)))
Received on Sat Feb 21 03:40:57 2004