[HOT POOLLING]Apakah Youtube Error Lagi ?

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Re: [HOT POOLLING]Apakah Youtube Error Lagi ?

Post by madara07 » 23 Apr 2013, 13:12

pluto01 wrote:@ madara07
Bingungnya dibagian mananya yach gan ?
dan sedikit info itu dipejwan bukan step by step install lusca namun cara untuk Recompile.

Dan harusnya untuk install lusca ga ribet2 amat ko yg agak membutuhkan pengalaman dan pengetahuan sedikit yaitu mengoptimalkannya bagaimana agar siproxy dapat bekerja sesuai kebutuhan kita dengan seoptimal mungkin..
hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 13:22

pluto01 wrote:@ madara07
Bingungnya dibagian mananya yach gan ?
dan sedikit info itu dipejwan bukan step by step install lusca namun cara untuk Recompile.

Dan harusnya untuk install lusca ga ribet2 amat ko yg agak membutuhkan pengalaman dan pengetahuan sedikit yaitu mengoptimalkannya bagaimana agar siproxy dapat bekerja sesuai kebutuhan kita dengan seoptimal mungkin..

sebe;umnya sya mengikutin cara dari

http://warnet-jaya.blogspot.com/2012/12 ... buntu.html

udah kelar dah bisa running tuh proxy, tpi hnaya cache image saja yg sukses bisa hit, sedangkan youtube tidak pernah hit bro


User avatar
zagi
Posts: 11
Joined: 03 Apr 2013, 00:45
Location: indonesia
Contact:

Post by zagi » 23 Apr 2013, 13:30

mas setelah menjalankan tut diatas cara pasang squid config nya gmana mas dah nanggung ne 4 malam lum bisa menemukan hasil juga tolong pencerahanaya mas @syafudin jw ??


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 13:36

300784 wrote:mas setelah menjalankan tut diatas cara pasang squid config nya gmana mas dah nanggung ne 4 malam lum bisa menemukan hasil juga tolong pencerahanaya mas @syafudin jw ??

udah running bro squidnya ???


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 23 Apr 2013, 13:54

[/quote]

hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya [/quote]

berarti squidnya sdh running donk ? lalu step by stepnya install dari awalnya untuk apa lg ?
kl sdh running squidnya tinggal optimalkan confignya coba agan tambahkan 1 per satu dlu sampai ketemu yg agan inginkan atau agan juga bisa test confignya OM Pragola_Pati di http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38 dan diperhatikan options2 nya.
Jika terkendala diinfo kendalanya dmn dan apa error/log yg muncul.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:05

pluto01 wrote:
hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya [/quote]

berarti squidnya sdh running donk ? lalu step by stepnya install dari awalnya untuk apa lg ?
kl sdh running squidnya tinggal optimalkan confignya coba agan tambahkan 1 per satu dlu sampai ketemu yg agan inginkan atau agan juga bisa test confignya OM Pragola_Pati di http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38 dan diperhatikan options2 nya.
Jika terkendala diinfo kendalanya dmn dan apa error/log yg muncul. [/quote]

bener sekalai bro pluttoooooo, udah running, cuma masalahnya dah berhari2 bro pluto q gk pernah bnisa cache dynamic contetnt seperti youtube, selama ini q sih mengoptimalkannya dengan cara gonta ganti isi DARI SQUID.CONF & strourl.pl-nya doang, apa salah bro plutto, apa ada hal laen, itu yg sya maksud kan bro plutoooo


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:07

pluto01 wrote:
hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya [/quote]

berarti squidnya sdh running donk ? lalu step by stepnya install dari awalnya untuk apa lg ?
kl sdh running squidnya tinggal optimalkan confignya coba agan tambahkan 1 per satu dlu sampai ketemu yg agan inginkan atau agan juga bisa test confignya OM Pragola_Pati di http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38 dan diperhatikan options2 nya.
Jika terkendala diinfo kendalanya dmn dan apa error/log yg muncul. [/quote]

bener sekalai bro pluttoooooo, udah running, cuma masalahnya dah berhari2 bro pluto q gk pernah bnisa cache dynamic contetnt seperti youtube, selama ini q sih mengoptimalkannya dengan cara gonta ganti isi DARI SQUID.CONF & strourl.pl-nya doang, apa salah bro plutto, apa ada hal laen, itu yg sya maksud kan bro plutoooo

sya bingung di tutor recompile thread ini yg masalah recompile dari bro pragola itu


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:09

pluto01 wrote:
hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya [/quote]

berarti squidnya sdh running donk ? lalu step by stepnya install dari awalnya untuk apa lg ?
kl sdh running squidnya tinggal optimalkan confignya coba agan tambahkan 1 per satu dlu sampai ketemu yg agan inginkan atau agan juga bisa test confignya OM Pragola_Pati di http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38 dan diperhatikan options2 nya.
Jika terkendala diinfo kendalanya dmn dan apa error/log yg muncul. [/quote]


apa yg harus sya ganti ???? squid.conf dan strourl-nya yg ada disini kh??????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:16

pluto01 wrote:
hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya [/quote]

berarti squidnya sdh running donk ? lalu step by stepnya install dari awalnya untuk apa lg ?
kl sdh running squidnya tinggal optimalkan confignya coba agan tambahkan 1 per satu dlu sampai ketemu yg agan inginkan atau agan juga bisa test confignya OM Pragola_Pati di http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38 dan diperhatikan options2 nya.
Jika terkendala diinfo kendalanya dmn dan apa error/log yg muncul. [/quote]

saya ngikutin squid.conf dan storeurl dari bro juldiantan, tetap running squidnya, tapi gk bisa HIT cache youtubenya bro

salah dmananya y

Hi All...
Saya gelar smuanya ya.


INSTALASI Ubuntu
Klik untuk menampilkan...


INSTALASI LUSCA
===============
Cek CHOST dan CFLAGS sesuai dengan CPU
- cat /proc/cpuinfo
AMD 64bit http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD
Intel http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel

Update Ubuntu
- apt-get -y update && apt-get -y upgrade

Install paket yang dibutuhkan
- apt-get -y install squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 acpid unzip libfile-readbackwards-perl

Download LUSCA
- wget http://juldian.web.id/lusca/LUSCA_HEAD-r14809.tar.gz
- extract: tar -xvzf LUSCA_HEAD-r14809.tar.gz
- pindah ke dir lusca: cd cd LUSCA_HEAD-r14809
- download patch lusca: http://juldian.web.id/lusca/LUSCA_HEAD- ... CTH.tar.gz
- extract: tar -zxvf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
- jalankan patchnya:
patch -p0 < 3xx-loop.diff
patch -p0 < async-issue.diff
patch -p0 < http-gzip.diff
patch -p0 < ignore-must-revalidate.diff
patch -p0 < improve-nn-parser.diff
patch -p0 < lusca-vary.diff
patch -p0 < segmentation-fault.diff

Configure & Install Lusca
=========================
./bootstrap.sh
make distclean
CHOST=�i686-pc-Linux-gnu� \
CFLAGS=�-march=pentium-m -O2 -pipe -fomit-frame-pointer� \
CHOST="x86_64-pc-Linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-Linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --enable-referer-log --with-maxfd=65536
make && make install

squid init
Klik untuk menampilkan...


squid.conf
Klik untuk menampilkan...



refresh pattern
Klik untuk menampilkan...



storeurl.pl
Klik untuk menampilkan...



Cmd Lusca
=========
squid -f /etc/squid/squid.conf -z
sudo /etc/init.d/squid restart
squid -NDd1
tail -f /cache1/access.log | ccze
update-rc.d squid defaults
netstat -pln |grep squid


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 23 Apr 2013, 14:23

Iya bisa dicoba gan pakai stourlnya OM SJW (ane juga pakai yg itu aman2 saja) untuk squid.confnya bisa dicoba yg punya OM Pragola_Pati dan FYI jgn lupa dibaca dan diperhatikan options2nya dan disesuaikan.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:27

pluto01 wrote:Iya bisa dicoba gan pakai stourlnya OM SJW (ane juga pakai yg itu aman2 saja) untuk squid.confnya bisa dicoba yg punya OM Pragola_Pati dan FYI jgn lupa dibaca dan diperhatikan options2nya dan disesuaikan.
yg mana bro pluttto punya om sjw storeurlnya ??? dan yg mana squid.conf punya bro pragola pati ????

yg ada cuma tahapan recompile

truz intihnya

perlu pasang aplikais tambhan gk untuk memakai squid.conf dan storeurl punya om sjw da bro pragola ????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:30

madara07 wrote:
pluto01 wrote:Iya bisa dicoba gan pakai stourlnya OM SJW (ane juga pakai yg itu aman2 saja) untuk squid.confnya bisa dicoba yg punya OM Pragola_Pati dan FYI jgn lupa dibaca dan diperhatikan options2nya dan disesuaikan.
yg mana bro pluttto punya om sjw storeurlnya ??? dan yg mana squid.conf punya bro pragola pati ????

yg ada cuma tahapan recompile

truz intihnya

perlu pasang aplikais tambhan gk untuk memakai squid.conf dan storeurl punya om sjw da bro pragola ????


perlu pasang ini gk bro plutto

apt-get install libfile-readbackwards-perl -y

untuk menunjang strourl disini ????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 14:33

jabarin dunk bro plutto punya bro plutto dari awal sampe berhasilnya cache youtube, sepert punyanya bro juldian


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 23 Apr 2013, 15:01

madara07 wrote:
madara07 wrote:
pluto01 wrote:
yg mana bro pluttto punya om sjw storeurlnya ??? dan yg mana squid.conf punya bro pragola pati ????

yg ada cuma tahapan recompile

truz intihnya

perlu pasang aplikais tambhan gk untuk memakai squid.conf dan storeurl punya om sjw da bro pragola ????


perlu pasang ini gk bro plutto

apt-get install libfile-readbackwards-perl -y

