Pada hari Thu, 24 Apr 2008 06:51:48 +0700 "Rio Martin" <[EMAIL PROTECTED]> menulis:
+++ hehehe.. udah bisa, patch ZPH yang baru ternyata bisa langsung di mark dari tc nya :-) [..SNIP..] tc class add dev eth0 parent 1: classid 1:7 htb rate 1Mbit tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip protocol 0x6 0xff \ match ip tos 0x10 0xff flowid 1:7 [..SNIP..] 1:2 -605921274240 12334 4.004 KB 1:7 14844 14844 283528 92.06 KB 1:23 -385024 -193536 12334 4.004 KB 1:1 4168 4168 12334 4.004 KB di filter 1:7 file yang sudah di cache bisa naik sampai 92 KB walau dilimit 32 kbps. berikut sedikit dokumentasi install ZPH patch di debian : # apt-get source squid # apt-get build-dep squid # wget -c \ http://zph.bratcheda.org/squid-2.6.STABLE2-ToS_Hit_ToS_Preserve.patch # cd squid-2.6.x (tergantung versinya) # patch -p1 < ../squid-2.6.STABLE2-ToS_Hit_ToS_Preserve.patch # dpkg-buildpackage -rfakeroot -uc -b # cd ../ # dpkg -i squid* Salam, -avd @ http://avudz.cc > CMIIW, > > kalau gue liat itu koq handle root nya di angka 8, tapi filternya > dibikin handle 800 ? > gak match donk. > > he he he .. gue dulu pernah nyoba ini vudz, tapi pake > iptables-marking. Berhasil koq. > > - Rio.Martin - > > > On Wed, Apr 23, 2008 at 5:52 PM, avudz <[EMAIL PROTECTED]> wrote: > > Hello, > > > > +++ saya coba jalanin patch zph untuk b/w manager yang di install 1 > > mesin dengan squid proxy. > > > > > > > > hawk:~# grep zph /etc/squid/squid.conf | grep -v "#" > > zph_tos_local 0x8 > > zph_tos_peer 0 > > zph_tos_parent off > > zph_preserve_miss_tos o > > > > hawk:~# squid -v > > Squid Cache: Version 2.6.STABLE5 > > > > +++ percobaan menggunakan 1 pc dengan ip : 192.168.0.8/22 > > > > +++ rule tc : > > > > > > tc qdisc del root dev eth0 > > tc qdisc add dev eth0 root handle 1:0 htb default 1 > > tc class add dev eth0 parent 1:0 classid 1:1 htb rate 10mbit > > tc class add dev eth0 parent 1:1 classid 1:8 htb rate 4096kbit ceil > > 4096kbit tc qdisc add dev eth0 parent 1:8 handle 8: sfq perturb 10 > > tc filter add dev eth0 protocol ip parent 1:0 prio 10 handle > > 800::8 u32 match ip protocol 0x6 0xff match ip sport 80 0xffff > > match ip tos 0x8 0xff flowid 1:8 tc filter add dev eth0 protocol ip > > parent 1:0 prio 10 handle 800::9 u32 match ip protocol 0x6 0xff > > match ip sport 8080 0xffff match ip tos 0x8 0xff flowid 1:8 tc > > class add dev eth0 parent 1:1 classid 1:2 htb rate 8kbit ceil 5mbit > > tc class add dev eth0 parent 1:2 classid 1:23 htb rate 32kbit ceil > > 64kbit tc qdisc add dev eth0 parent 1:23 handle 230: pfifo limit 10 > > tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip > > dst 192.168.0.8 flowid 1:23 > > > > +++ saya coba download file yang sudah ada HIT dalam proxy > > > > 192.168.0.8 - - [15/Nov/2007:12:27:51 +0700] "GET > > http://172.26.12.17/randoffline/srcdad.zip HTTP/1.1" 200 1005541 > > TCP_HIT:NONE > > > > +++ anehnya, tidak ada yang masuk ke dalam class 1:8 ? > > > > 1:2 -610426871763 24446 7.906 KB > > 1:23 -282624 -386048 25960 8.395 KB > > 1:1 2930 2930 24446 7.906 KB > > 1:8 7296 7296 0 0.000 KB > > > > > > +++ padahal kalau diliat TOS dari iptables, statistic utk tos 08 > > makin bertambah > > > > hawk:~# iptables -vnL -t mangle | grep 8080 > > 1672 2487K ACCEPT tcp -- * eth0 0.0.0.0/0 > > 0.0.0.0/0 tcp spt:8080 TOS match 0x08 0 0 ACCEPT > > tcp -- * eth1 0.0.0.0/0 0.0.0.0/0 tcp > > spt:8080 TOS match 0x08 > > > > > > ada ide ? > > > > > > Wassalam, > > > > -avd @ http://avudz.cc > > > > -- > > FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab > > Unsubscribe: kirim email ke [EMAIL PROTECTED] > > Arsip dan info milis selengkapnya di http://linux.or.id/milis > > > > > -- FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab Unsubscribe: kirim email ke [EMAIL PROTECTED] Arsip dan info milis selengkapnya di http://linux.or.id/milis
