Re: [tanya-jawab] zph patch
He he he he .. dokumentasi lengkapnya jangan lupa diupdate .. nanti saya minta ya .. siapa tau mau nostalgila lagi sama ZPH .. :)) Btw, pindah aliran ? perasaan dulu slacker juga kan ? - Rio.Martin - On Thu, Apr 24, 2008 at 12:11 PM, avudz [EMAIL PROTECTED] wrote: 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 -60592127424012334 4.004 KB 1:7 1484414844 283528 92.06 KB 1:23 -385024 -193536 12334 4.004 KB 1:1 4168 416812334 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 0x 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 0x 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 -61042687176324446 7.906 KB 1:23 -282624 -386048 25960 8.395 KB 1:1 2930 293024446 7.906 KB 1:8 7296 72960 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 -- * eth00.0.0.0/0 0.0.0.0/0 tcp spt:8080 TOS match 0x08 0 0 ACCEPT tcp -- * eth10.0.0.0/00.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 -- 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
Re: [tanya-jawab] zph patch
Pada hari Thu, 24 Apr 2008 17:20:04 +0700 Rio Martin [EMAIL PROTECTED] menulis: He he he he .. dokumentasi lengkapnya jangan lupa diupdate .. nanti saya minta ya .. siapa tau mau nostalgila lagi sama ZPH .. +++ doc ada di website[1] :-) :)) Btw, pindah aliran ? perasaan dulu slacker juga kan ? +++ setelah kenalan ama debi(saherti)an, ga bisa pindah ke lain hati :-) *walau masih ada beberapa server dengan slack* Salam, -avd [1] 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
Re: [tanya-jawab] zph patch
On Thu, Apr 24, 2008 at 05:20:04PM +0700, Rio Martin wrote: He he he he .. dokumentasi lengkapnya jangan lupa diupdate .. nanti saya minta ya .. siapa tau mau nostalgila lagi sama ZPH .. Mas rio, bisa ndak paket yg sdh dimark oleh squid proxy server bisa dilewatkan ke mesin lain seperti mikrotik ? Kasus, di mikrotik dipasang web-proxy transparent dg parent ke squid proxy server dan di mikrotik diterapkan bandwidth control tapi khusus paket2 HIT yg udah dimark oleh squid proxy server akan mendapatkan perlakuan khusus oleh queue tree mikrotik. Singkatnya, bisakah paket yg udah di-TOS oleh mesin A dapat dikenal atau dilewatkan ke mesin lain ? -- Terimakasih sebelumnya. Salam, ~~ Arief Yudhawarman ~~ -- 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
Re: [tanya-jawab] zph patch
Pada hari Fri, 25 Apr 2008 04:19:38 + Arief Yudhawarman [EMAIL PROTECTED] menulis: Mas rio, bisa ndak paket yg sdh dimark oleh squid proxy server bisa dilewatkan ke mesin lain seperti mikrotik ? Kasus, di mikrotik dipasang web-proxy transparent dg parent ke squid proxy server dan di mikrotik diterapkan bandwidth control tapi khusus paket2 HIT yg udah dimark oleh squid proxy server akan mendapatkan perlakuan khusus oleh queue tree mikrotik. Singkatnya, bisakah paket yg udah di-TOS oleh mesin A dapat dikenal atau dilewatkan ke mesin lain ? +++ maaf, bukan mas Rio, harusnya sih bisa pak, udah di coba di mangle di mikrotiknya ? /ip firewall mangle add chain=postrouting action=mark-packet \ new-packet-mark=proxy-hit passthrough=no \ tos=(nomor-tos-nya) comment=Proxy Cache Hits Mark disabled=no Salam, -avd -- 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
[tanya-jawab] zph patch
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 0x 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 0x 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 -61042687176324446 7.906 KB 1:23 -282624 -386048 25960 8.395 KB 1:1 2930 293024446 7.906 KB 1:8 7296 72960 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 -- * eth00.0.0.0/0 0.0.0.0/0 tcp spt:8080 TOS match 0x08 0 0 ACCEPT tcp -- * eth10.0.0.0/00.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
Re: [tanya-jawab] zph patch
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 0x 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 0x 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 -61042687176324446 7.906 KB 1:23 -282624 -386048 25960 8.395 KB 1:1 2930 293024446 7.906 KB 1:8 7296 72960 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 -- * eth00.0.0.0/0 0.0.0.0/0 tcp spt:8080 TOS match 0x08 0 0 ACCEPT tcp -- * eth10.0.0.0/00.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
Re: [tanya-jawab] zph patch
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 -60592127424012334 4.004 KB 1:7 1484414844 283528 92.06 KB 1:23 -385024 -193536 12334 4.004 KB 1:1 4168 416812334 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 0x 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 0x 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 -61042687176324446 7.906 KB 1:23 -282624 -386048 25960 8.395 KB 1:1 2930 293024446 7.906 KB 1:8 7296 72960 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 -- * eth00.0.0.0/0 0.0.0.0/0 tcp spt:8080 TOS match 0x08 0 0 ACCEPT tcp -- * eth10.0.0.0/00.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