untuk menunjang strourl disini ????
Perlu gan tp kan di tutur yg agan lampirkan di atas sdh termasuk install paket tersebut dari agan JDT.
Untuk linknya kan sudah ada gan dan jika agan mau back ke page sebelumnya harusnya sdh sangat jelas pembahasannya dan panduan dari OM Pragola_Pati dan OM SJW serta rekan2 lainnya.
http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38
dan OM SJW http://code.google.com/p/tempat-sampah/ ... toreurl.pl


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 15:18

pluto01 wrote:
madara07 wrote:
madara07 wrote:
yg mana bro pluttto punya om sjw storeurlnya ??? dan yg mana squid.conf punya bro pragola pati ????

yg ada cuma tahapan recompile

truz intihnya

perlu pasang aplikais tambhan gk untuk memakai squid.conf dan storeurl punya om sjw da bro pragola ????


perlu pasang ini gk bro plutto

apt-get install libfile-readbackwards-perl -y

untuk menunjang strourl disini ????
Perlu gan tp kan di tutur yg agan lampirkan di atas sdh termasuk install paket tersebut dari agan JDT.
Untuk linknya kan sudah ada gan dan jika agan mau back ke page sebelumnya harusnya sdh sangat jelas pembahasannya dan panduan dari OM Pragola_Pati dan OM SJW serta rekan2 lainnya.
http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38
dan OM SJW http://code.google.com/p/tempat-sampah/ ... toreurl.pl

siapppppp sya akan coba ntr mlm dah pelan2 moga berhasil

btw itu strourlnya punya om sjw itu yg versi r26 ya???? berarti di squid.confnya pragola, diganti stroreurl26 gitu ????


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 15:20

madara07 wrote:
pluto01 wrote:
madara07 wrote:


perlu pasang ini gk bro plutto

apt-get install libfile-readbackwards-perl -y

untuk menunjang strourl disini ????
Perlu gan tp kan di tutur yg agan lampirkan di atas sdh termasuk install paket tersebut dari agan JDT.
Untuk linknya kan sudah ada gan dan jika agan mau back ke page sebelumnya harusnya sdh sangat jelas pembahasannya dan panduan dari OM Pragola_Pati dan OM SJW serta rekan2 lainnya.
http://ubuntu-indonesia.com/forums/ubbt ... 39&page=38
dan OM SJW http://code.google.com/p/tempat-sampah/ ... toreurl.pl

siapppppp sya akan coba ntr mlm dah pelan2 moga berhasil

btw itu strourlnya punya om sjw itu yg versi r26 ya???? berarti di squid.confnya pragola, diganti stroreurl26 gitu ????
bro plutto saaat in9i berhasil cache youtube pake storeurl dari om sjw versi yg r25 apa yg terbaru r26 ???


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 23 Apr 2013, 15:25

madara07 wrote:
madara07 wrote:
pluto01 wrote:

siapppppp sya akan coba ntr mlm dah pelan2 moga berhasil

btw itu strourlnya punya om sjw itu yg versi r26 ya???? berarti di squid.confnya pragola, diganti stroreurl26 gitu ????
bro plutto saaat in9i berhasil cache youtube pake storeurl dari om sjw versi yg r25 apa yg terbaru r26 ???
namanya disesuaikan saja gan, jika nama na di mesin agan R25.pl sesuaikan jika namanya R26.pl di mesin agan sesuaikan jika nama filenya dimesin agan storeurl.pl juga disesuaikan.

Untuk storeurlnya OM SJW semuanya bisa cache gan, perbedaan nya disetiap revisi bisa agan lihat dari link googlecode tersebut, tujuannya ada revisi yaitu untuk lebih mengoptimalkan.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 15:38

pluto01 wrote:
madara07 wrote:
madara07 wrote:

siapppppp sya akan coba ntr mlm dah pelan2 moga berhasil

btw itu strourlnya punya om sjw itu yg versi r26 ya???? berarti di squid.confnya pragola, diganti stroreurl26 gitu ????
bro plutto saaat in9i berhasil cache youtube pake storeurl dari om sjw versi yg r25 apa yg terbaru r26 ???
namanya disesuaikan saja gan, jika nama na di mesin agan R25.pl sesuaikan jika namanya R26.pl di mesin agan sesuaikan jika nama filenya dimesin agan storeurl.pl juga disesuaikan.

Untuk storeurlnya OM SJW semuanya bisa cache gan, perbedaan nya disetiap revisi bisa agan lihat dari link googlecode tersebut, tujuannya ada revisi yaitu untuk lebih mengoptimalkan.


wahhhhhhhh terima kasih banyak agan pluttoooooooooooo sya akan coba malam ini drumah untuk test drivenya

- instalasi sya akan mengambil cara dari JDT
- squid.conf, stroeurl.pl, reffresh pattern dll mengikuti bro PRAGOLA
- storeurl.pl mengikuti by SJW VERSI R25

oh ya terkhir nih tanya sebelum pulang heheh

itu di test drivernya PRAGOLA memng gk ada file squid ??? yg letakknya di /etc/init.d/squid???? alx di tutor JDT ada bro plutto, apa tidak papa file squid yg lertaknnya di /etc/init.d/squid, q ambil dari bro JDT, yg laennya seperti squid.conf q pake punya PRAGOLA, stroreurl-nya pake punya SJW ?????? ini pertanyaan terkhir, dah mau siap2 pulang nih bro pluttooo, klo berhasil besok sya kbrin


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 23 Apr 2013, 15:44

madara07 wrote:
pluto01 wrote:
madara07 wrote:
bro plutto saaat in9i berhasil cache youtube pake storeurl dari om sjw versi yg r25 apa yg terbaru r26 ???
namanya disesuaikan saja gan, jika nama na di mesin agan R25.pl sesuaikan jika namanya R26.pl di mesin agan sesuaikan jika nama filenya dimesin agan storeurl.pl juga disesuaikan.

Untuk storeurlnya OM SJW semuanya bisa cache gan, perbedaan nya disetiap revisi bisa agan lihat dari link googlecode tersebut, tujuannya ada revisi yaitu untuk lebih mengoptimalkan.


wahhhhhhhh terima kasih banyak agan pluttoooooooooooo sya akan coba malam ini drumah untuk test drivenya

- instalasi sya akan mengambil cara dari JDT
- squid.conf, stroeurl.pl, reffresh pattern dll mengikuti bro PRAGOLA
- storeurl.pl mengikuti by SJW VERSI R25

oh ya terkhir nih tanya sebelum pulang heheh

itu di test drivernya PRAGOLA memng gk ada file squid ??? yg letakknya di /etc/init.d/squid???? alx di tutor JDT ada bro plutto, apa tidak papa file squid yg lertaknnya di /etc/init.d/squid, q ambil dari bro JDT, yg laennya seperti squid.conf q pake punya PRAGOLA, stroreurl-nya pake punya SJW ?????? ini pertanyaan terkhir, dah mau siap2 pulang nih bro pluttooo, klo berhasil besok sya kbrin
Bisa gan yg penting jgn lupa di baca dan diperhatiakan bagian file locationnya (nama file dan directorynya agan sesuaikan dengan yg ada di mesin proxy agan)


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 15:54

pluto01 wrote:
madara07 wrote:
pluto01 wrote:
namanya disesuaikan saja gan, jika nama na di mesin agan R25.pl sesuaikan jika namanya R26.pl di mesin agan sesuaikan jika nama filenya dimesin agan storeurl.pl juga disesuaikan.

Untuk storeurlnya OM SJW semuanya bisa cache gan, perbedaan nya disetiap revisi bisa agan lihat dari link googlecode tersebut, tujuannya ada revisi yaitu untuk lebih mengoptimalkan.


wahhhhhhhh terima kasih banyak agan pluttoooooooooooo sya akan coba malam ini drumah untuk test drivenya

- instalasi sya akan mengambil cara dari JDT
- squid.conf, stroeurl.pl, reffresh pattern dll mengikuti bro PRAGOLA
- storeurl.pl mengikuti by SJW VERSI R25

oh ya terkhir nih tanya sebelum pulang heheh

itu di test drivernya PRAGOLA memng gk ada file squid ??? yg letakknya di /etc/init.d/squid???? alx di tutor JDT ada bro plutto, apa tidak papa file squid yg lertaknnya di /etc/init.d/squid, q ambil dari bro JDT, yg laennya seperti squid.conf q pake punya PRAGOLA, stroreurl-nya pake punya SJW ?????? ini pertanyaan terkhir, dah mau siap2 pulang nih bro pluttooo, klo berhasil besok sya kbrin
Bisa gan yg penting jgn lupa di baca dan diperhatiakan bagian file locationnya (nama file dan directorynya agan sesuaikan dengan yg ada di mesin proxy agan)

sekali lagi bro plutto

itu squid.conf dari PRAGOLA adakn yg tulisannya INLCUDE /etc/squid/acl, INLCUDE /etc/squid/tune.conf, INLCUDE /etc/squid/reffreshpattern.conf

itu semua kita buat tersendiri kn bro plutto di nano /etc/squid/sesuaikan dengan file yg dibuat dari ke3 tadi ????? bener gk ??????


atau digabung semua ???? maaf sya bayak nanya


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 23 Apr 2013, 16:07

madara07 wrote:
pluto01 wrote:
madara07 wrote:


wahhhhhhhh terima kasih banyak agan pluttoooooooooooo sya akan coba malam ini drumah untuk test drivenya

- instalasi sya akan mengambil cara dari JDT
- squid.conf, stroeurl.pl, reffresh pattern dll mengikuti bro PRAGOLA
- storeurl.pl mengikuti by SJW VERSI R25

oh ya terkhir nih tanya sebelum pulang heheh

itu di test drivernya PRAGOLA memng gk ada file squid ??? yg letakknya di /etc/init.d/squid???? alx di tutor JDT ada bro plutto, apa tidak papa file squid yg lertaknnya di /etc/init.d/squid, q ambil dari bro JDT, yg laennya seperti squid.conf q pake punya PRAGOLA, stroreurl-nya pake punya SJW ?????? ini pertanyaan terkhir, dah mau siap2 pulang nih bro pluttooo, klo berhasil besok sya kbrin
Bisa gan yg penting jgn lupa di baca dan diperhatiakan bagian file locationnya (nama file dan directorynya agan sesuaikan dengan yg ada di mesin proxy agan)

sekali lagi bro plutto

itu squid.conf dari PRAGOLA adakn yg tulisannya INLCUDE /etc/squid/acl, INLCUDE /etc/squid/tune.conf, INLCUDE /etc/squid/reffreshpattern.conf

itu semua kita buat tersendiri kn bro plutto di nano /etc/squid/sesuaikan dengan file yg dibuat dari ke3 tadi ????? bener gk ??????


atau digabung semua ???? maaf sya bayak nanya
digabung menjadi 1 file ke squid.confnya bisa juga gan, namun lebih bagus jika agan pisah2 per file seperti OM Pragola_Pati dan sesuaikan saja nama file dengan nama file yg ada diincludenya.


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 23 Apr 2013, 17:06

Pragola_Pati wrote:[size:17pt]logfile_rotate[/size] Ternyata jika kita melakukan upil2 squid, opsi logfile_rotate tidak secara otomatis masuk kedalam logrotate system Ubuntu yaitu yang terletak di dir /etc/logrotate.d. Untuk memasukkan-nya ke dalam logrotate system =

Code: Select all

# nano /etc/logrotate.d/squid
Masukkan skrip di bawah ini =

Code: Select all

/var/log/squid/access.log /var/log/squid/yt.log {
        daily
        rotate 1
        copytruncate
        compress
        notifempty
        missingok
}
Lalu jalankan CLI

Code: Select all

# /usr/sbin/logrotate /etc/logrotate.d/squid
# logrotate -vf /etc/logrotate.d/squid
Di tempat saya outputnya seperti di bawah ini =
root@warnetersa:/etc/logrotate.d# logrotate -vf /etc/logrotate.d/squid
reading config file /etc/logrotate.d/squid
reading config info for /var/log/squid/access.log /var/log/squid/yt.log

Handling 1 logs

rotating pattern: /var/log/squid/access.log /var/log/squid/yt.log forced from command line (1 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/access.log
log needs rotating
considering log /var/log/squid/yt.log
log needs rotating
rotating log /var/log/squid/access.log, log->rotateCount is 1
dateext suffix '-20130423'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
renaming /var/log/squid/access.log.1.gz to /var/log/squid/access.log.2.gz (rotatecount 1, logstart 1, i 1),
renaming /var/log/squid/access.log.0.gz to /var/log/squid/access.log.1.gz (rotatecount 1, logstart 1, i 0),
old log /var/log/squid/access.log.0.gz does not exist
copying /var/log/squid/access.log to /var/log/squid/access.log.1
truncating /var/log/squid/access.log
compressing log with: /bin/gzip
removing old log /var/log/squid/access.log.2.gz
rotating log /var/log/squid/yt.log, log->rotateCount is 1
dateext suffix '-20130423'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
renaming /var/log/squid/yt.log.1.gz to /var/log/squid/yt.log.2.gz (rotatecount 1, logstart 1, i 1),
renaming /var/log/squid/yt.log.0.gz to /var/log/squid/yt.log.1.gz (rotatecount 1, logstart 1, i 0),
old log /var/log/squid/yt.log.0.gz does not exist
copying /var/log/squid/yt.log to /var/log/squid/yt.log.1
truncating /var/log/squid/yt.log
compressing log with: /bin/gzip
removing old log /var/log/squid/yt.log.2.gz
Jika kita periksa isi dari dir log =

Code: Select all

root@warnetersa:/etc/logrotate.d# ls -lah /var/log/squid
total 26M
drwxrwxrwx  2 proxy proxy 4,0K 2013-04-23 05:01 .
drwxr-xr-x 24 root  root  4,0K 2013-04-22 06:37 ..
-rw-r-----  1 proxy proxy    0 2013-04-23 05:01 access.log
-rw-r-----  1 proxy proxy 9,5K 2013-04-23 05:01 access.log.1.gz
-rw-r-----  1 proxy proxy  12M 2013-04-23 04:57 swap.state.00
-rw-r-----  1 proxy proxy  14M 2013-04-23 04:01 swap.state.01
-rw-r-----  1 proxy proxy    0 2013-04-23 05:01 yt.log
-rw-r-----  1 proxy proxy 7,1K 2013-04-23 05:01 yt.log.1.gz
Tags yang berhubungan dengan log, yang saya pakai di squid.conf =
access_log /var/log/squid/yt.log squid1 yutub
cache_swap_log /var/log/squid/swap.state
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null
logfile_rotate 0
+++++++++++++++++++++++++++++
makasih boz ...sudah sy praktekkan ....kita lihat besok file-nya pada bersih apa belum ...klo belum berarti sya perlu ulang lagi ...

MAkasih skali lg ats penjelasannya


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 23 Apr 2013, 17:08

madara07 wrote:
pluto01 wrote:@ madara07
Bingungnya dibagian mananya yach gan ?
dan sedikit info itu dipejwan bukan step by step install lusca namun cara untuk Recompile.

Dan harusnya untuk install lusca ga ribet2 amat ko yg agak membutuhkan pengalaman dan pengetahuan sedikit yaitu mengoptimalkannya bagaimana agar siproxy dapat bekerja sesuai kebutuhan kita dengan seoptimal mungkin..
hehehhee itu dia sya mau tau step by step dari awalnya bisa dibantu klh bro pluto ?????



banyak ngikutin di blog berhasil cuma cache image, youtube gk pernah berhasil, pagewan itu kn tahapan recompile, itu membingungkan bgi sya, sudi kiranya ada yg menjabarkannya

sebelumnya saya udah berhasil tpi hnay cache imegae, klo youtube gk ada yg hit, udah comot sana sini squid.confnya, udah sesuaikan juga networknya
+++++++++++++++++++++++++++++++++++++++++++

KOnfig yg paling stabil yg pernah sya pakai adalah punya mas Pragola yg ada dihalaman 38 forum ini ....................

Silahkan dicoba mas ...


User avatar
sawitbahar
Posts: 41
Joined: 04 Apr 2013, 17:51
Location: jambi

Post by sawitbahar » 23 Apr 2013, 21:00

@cah_clacap

yutub yg Http://s.yutud.com koq masih TCP_MISS ada solusi mungkin mzz cah_clacap atau bung Pragola


Ngarap ini da pusing
klu kodenya r8 sekian udh HIT mzz


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 21:10

all bro knapa ya ini


/etc/init.d/squid start

hasilnya
Starting Squid HTTP proxy squid fail


User avatar
sawitbahar
Posts: 41
Joined: 04 Apr 2013, 17:51
Location: jambi

Post by sawitbahar » 23 Apr 2013, 21:35

@madara07


coba /etc/init.d/squid restart


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 23 Apr 2013, 21:55

Ijin nyimak lagi ya Mas....


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 22:07

sawitbahar wrote:@madara07


coba /etc/init.d/squid restart
udah bro

/etc/init.d/squid restart
/etc/init.d/squid stop
/etc/init.d/squid start

asilnya

fail


HELPPPPPPPPPPPP


GMANA MAU MAUTEST CACHE AA GKNYA


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 23 Apr 2013, 22:23

Coba dengan perintah ini mas,
# service squid start


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 23 Apr 2013, 22:27

@madara07
1. Tidak perlu pakai huruf kapital, karena yang seperti itu tdk sesuai etika forum.
2. Pesan error-nya bagimana ? kami tdk bisa bantu anda kalau hanya diambil bongkotnya begitu.


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 23 Apr 2013, 23:18

Wah, beberapa hari gak ngikuti perkembangan, sudah ada release terbaru lagi. Ijin nyimak lagi smuanya....


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 23 Apr 2013, 23:19

@madara07

Pesan errornya bagaimana?
Coba diperjelas.


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 23 Apr 2013, 23:24

Pragola_Pati wrote:@madara07
1. Tidak perlu pakai huruf kapital, karena yang seperti itu tdk sesuai etika forum.
2. Pesan error-nya bagimana ? kami tdk bisa bantu anda kalau hanya diambil bongkotnya begitu.
iya mas pragola maaf heheeheh, gini sya udah ikutin semua seperti ni :

[spoiler]INSTALASI LUSCA
===============
Cek CHOST dan CFLAGS sesuai dengan CPU
- cat /proc/cpuinfo
AMD 64bit http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD
Intel http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel

Update Ubuntu
- apt-get -y update && apt-get -y upgrade

Install paket yang dibutuhkan
- apt-get -y install squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 acpid unzip libfile-readbackwards-perl

Download LUSCA
- wget http://juldian.web.id/lusca/LUSCA_HEAD-r14809.tar.gz
- extract: tar -xvzf LUSCA_HEAD-r14809.tar.gz
- pindah ke dir lusca: cd cd LUSCA_HEAD-r14809
- download patch lusca: http://juldian.web.id/lusca/LUSCA_HEAD- ... CTH.tar.gz
- extract: tar -zxvf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
- jalankan patchnya:
patch -p0 >>>>>>> chmod +x /etc/init.d/squid
===================================================

#! /bin/sh
#
# squid Startup script for the SQUID HTTP proxy-cache.
#
# Version: @(#)squid.rc 2.20 01-Oct-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: squid
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Squid HTTP Proxy
### END INIT INFO

NAME=squid
DAEMON=/usr/sbin/squid
LIB=/usr/lib/squid
PIDFILE=/var/run/$NAME.pid
SQUID_ARGS="-D -YC"

[ ! -f /etc/default/squid ] || . /etc/default/squid

. /lib/lsb/init-functions

PATH=/bin:/usr/bin:/sbin:/usr/sbin

[ -x $DAEMON ] || exit 0

grepconf () {
w=" " # space tab
sq=/etc/squid/squid.conf
# sed is cool.
res=`sed -ne '
s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' /proc/sys/fs/file-max
fi
ulimit -n $SQUID_MAXFD
}

start () {
cdr=`grepconf2 cache_dir /var/spool/$NAME`
ctp=`grepconf cache_dir ufs`

case "$cdr" in
[0-9]*)
log_failure_msg "squid: squid.conf contains 2.2.5 syntax - not starting!"
log_end_msg 1
exit 1
;;
esac

#
# Create spool dirs if they don't exist.
#
if [ -d "$cdr" -a ! -d "$cdr/00" ] || [ "$ctp" = "coss" -a ! -w "$cdr" ]
then
log_warning_msg "Creating squid cache structure"
$DAEMON $SQUID_ARGS -z
fi

if [ "$CHUID" = "" ]; then
CHUID=root
fi

maxfds
umask 027
start-stop-daemon --quiet --start \
--pidfile $PIDFILE \
--chuid $CHUID \
--exec $DAEMON -- $SQUID_ARGS /dev/null`
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name squid
#
# Now we have to wait until squid has _really_ stopped.
#
sleep 2
if test -n "$PID" && kill -0 $PID 2>/dev/null
then
log_action_begin_msg " Waiting"
cnt=0
while kill -0 $PID 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 24 ]
then
log_action_end_msg 1
return 1
fi
sleep 5
log_action_cont_msg ""
done
log_action_end_msg 0
return 0
else
return 0
fi
}

case "$1" in
start)
log_daemon_msg "Starting Squid HTTP proxy" "squid"
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping Squid HTTP proxy" "squid"
if stop ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
log_action_msg "Reloading Squid configuration files"
$DAEMON -k reconfigure
log_action_end_msg 0
;;
restart)
log_daemon_msg "Restarting Squid HTTP proxy" "squid"
stop
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
status)
status_of_proc -p "$PIDFILE" "$DAEMON" squid && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart|status}"
exit 3
;;
esac

exit 0



nano /etc/squid/squid.conf masukkan script dibawah ini, lalu save
===================================================

#FPUI
# storeurl release using r25

#baris di bawah ini u/ antivirus HAVP (comment-out jika tdk pakai HAVP)
cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default

http_port 3128 transparent
server_http11 on
icp_port 0

include /etc/squid/acl.conf

#baris di bawah ini u/ squidGuard (comment-out jika tdk pakai squiGuard)
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf

storeurl_rewrite_program /etc/squid/r25.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 10

include /etc/squid/tune.conf

#baris di bawah ini mohon disesuaikan dengan path cache_dir anda
cache_dir aufs /squid/cache 15000 32 256 min-size=0 max-size=8388607
#cache_dir aufs /proxy_2 15000 32 256 min-size=8388608 max-size=67108864

#path log di bawah ini mohon di receck pada saat Anda build squid
icon_directory /usr/share/squid/icons
cache_swap_log /var/log/squid/swap.state
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null
pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
mime_table /etc/squid/mime.conf
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub

include /etc/squid/refresh_pattern.conf

#baris di bawah ini mohon disesuaikan dengan dns yang anda pakai
dns_nameservers 127.0.0.1

cache_effective_user proxy
cache_effective_group proxy
cache_mgr FPUI
cachemgr_passwd none all
visible_hostname localhost
#end of file


nano /etc/squid/acl.conf masukkan script dibawah ini, lalu save
===================================================


#FPUI
# acl.conf r25

acl yutub url_regex -i .*youtube\.com\/.*$ #Harus ada jika pakai r25
acl yutub url_regex -i .*youtu\.be\/.*$ #Harus ada jika pakai r25

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24 #Mohon disesuaikan dg jaringan Anda
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32

acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 20 21 221 70 210 1025-65535 631 10000 901 280 488 591 777 873 110 995 25 587 995 2095 2096 2082 2083 18901-18909 # default
acl manager proto cache_object
acl purge method PURGE
acl CONNECT method CONNECT

# Don't upgrade ShoutCast responses to HTTP
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
# Apache mod_gzip and mod_deflate known to be broken so don't trust Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache

acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes #Harus ada jika pakai r25
acl redirec urlpath_regex -i .*&ir=1&rr=12 #Harus ada jika pakai r25

acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$ #Harus ada jika pakai r25
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$ #Harus ada jika pakai r25

acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z|pkg)\?
acl store_rewrite_list_path urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z|pkg)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?(.google.com.*)/)
acl store_rewrite_list_domain_CDN url_regex (cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/photos-[a-z]?(.ak.fbcdn.net.*)/)
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]*
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/i[1-9]{3}(.photobucket.com.*)/)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/i[1-9]{4}(.photobucket.com.*)/)
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive quantserve\.com
acl store_rewrite_list url_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl store_rewrite_list url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl store_rewrite_list url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl store_rewrite_list url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl store_rewrite_list url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl store_rewrite_list url_regex -i vid\.akm\.dailymotion\.com\/
acl store_rewrite_list url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl store_rewrite_list url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl store_rewrite_list url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl store_rewrite_list url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl store_rewrite_list url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl store_rewrite_list url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl store_rewrite_list url_regex -i \.break\.com\/(.*)\.(flv|mp4)

acl store_rewrite_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
acl store_rewrite_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

http_access allow manager localhost
http_access allow purge localhost
http_access deny manager
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports
http_access allow localnet
http_access allow localhost
http_access deny to_localhost
http_access deny all

upgrade_http0.9 deny shoutcast
broken_vary_encoding allow apache

cache deny redirec #Harus ada jika pakai r25

header_access Accept-Encoding deny all
header_access X-Forwarded-For deny all

storeurl_access deny reddeny #Harus ada jika pakai r25
storeurl_access allow store_rewrite_list_domain
storeurl_access allow store_rewrite_list_path
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_allow_dom
storeurl_access deny store_rewrite_deny_dom
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny all
#end of file


nano /etc/squid/tune.conf masukkan script dibawah ini, lalu save
===================================================


#FPUI
# tune.conf
# r25

strip_query_terms off # Harus ada jika pakai r25
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
minimum_object_size 0 KB
maximum_object_size 512 MB
maximum_object_size_in_memory 32 KB
ipcache_size 1024 # Mohon sesuaikan dengan RAM
ipcache_low 98
ipcache_high 99
fqdncache_size 1024 # Mohon sesuaikan dengan RAM
log_fqdn off
log_icp_queries off
half_closed_clients off
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
vary_ignore_expire on
pipeline_prefetch on
reload_into_ims on
forwarded_for off
via off
client_db on
client_persistent_connections off
server_persistent_connections off
icp_hit_stale on
query_icmp on
memory_pools off
negative_ttl 30 seconds
max_filedescriptors 65535
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
store_dir_select_algorithm round-robin
uri_whitespace strip
emulate_httpd_log off
shutdown_lifetime 10 seconds
logfile_rotate 1
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136
#end of file


nano /etc/squid/refresh_pattern.conf masukkan script dibawah ini, lalu save
===================================================


#FPUI
# refresh_pattern.conf
# r25

refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale

refresh_pattern \.speedtest/.* 43200 99999% 432000 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.(ico|video-stats) 43200 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern \.etology\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 43200 20% 43200 ignore-no-cache ignore-no-store ignore-private ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=10
refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 43200 999999% 43200 ignore-reload ignore-private store-stale negative-ttl=10080
refresh_pattern ytimg\.com.*\.jpg 43200 999999% 43200 ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 43200 999999% 43200 ignore-reload store-stale
refresh_pattern garena\.com 43200 999999% 43200 reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 43200 999999% 43200 ignore-no-cache override-lastmod store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 reload-into-ims ignore-private store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 43200 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern guru.avg.com/.*\.(bin) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern avast.com.*\.vps 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern avast.com.*\.vpx 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern (avgate|avira).*(idx|gz)$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky.*\.avc$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.nai.com/.*\.(gem|zip|mcs) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern ^http:\/\/liveupdate.symantecliveupdate.com.*\(zip) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale

refresh_pattern windowsupdate.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern download.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale

refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale

refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.zynga.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.farmville.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.ninjasaga.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.mafiawars.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.crowdstar.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.popcap.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.cityville.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale

refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern kaskus.\co.id.*\.(jp(e?g|e|2)|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.kaskus.co.id.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale ignore-auth

refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 10080 95% 241920 override-lastmod reload-into-ims store-stale
refresh_pattern . 180 95% 120960 override-lastmod reload-into-ims store-stale
#end of file


nano /etc/squid/r25.pl masukkan script dibawah ini, lalu save dan >>>>>>>> chmod +x /etc/squid/storeurl.pl
===================================================



#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamp ... Discussion

# http://www.facebook.com/stressss

$|=1;
while () {
@X = split;
$x = $X[0] . " ";

#facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
print $x . "http://blog-cdn." . $1 . "\n";

#ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
print $x . "http://cdn.ytimg.com" . $1 . "\n";

#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
print $x . "http://avast-cdn." . $1 . "\n";

#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
print $x . "http://kav-cdn." . $1 . "\n";

#AVG
} elsif (m/^http:\/\/update.avg.com/) {
print $x . "http://avg-cdn." . $1 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
print $x . "http://" . $1 . $2 . "\n";

#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
print $x . "http://" . $1 . $2 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
print $x . "http://" . $1 . $2 . "\n";

# for ALL Youtube ( range & non range )
# first you need do this
# install package dependencies "apt-get install libfile-readbackwards-perl"
# add line below to your squid config and remove "#"

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
$id = &GetID($CPN[0], $IDS[0]);
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";

#Google
} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
print $x . "http://www.google-analytics.com/__utm.gif\n";

#Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
$y = $3;$z = $2;
for ($y) {
s/pixel;.*/pixel/;
s/activity;.*/activity/;
s/(imgad[^&]*).*/\1/;
s/;ord=[?0-9]*//;
s/;&timestamp=[0-9]*//;
s/[&?]correlator=[0-9]*//;
s/&cookie=[^&]*//;
s/&ga_hid=[^&]*//;
s/&ga_vid=[^&]*//;
s/&ga_sid=[^&]*//;
# s/&prev_slotnames=[^&]*//
# s/&u_his=[^&]*//;
s/&dt=[^&]*//;
s/&dtd=[^&]*//;
s/&lmt=[^&]*//;
s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/[;&?]ord=[?0-9]*//;
s/[;&]mpvid=[^&;]*//;
s/&xpc=[^&]*//;
# yieldmanager
s/\?clickTag=[^&]*//;
s/&u=[^&]*//;
s/&slotname=[^&]*//;
s/&page_slots=[^&]*//;
}
print $x . "http://" . $1 . $2 . $y . "\n";

#cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
print $x . "http://" . $1 . "/" . $2 . "\n";

} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
print $x . "http://" . $1 . "\n";

#cdn, varialble 1st path
} elsif (($X[1] =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/[a-z0-9]{2,5}/cdn./;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#rapidshare
} elsif (($X[1] =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($X[1] =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

#domain/path/.*/path/filename
} elsif (($X[1] =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5,$6);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";

#like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($X[1] =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "http://cdn." . $4 . $6 . "\n";

#for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
print $x . "http://cdn.yimg.com/" . $3 . "\n";

#for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
print $x . "http://cdn.yimg.com/" . $3 . "\n";

#for yimg.com with &sig=
} elsif (m/^http:\/\/([^\.]*)\.yimg\.com\/(.*)/) {
@y = ($1,$2);
$y[0] =~ s/[a-z]+([0-9]+)?/cdn/;
$y[1] =~ s/&sig=.*//;
print $x . "http://" . $y[0] . ".yimg.com/" . $y[1] . "\n";

#youjizz. We use only domain and filename
} elsif (($X[1] =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
print $x . "http://squid-cdn-url/" . $2 . "." . $3 . "\n";

# spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
# @y = ($1,$2);
# $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
# print $x . "http://" . $y[0] . "." . $y[1] . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte"
#http://cdn1-28.projectplaylist.com
#http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

# all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
print $x . "http://" . $1 . "/" . $2 . "\n";

} else {
print $x . $X[1] . "\n";
}
}


sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*cpn=$CPN[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $2;
last;
}
last if --$lim close();
return $id;
}[/spoiler]
config permission
==================

- touch /var/log/squid/access.log

- touch /var/log/squid/cache.log

- chmod 777 -Rf proxy:proxy /squid/cache

- chmod 777 -Rf proxy:proxy /var/log/squid

- chmod 777 -Rf proxy:proxy /var/log/squid/access.log

- chmod 777 -Rf proxy:proxy /var/log/squid/cache.log

- chown proxy:proxy /squid/cache

- chmod 777 /squid/cache

- chown proxy:proxy /etc/squid/r25.pl

- chmod 777 /etc/squid/r25.pl



Cmd Lusca
=========
- squid -f /etc/squid/squid.conf -z
- sudo /etc/init.d/squid restart
- service squid start (untuk menjalankan squid)
- update-rc.d squid defaults
- squid -NDd1
- tail -f /cache1/access.log | ccze (untuk melihat log)
- netstat -pln |grep squid

setelah di squid -k reconfigure

hasilnya bagus tidak ada pesan error

tpi ketika di /etc/init.d/squid restart

hasilmya fail berwarna merah

udah dicoba /etc/init.d/squid start juga gitu fail merah hasilnya


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 00:14

Coba mulai lagi dari =

Code: Select all

# chmod 755 /etc/init.d/squid
# update-rc.d -f squid remove
# update-rc.d squid defaults
# squid -z
Tunggu sampai squid selesai membuat dir_cache dan swap.state, lalu lanjutkan =

Code: Select all

# squid -NDd1
Jika ada eror, pesan eror-nya anda kopas di sini. Jika tdk ada eror, lanjutnkan dengan =

Code: Select all

# /etc/init.d/squid start
Jika eror (failed), jalankan CLI di bawah ini dan ouputnya anda kopas di sini

Code: Select all

# tail /var/log/syslog
:)


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 06:24

Pragola_Pati wrote:Coba mulai lagi dari =

Code: Select all

# chmod 755 /etc/init.d/squid
# update-rc.d -f squid remove
# update-rc.d squid defaults
# squid -z
Tunggu sampai squid selesai membuat dir_cache dan swap.state, lalu lanjutkan =

Code: Select all

# squid -NDd1
Jika ada eror, pesan eror-nya anda kopas di sini. Jika tdk ada eror, lanjutnkan dengan =

Code: Select all

# /etc/init.d/squid start
Jika eror (failed), jalankan CLI di bawah ini dan ouputnya anda kopas di sini

Code: Select all

# tail /var/log/syslog
:)
met pagi mas pragola, heheheh sya ketiduran tdi mlm, td mlm sya instal ulang lgi ubuntunya, dan mule dari wal lgi instal squid biasa tanpa lusca dan compile, hasilnya ya hanya cache image static content, klo gitu ntr malm sya coba lgi dah intal dari awal


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 06:39

Pragola_Pati wrote:Coba mulai lagi dari =

Code: Select all

# chmod 755 /etc/init.d/squid
# update-rc.d -f squid remove
# update-rc.d squid defaults
# squid -z
Tunggu sampai squid selesai membuat dir_cache dan swap.state, lalu lanjutkan =

Code: Select all

# squid -NDd1
Jika ada eror, pesan eror-nya anda kopas di sini. Jika tdk ada eror, lanjutnkan dengan =

Code: Select all

# /etc/init.d/squid start
Jika eror (failed), jalankan CLI di bawah ini dan ouputnya anda kopas di sini

Code: Select all

# tail /var/log/syslog
:)
nunggu mlm lgi sya config drumh, hhhehehe, mas pragola, config sya

mengacu kepada

1)pengintalan by tutor dari bro juldiantan
2)config squid.conf, acl.conf, tune.conf, refreshpatter.conf
by bro pragola
3)sedangkan storeurl.pl-nya yg saya sesuaikan namanya dengan yg ada di squid.confnya mas pragola yaitu r25.l by bro SJW
4)lalu tahapan permissionnya saya sesuaikan

hasilnya :
[spoiler]INSTALASI LUSCA
===============
Cek CHOST dan CFLAGS sesuai dengan CPU
- cat /proc/cpuinfo
AMD 64bit http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD
Intel http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel

Update Ubuntu
- apt-get -y update && apt-get -y upgrade

Install paket yang dibutuhkan
- apt-get -y install squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 acpid unzip libfile-readbackwards-perl

Download LUSCA
- wget http://juldian.web.id/lusca/LUSCA_HEAD-r14809.tar.gz
- extract: tar -xvzf LUSCA_HEAD-r14809.tar.gz
- pindah ke dir lusca: cd cd LUSCA_HEAD-r14809
- download patch lusca: http://juldian.web.id/lusca/LUSCA_HEAD- ... CTH.tar.gz
- extract: tar -zxvf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
- jalankan patchnya:
patch -p0 >>>>>>> chmod +x /etc/init.d/squid
===================================================

#! /bin/sh
#
# squid Startup script for the SQUID HTTP proxy-cache.
#
# Version: @(#)squid.rc 2.20 01-Oct-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: squid
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Squid HTTP Proxy
### END INIT INFO

NAME=squid
DAEMON=/usr/sbin/squid
LIB=/usr/lib/squid
PIDFILE=/var/run/$NAME.pid
SQUID_ARGS="-D -YC"

[ ! -f /etc/default/squid ] || . /etc/default/squid

. /lib/lsb/init-functions

PATH=/bin:/usr/bin:/sbin:/usr/sbin

[ -x $DAEMON ] || exit 0

grepconf () {
w=" " # space tab
sq=/etc/squid/squid.conf
# sed is cool.
res=`sed -ne '
s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' /proc/sys/fs/file-max
fi
ulimit -n $SQUID_MAXFD
}

start () {
cdr=`grepconf2 cache_dir /var/spool/$NAME`
ctp=`grepconf cache_dir ufs`

case "$cdr" in
[0-9]*)
log_failure_msg "squid: squid.conf contains 2.2.5 syntax - not starting!"
log_end_msg 1
exit 1
;;
esac

#
# Create spool dirs if they don't exist.
#
if [ -d "$cdr" -a ! -d "$cdr/00" ] || [ "$ctp" = "coss" -a ! -w "$cdr" ]
then
log_warning_msg "Creating squid cache structure"
$DAEMON $SQUID_ARGS -z
fi

if [ "$CHUID" = "" ]; then
CHUID=root
fi

maxfds
umask 027
start-stop-daemon --quiet --start \
--pidfile $PIDFILE \
--chuid $CHUID \
--exec $DAEMON -- $SQUID_ARGS /dev/null`
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name squid
#
# Now we have to wait until squid has _really_ stopped.
#
sleep 2
if test -n "$PID" && kill -0 $PID 2>/dev/null
then
log_action_begin_msg " Waiting"
cnt=0
while kill -0 $PID 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 24 ]
then
log_action_end_msg 1
return 1
fi
sleep 5
log_action_cont_msg ""
done
log_action_end_msg 0
return 0
else
return 0
fi
}

case "$1" in
start)
log_daemon_msg "Starting Squid HTTP proxy" "squid"
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping Squid HTTP proxy" "squid"
if stop ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
log_action_msg "Reloading Squid configuration files"
$DAEMON -k reconfigure
log_action_end_msg 0
;;
restart)
log_daemon_msg "Restarting Squid HTTP proxy" "squid"
stop
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
status)
status_of_proc -p "$PIDFILE" "$DAEMON" squid && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart|status}"
exit 3
;;
esac

exit 0



nano /etc/squid/squid.conf masukkan script dibawah ini, lalu save
===================================================

#FPUI
# storeurl release using r25

#baris di bawah ini u/ antivirus HAVP (comment-out jika tdk pakai HAVP)
cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default

http_port 3128 transparent
server_http11 on
icp_port 0

include /etc/squid/acl.conf

#baris di bawah ini u/ squidGuard (comment-out jika tdk pakai squiGuard)
#url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf

storeurl_rewrite_program /etc/squid/r25.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 10

include /etc/squid/tune.conf

#baris di bawah ini mohon disesuaikan dengan path cache_dir anda
cache_dir aufs /squid/cache 6000 32 256 min-size=0 max- size=8388607
cache_dir aufs /squid/cache 6000 32 256 min-size=0 max- size=8388607
cache_dir aufs /squid/cache 6000 32 256 min-size=0 max- size=8388607
#cache_dir aufs /proxy_2 15000 32 256 min-size=8388608 max-size=67108864

#path log di bawah ini mohon di receck pada saat Anda build squid
icon_directory /usr/share/squid/icons
cache_swap_log /var/log/squid/swap.state
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null
pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
mime_table /etc/squid/mime.conf
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub

include /etc/squid/refresh_pattern.conf

#baris di bawah ini mohon disesuaikan dengan dns yang anda pakai
dns_nameservers 127.0.0.1

cache_effective_user proxy
cache_effective_group proxy
cache_mgr FPUI
cachemgr_passwd none all
visible_hostname localhost
#end of file


nano /etc/squid/acl.conf masukkan script dibawah ini, lalu save
===================================================


#FPUI
# acl.conf r25

acl yutub url_regex -i .*youtube\.com\/.*$ #Harus ada jika pakai r25
acl yutub url_regex -i .*youtu\.be\/.*$ #Harus ada jika pakai r25

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24 #Mohon disesuaikan dg jaringan Anda
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32

acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 20 21 221 70 210 1025-65535 631 10000 901 280 488 591 777 873 110 995 25 587 995 2095 2096 2082 2083 18901-18909 # default
acl manager proto cache_object
acl purge method PURGE
acl CONNECT method CONNECT

# Don't upgrade ShoutCast responses to HTTP
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
# Apache mod_gzip and mod_deflate known to be broken so don't trust Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache

acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes #Harus ada jika pakai r25
acl redirec urlpath_regex -i .*&ir=1&rr=12 #Harus ada jika pakai r25

acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$ #Harus ada jika pakai r25
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$ #Harus ada jika pakai r25

acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z|pkg)\?
acl store_rewrite_list_path urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z|pkg)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?(.google.com.*)/)
acl store_rewrite_list_domain_CDN url_regex (cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/photos-[a-z]?(.ak.fbcdn.net.*)/)
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]*
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/i[1-9]{3}(.photobucket.com.*)/)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/i[1-9]{4}(.photobucket.com.*)/)
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive quantserve\.com
acl store_rewrite_list url_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl store_rewrite_list url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl store_rewrite_list url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl store_rewrite_list url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl store_rewrite_list url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl store_rewrite_list url_regex -i vid\.akm\.dailymotion\.com\/
acl store_rewrite_list url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl store_rewrite_list url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl store_rewrite_list url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl store_rewrite_list url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl store_rewrite_list url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl store_rewrite_list url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl store_rewrite_list url_regex -i \.break\.com\/(.*)\.(flv|mp4)

acl store_rewrite_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
acl store_rewrite_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

http_access allow manager localhost
http_access allow purge localhost
http_access deny manager
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports
http_access allow localnet
http_access allow localhost
http_access deny to_localhost
http_access deny all

upgrade_http0.9 deny shoutcast
broken_vary_encoding allow apache

cache deny redirec #Harus ada jika pakai r25

header_access Accept-Encoding deny all
header_access X-Forwarded-For deny all

storeurl_access deny reddeny #Harus ada jika pakai r25
storeurl_access allow store_rewrite_list_domain
storeurl_access allow store_rewrite_list_path
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_allow_dom
storeurl_access deny store_rewrite_deny_dom
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny all
#end of file


nano /etc/squid/tune.conf masukkan script dibawah ini, lalu save
===================================================


#FPUI
# tune.conf
# r25

strip_query_terms off # Harus ada jika pakai r25
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
minimum_object_size 0 KB
maximum_object_size 512 MB
maximum_object_size_in_memory 32 KB
ipcache_size 1024 # Mohon sesuaikan dengan RAM
ipcache_low 98
ipcache_high 99
fqdncache_size 1024 # Mohon sesuaikan dengan RAM
log_fqdn off
log_icp_queries off
half_closed_clients off
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
vary_ignore_expire on
pipeline_prefetch on
reload_into_ims on
forwarded_for off
via off
client_db on
client_persistent_connections off
server_persistent_connections off
icp_hit_stale on
query_icmp on
memory_pools off
negative_ttl 30 seconds
max_filedescriptors 65535
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
store_dir_select_algorithm round-robin
uri_whitespace strip
emulate_httpd_log off
shutdown_lifetime 10 seconds
logfile_rotate 1
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136
#end of file


nano /etc/squid/refresh_pattern.conf masukkan script dibawah ini, lalu save
===================================================


#FPUI
# refresh_pattern.conf
# r25

refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale

refresh_pattern \.speedtest/.* 43200 99999% 432000 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.(ico|video-stats) 43200 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern \.etology\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 43200 999999% 43200 ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 43200 20% 43200 ignore-no-cache ignore-no-store ignore-private ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=10
refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 43200 999999% 43200 ignore-reload ignore-private store-stale negative-ttl=10080
refresh_pattern ytimg\.com.*\.jpg 43200 999999% 43200 ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 43200 999999% 43200 ignore-reload store-stale
refresh_pattern garena\.com 43200 999999% 43200 reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 43200 999999% 43200 ignore-no-cache override-lastmod store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 reload-into-ims ignore-private store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 43200 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern guru.avg.com/.*\.(bin) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern avast.com.*\.vps 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern avast.com.*\.vpx 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern (avgate|avira).*(idx|gz)$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky.*\.avc$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.nai.com/.*\.(gem|zip|mcs) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern ^http:\/\/liveupdate.symantecliveupdate.com.*\(zip) 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale

refresh_pattern windowsupdate.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern download.microsoft.com/.*\.(cab|exe) 10080 999999% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale

refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 999999% 129600 ignore-reload ignore-no-cache ignore-no-store store-stale

refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.zynga.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.farmville.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.ninjasaga.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.mafiawars.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.crowdstar.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.popcap.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.cityville.com.*\/ 10080 999999% 43200 ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale

refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern kaskus.\co.id.*\.(jp(e?g|e|2)|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.kaskus.co.id.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload ignore-no-cache ignore-no-store store-stale ignore-auth

refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 43200 999999% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-lastmod reload-into-ims store-stale

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 10080 95% 241920 override-lastmod reload-into-ims store-stale
refresh_pattern . 180 95% 120960 override-lastmod reload-into-ims store-stale
#end of file


nano /etc/squid/r25.pl #(by bro sjw) masukkan script dibawah ini, lalu save dan >>>>>>>> chmod +x /etc/squid/storeurl.pl
===================================================



#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamp ... Discussion

# http://www.facebook.com/stressss

$|=1;
while () {
@X = split;
$x = $X[0] . " ";

#facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
print $x . "http://blog-cdn." . $1 . "\n";

#ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
print $x . "http://cdn.ytimg.com" . $1 . "\n";

#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
print $x . "http://avast-cdn." . $1 . "\n";

#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
print $x . "http://kav-cdn." . $1 . "\n";

#AVG
} elsif (m/^http:\/\/update.avg.com/) {
print $x . "http://avg-cdn." . $1 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
print $x . "http://" . $1 . $2 . "\n";

#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
print $x . "http://" . $1 . $2 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
print $x . "http://" . $1 . $2 . "\n";

# for ALL Youtube ( range & non range )
# first you need do this
# install package dependencies "apt-get install libfile-readbackwards-perl"
# add line below to your squid config and remove "#"

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
$id = &GetID($CPN[0], $IDS[0]);
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";

#Google
} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
print $x . "http://www.google-analytics.com/__utm.gif\n";

#Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
$y = $3;$z = $2;
for ($y) {
s/pixel;.*/pixel/;
s/activity;.*/activity/;
s/(imgad[^&]*).*/\1/;
s/;ord=[?0-9]*//;
s/;&timestamp=[0-9]*//;
s/[&?]correlator=[0-9]*//;
s/&cookie=[^&]*//;
s/&ga_hid=[^&]*//;
s/&ga_vid=[^&]*//;
s/&ga_sid=[^&]*//;
# s/&prev_slotnames=[^&]*//
# s/&u_his=[^&]*//;
s/&dt=[^&]*//;
s/&dtd=[^&]*//;
s/&lmt=[^&]*//;
s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/[;&?]ord=[?0-9]*//;
s/[;&]mpvid=[^&;]*//;
s/&xpc=[^&]*//;
# yieldmanager
s/\?clickTag=[^&]*//;
s/&u=[^&]*//;
s/&slotname=[^&]*//;
s/&page_slots=[^&]*//;
}
print $x . "http://" . $1 . $2 . $y . "\n";

#cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
print $x . "http://" . $1 . "/" . $2 . "\n";

} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
print $x . "http://" . $1 . "\n";

#cdn, varialble 1st path
} elsif (($X[1] =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/[a-z0-9]{2,5}/cdn./;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#rapidshare
} elsif (($X[1] =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($X[1] =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

#domain/path/.*/path/filename
} elsif (($X[1] =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5,$6);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";

#like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($X[1] =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "http://cdn." . $4 . $6 . "\n";

#for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
print $x . "http://cdn.yimg.com/" . $3 . "\n";

#for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
print $x . "http://cdn.yimg.com/" . $3 . "\n";

#for yimg.com with &sig=
} elsif (m/^http:\/\/([^\.]*)\.yimg\.com\/(.*)/) {
@y = ($1,$2);
$y[0] =~ s/[a-z]+([0-9]+)?/cdn/;
$y[1] =~ s/&sig=.*//;
print $x . "http://" . $y[0] . ".yimg.com/" . $y[1] . "\n";

#youjizz. We use only domain and filename
} elsif (($X[1] =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
print $x . "http://squid-cdn-url/" . $2 . "." . $3 . "\n";

# spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
# @y = ($1,$2);
# $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
# print $x . "http://" . $y[0] . "." . $y[1] . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte"
#http://cdn1-28.projectplaylist.com
#http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

# all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
print $x . "http://" . $1 . "/" . $2 . "\n";

} else {
print $x . $X[1] . "\n";
}
}


sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*cpn=$CPN[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $2;
last;
}
last if --$lim close();
return $id;
}[/spoiler]
config permission
==================

- touch /var/log/squid/access.log

- touch /var/log/squid/cache.log

- chmod 777 -Rf proxy:proxy /squid/cache

- chmod 777 -Rf proxy:proxy /var/log/squid

- chmod 777 -Rf proxy:proxy /var/log/squid/access.log

- chmod 777 -Rf proxy:proxy /var/log/squid/cache.log

- chown proxy:proxy /squid/cache

- chmod 777 /squid/cache

- chown proxy:proxy /etc/squid/r25.pl

- chmod 777 /etc/squid/r25.pl



Cmd Lusca
=========
- squid -f /etc/squid/squid.conf -z
- sudo /etc/init.d/squid restart
- service squid start (untuk menjalankan squid)
- update-rc.d squid defaults
- squid -NDd1
- tail -f /cache1/access.log | ccze (untuk melihat log)
- netstat -pln |grep squid

apa kh tahapn sya itu

udah bener

?????

tpi itu blm sya tambah config dari mas pragola untuk mengulang start squid di lokasi /etc/init.d/squid

yaitu seperti yg mas pragola kasi adalah :

Coba mulai lagi dari =
Code:
# chmod 755 /etc/init.d/squid
# update-rc.d -f squid remove
# update-rc.d squid defaults
# squid -z

Tunggu sampai squid selesai membuat dir_cache dan swap.state, lalu lanjutkan =
Code:
# squid -NDd1

Jika ada eror, pesan eror-nya anda kopas di sini. Jika tdk ada eror, lanjutnkan dengan =
Code:
# /etc/init.d/squid start

Jika eror (failed), jalankan CLI di bawah ini dan ouputnya anda kopas di sini
Code:
# tail /var/log/syslog


User avatar
sawitbahar
Posts: 41
Joined: 04 Apr 2013, 17:51
Location: jambi

Post by sawitbahar » 24 Apr 2013, 11:23

@Pragola

mass yutub yg(http://s(s2).youtube.com kog masih Miss ya


tapi klu udah keluar r8--- baru Hit

Mohon mzz klu ada solusinya


User avatar
sigaret
Posts: 29
Joined: 04 Feb 2013, 13:08
Location: Bandung
Contact:

Post by sigaret » 24 Apr 2013, 14:06

akhirnya resolve juga

terima kasih om pati link nya yang kemaren om kasih
udah ga eror lagi youtubenya :D

dengan rebuild enable_refere.log
dan
ganti storeurl.pl nya yang d page 9 jadi bisa


terimakasih

semoga FUI maakin majuu dan pinter pinter semua isinya


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 17:02

@SawitBahar
Waduh saya belum sempat oprek2 3.HEAD, sory :)

@sigaret
Sudah coba storeurl yang release r25 di pejwan ?


User avatar
sigaret
Posts: 29
Joined: 04 Feb 2013, 13:08
Location: Bandung
Contact:

Post by sigaret » 24 Apr 2013, 17:16

belum om
sekarang lagi nyoba blok situs hadeh gagal mulu ni :D


User avatar
amak
Posts: 24
Joined: 06 Aug 2012, 19:43
Location: Bojonegoro

Post by amak » 24 Apr 2013, 17:58

Pragola_Pati wrote:@SawitBahar
Waduh saya belum sempat oprek2 3.HEAD, sory :)

@sigaret
Sudah coba storeurl yang release r25 di pejwan ?
mas mau nanya saya coba instal ubuntu 12.04.2 lts saya instal paket
(apt-get -y install squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 acpid unzip libfile-readbackwards-perl)
ko' di dalamnya langsung ada SQUID 3.1.19
mas
salahnya di mana? dan cara ngapusnya gmn?.thnks


User avatar
sawitbahar
Posts: 41
Joined: 04 Apr 2013, 17:51
Location: jambi

Post by sawitbahar » 24 Apr 2013, 17:59

@Pragola


ngk mzz masih r25 mzz bukan squi3.HEAD


User avatar
pluto01
Posts: 58
Joined: 27 Mar 2013, 20:15

Post by pluto01 » 24 Apr 2013, 18:02

@amak
Jika dicoba seperti ini apakah bisa kira2 gan ?

apt-get purge squid3
apt-get autoremove


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 18:19

sawitbahar wrote:@Pragola
ngk mzz masih r25 mzz bukan squi3.HEAD
Dan mau dicobakan untuk men-cache https -nya yusub ?


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:20

mas pragola

udah sukses instal nya gk ada lgi pesan errror

tpi ko cliet gk mau konek ya mas ?????????

ini topologinya mikrotik seagai gateway speedy, proxynya sebagai external cache


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:21

@mas pragola

jika saya disable kan NAT pada proxy di mikrotik ya running, tpi kn lepas dari proxy externalnya mas ????? kira2 masaahnya ada dmana ya???? apa ada di acl.confnya ???????

di dalam aclnya sya hanya menyesuaikan besaran cache


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:24

@mas pragola

padahal jika instal squid biasa, dengan memakai squid.conf yg punya saya dulu mau running,

sya ngikutin config mule dari squid.conf-nya mas pragola kn agar bisa sinkron dengan config storeurl.pl-nya mas, dmana y letask kesalahannya

intina di web browser tertampil

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

itu udah saya coba pake firefox, chrome, internet explore

dari pesan tersebut sih mengacu kepada apache, tpi dmananya letak kesalahannya, mohon pencerahannya ya mas pragola


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:35

@mas pragola

sya dah beri # di config acl.conf-nya yg berhubungan dengan apache

hasilnya tidak timbul pesan apache lgi, tpi skrang hasilnya malah muter muter muter muter dan muter, gk ada sama sekalai effecntnya

haduh knapa jadi bgini ya mas pragola

mohon pencerahannya


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 19:36

@madara07
Coba anda cek lagi squid.conf, terutama yang berkaitan dengan jaringan anda dan mengacu pada squid.conf anda yang dulu :)


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:45

Pragola_Pati wrote:@madara07
Coba anda cek lagi squid.conf, terutama yang berkaitan dengan jaringan anda dan mengacu pada squid.conf anda yang dulu :)
mas pragola senang anda respon lagi heheheheh

mas sya ganti squid.conf nya dengan squid.conf punya saya yg dulu, tapi storeurl.pl yg r25.pl dari om sjw, tettap terpasang dan di chmod, hanya squid.confnya saya hapus dan saya ganti squid.conf-nya dengan punya saya yg dulu hasilnya mau running client, dan tercahce denga baek masalahnya buka youtube = alias cache contetnt dynamic tetap aja missss abisssss, klo gini caranya berarti storeurl.pl nya yg tidak saya hapus itu tidak berfungsi dunk ????????, percuma dunk pasang lusca, apa karena squid.confnya dari mas pragola yg saya hapus semua dan saya ganti denan squid.conf punya saya yg dlu. apa ada kaitannya ya squid.confnya mas paragola dengan storeurl om sjw ?????


mohon pencerahannya ya mas pragola


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:48

@mas pragola

ini squid.conf saya yg dulu saya pake, hasil copas jg sih hanya sesuaikan networknya saja
[spoiler]#-----------------------------------#
# Proxy Server Versi 2.7.Stable7
# by teukurizal@yahoo.com
# update 9 September 2010
#-----------------------------------#

#---------------------------------------------------------------#
# Port
#---------------------------------------------------------------#

http_port 3128 transparent
icp_port 3130
prefer_direct off

#-----------------------------------------------------------------#
# Cache & Object
#------------------------------------------------------------------#

cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99

max_filedesc 8192

maximum_object_size 4095 MB
minimum_object_size 0 bytes
maximum_object_size_in_memory 4 bytes

ipcache_size 5120
ipcache_low 98
ipcache_high 99

fqdncache_size 5120

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

#----------------------------------------------------------------#
# cache_dir
#----------------------------------------------------------------#
cache_dir aufs /squid/cache1 6000 32 256
cache_dir aufs /squid/cache2 6000 32 256
cache_dir aufs /squid/cache3 6000 32 256

cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
cache_swap_log /var/log/squid/swap.state

dns_nameservers /etc/resolv.conf

emulate_httpd_log off
hosts_file /etc/hosts
# half_closed_clients off
negative_ttl 1 minutes


#---------------------------------------------------------------#
# Rules: Safe Port
#---------------------------------------------------------------#

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8

acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 631 # cups
acl Safe_ports port 10000 # webmin
acl Safe_ports port 901 # SWAT
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel

acl purge method PURGE
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports


#--------------------------------------------------------------#
# Refresh Pattern
#--------------------------------------------------------------#

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^http: 720 90% 432000

refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|mpg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(deb|rpm|exe|ram|bin|pdf|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(zip|gz|arj|lha|lzh|tar|tgz|cab|rar)$ 10080 95% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.index.(html|htm|php|asp|aspx|cgi)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js) 1440 40% 40320
refresh_pattern . 0 20% 4320

#---------------------------------------------------------------#
# Memaksa file2 video untuk di cache
#---------------------------------------------------------------#

acl streaming url_regex -i \.youtube\.com\/get_video\?
acl streaming url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl streaming url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl streaming url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl streaming url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplayback\?
acl streaming url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplay\?
acl streaming url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/get_video\?
acl streaming url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl streaming url_regex -i vid\.akm\.dailymotion\.com\/
acl streaming url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl streaming url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl streaming url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl streaming url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl streaming url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl streaming url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/
acl streaming url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl streaming url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
acl streaming url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
acl streaming url_regex -i get_video\?video_id videodownload\?
acl streaming_dom dstdomain .mccont.com dl.redtube.com .cdn.dailymotion.com .youtube.com .googlevideo.com
cache allow streaming
cache allow streaming_dom

#---------------------------------------------------------------#
# HIERARCHY (BYPASS CGI)
#---------------------------------------------------------------#

hierarchy_stoplist cgi-bin ? .js .jsp
acl QUERY urlpath_regex cgi-bin \? .js .jsp
no_cache deny QUERY


#----------------------------------------------------------------#
# SNMP
#----------------------------------------------------------------#

snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all


#---------------------------------------------------------------#
# ALLOWED ACCESS
#---------------------------------------------------------------#

acl proxyku src 192.168.0.0/24 ## Sesuaikan
acl satu src "/etc/satu"
acl block_satu url_regex "/etc/block_satu"
http_access allow satu !block_satu
http_access deny block_satu
http_access allow proxyku
http_access allow localhost
http_access allow all
http_reply_access allow all
icp_access allow proxyku
icp_access allow localhost
icp_access deny all
always_direct deny all

#---------------------------------------------------------------#
# Cache CGI & Administrative # http://[ip-proxy]/cgi-bin/cachemgr.cgi
#---------------------------------------------------------------#

cache_mgr zefry.devil@yahoo.com.sg
#cachemgr_passwd 123456 all ## sesuaikan
visible_hostname dns.hip-metal
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14

#---------------------------------------------------------------#
# Marking ZPH for b/w management
#---------------------------------------------------------------#

### Marking ZPH
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136



dan di bawah ini storeurl.pl yg sya kasi nama r25.pl yg dari mas pragola by om sjw, dan tetap masih terpasang di mesin proxy sya, hanya squid.confnya aja yg berbeda

#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamp ... Discussion

# http://www.facebook.com/stressss

$|=1;
while () {
@X = split;
$x = $X[0] . " ";

#facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
print $x . "http://blog-cdn." . $1 . "\n";

#ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
print $x . "http://cdn.ytimg.com" . $1 . "\n";

#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
print $x . "http://avast-cdn." . $1 . "\n";

#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
print $x . "http://kav-cdn." . $1 . "\n";

#AVG
} elsif (m/^http:\/\/update.avg.com/) {
print $x . "http://avg-cdn." . $1 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
print $x . "http://" . $1 . $2 . "\n";

#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
print $x . "http://" . $1 . $2 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
print $x . "http://" . $1 . $2 . "\n";

# for ALL Youtube ( range & non range )
# first you need do this
# install package dependencies "apt-get install libfile-readbackwards-perl"
# add line below to your squid config and remove "#"

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
$id = &GetID($CPN[0], $IDS[0]);
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";

#Google
} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
print $x . "http://www.google-analytics.com/__utm.gif\n";

#Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
$y = $3;$z = $2;
for ($y) {
s/pixel;.*/pixel/;
s/activity;.*/activity/;
s/(imgad[^&]*).*/\1/;
s/;ord=[?0-9]*//;
s/;&timestamp=[0-9]*//;
s/[&?]correlator=[0-9]*//;
s/&cookie=[^&]*//;
s/&ga_hid=[^&]*//;
s/&ga_vid=[^&]*//;
s/&ga_sid=[^&]*//;
# s/&prev_slotnames=[^&]*//
# s/&u_his=[^&]*//;
s/&dt=[^&]*//;
s/&dtd=[^&]*//;
s/&lmt=[^&]*//;
s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
s/[;&?]ord=[?0-9]*//;
s/[;&]mpvid=[^&;]*//;
s/&xpc=[^&]*//;
# yieldmanager
s/\?clickTag=[^&]*//;
s/&u=[^&]*//;
s/&slotname=[^&]*//;
s/&page_slots=[^&]*//;
}
print $x . "http://" . $1 . $2 . $y . "\n";

#cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
print $x . "http://" . $1 . "/" . $2 . "\n";

} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
print $x . "http://" . $1 . "\n";

#cdn, varialble 1st path
} elsif (($X[1] =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/[a-z0-9]{2,5}/cdn./;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#rapidshare
} elsif (($X[1] =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($X[1] =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

#domain/path/.*/path/filename
} elsif (($X[1] =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5,$6);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";

#like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($X[1] =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
print $x . "http://cdn." . $4 . $6 . "\n";

#for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
print $x . "http://cdn.yimg.com/" . $3 . "\n";

#for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
print $x . "http://cdn.yimg.com/" . $3 . "\n";

#for yimg.com with &sig=
} elsif (m/^http:\/\/([^\.]*)\.yimg\.com\/(.*)/) {
@y = ($1,$2);
$y[0] =~ s/[a-z]+([0-9]+)?/cdn/;
$y[1] =~ s/&sig=.*//;
print $x . "http://" . $y[0] . ".yimg.com/" . $y[1] . "\n";

#youjizz. We use only domain and filename
} elsif (($X[1] =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
@y = ($1,$2,$4,$5);
$y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

#general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
print $x . "http://squid-cdn-url/" . $2 . "." . $3 . "\n";

# spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
# @y = ($1,$2);
# $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
# print $x . "http://" . $y[0] . "." . $y[1] . "\n";

#generic http://variable.domain.com/path/filename. "ext" or "exte"
#http://cdn1-28.projectplaylist.com
#http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
@y = ($1,$2,$3,$4);
$y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

# all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
print $x . "http://" . $1 . "/" . $2 . "\n";

} else {
print $x . $X[1] . "\n";
}
}


sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/log/squid/yt.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*cpn=$CPN[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $2;
last;
}
last if --$lim close();
return $id;
}[/spoiler]
hasilnya dari ke 2 config itu bisa running seperti biasa pada waktu sya memakain squid, tpi etap aja tidak bisa cache contetn dynamic youtube


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 19:53

@mas pragola

mohon bantuannya untuk squid.conf nya apa yg harus di sesuaikan, karena jika saya simak squid.conf sya yg copas punya blog orang, dengan squid.conf punya mas pragola, saya hanya menyesuaikan dengan di networknya saja

sedangkan di acl fileringnya saya sesuaikan apa adanya seseuai dengan squid.conf saya yg lama

help me mas pragola


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 24 Apr 2013, 20:20

@Mas Syaifuddin & Mas Pragola

wget http://www.squid-cache.org/Versions/v3/ ... 760.tar.gz
Server not found?

Tks.


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 20:57

@anbel
Iya sudah tdk ada.
http://www.squid-cache.org/Versions/v3/3.HEAD/

@madara07
Setelah anda menganti storeurl lama dengan yang baru untuk tujuan men-cache yusub, intinya ada di =

Code: Select all

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny
yang harus anda masukkan ke squid.conf


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 24 Apr 2013, 21:12

Pragola_Pati wrote:Iya sudah tdk ada.
http://www.squid-cache.org/Versions/v3/3.HEAD/
Mas Pragola perintah untuk install dari file zip gimana mas?
squid-3.HEAD-20121005-r12340.tar.gz (dlm file zip) jadi kita gak ambil dari webnya.


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 21:25

anbel wrote:
Pragola_Pati wrote:Iya sudah tdk ada.
http://www.squid-cache.org/Versions/v3/3.HEAD/
Mas Pragola perintah untuk install dari file zip gimana mas?
squid-3.HEAD-20121005-r12340.tar.gz (dlm file zip) jadi kita gak ambil dari webnya.
Yang ini mungkin maksutya ?

Code: Select all

# unzip nama_file.zip


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 24 Apr 2013, 21:39

Pragola_Pati wrote:
anbel wrote:
Pragola_Pati wrote:Iya sudah tdk ada.
http://www.squid-cache.org/Versions/v3/3.HEAD/
Mas Pragola perintah untuk install dari file zip gimana mas?
squid-3.HEAD-20121005-r12340.tar.gz (dlm file zip) jadi kita gak ambil dari webnya.
Yang ini mungkin maksutya ?

Code: Select all

# unzip nama_file.zip
Begini mas masksudnya, kita download file squid3 kita simpan, klu terjadi server down / file hilang dari server seperti kasus sekarang kita bisa install dari file yg sudah pernah kita download, perintahnya install gimana mas?

Tks,


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 21:46

Pragola_Pati wrote:@anbel
Iya sudah tdk ada.
http://www.squid-cache.org/Versions/v3/3.HEAD/

@madara07
Setelah anda menganti storeurl lama dengan yang baru untuk tujuan men-cache yusub, intinya ada di =

Code: Select all

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny
yang harus anda masukkan ke squid.conf
mas pragola

disaya begini root@x:/etc/squid# squid -k reconfigure
FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Apr 2013, 21:47

Perintah2-nya sama, yang anda perlukan hanya masuk ke lokasi penyimpanan file tsb.

Code: Select all

# cd /path/lokasi_download_squid-3.HEAD-20121005-r12340.tar.gz


User avatar
madara07
Posts: 79
Joined: 23 Apr 2013, 08:13

Post by madara07 » 24 Apr 2013, 21:53

Pragola_Pati wrote:@anbel
Iya sudah tdk ada.
http://www.squid-cache.org/Versions/v3/3.HEAD/

@madara07
Setelah anda menganti storeurl lama dengan yang baru untuk tujuan men-cache yusub, intinya ada di =

Code: Select all

# strip_query_terms off
# acl yutub url_regex -i .*youtube\.com\/.*$
# acl yutub url_regex -i .*youtu\.be\/.*$
# logformat squid1 %{Referer}>h %ru
# access_log /var/log/squid/yt.log squid1 yutub
# acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
# acl redirec urlpath_regex -i .*&ir=1&rr=12
# cache deny redirec
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
# acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
# storeurl_access deny reddeny
yang harus anda masukkan ke squid.conf

file yg harus ada di squid.conf

ada # strip_query_terms off
ada # acl yutub url_regex -i .*youtube\.com\/.*$
ada # acl yutub url_regex -i .*youtu\.be\/.*$
ada # acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
ada # acl redirec urlpath_regex -i .*&ir=1&rr=12
ada # cache deny redirec
ada # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
ada # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
ada # storeurl_access deny reddeny
ada # logformat squid1 %{Referer}>h %ru

hanya ini yg error # access_log /var/log/squid/yt.log squid1 yutub
FATAL: Bungled squid.conf line 86: access_log /var/log/squid/yt.log squid1 yutub
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

jika di kasi pagar tadak aka fatal error bungled, mas pragola biolang wajib ada juga

solusinya ????


Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests