[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
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Re: [HOT POOLLING]Apakah Youtube Error Lagi ?

Post by anbel » 12 Apr 2013, 12:51

SyaifuddinJW wrote:hari ini pengen kunjungan balik ke kediaman @pragola_pati
semoga gak mengganggu waktu istirahatnya di siang hari ini, sekaligus mau cari cari sesuatu di pati
Kalau deket pengin silaturahmi juga Mas, siapa tahu dapat cipratan ilmunya, :D
Semoga di Pati dapat sesuatu yang bermanfaat :)


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 12 Apr 2013, 14:34

barusan ada yg bertanya tanya.

Tanya "Kalau yt.log di rotate apakah video yg pernah diputar sebelumnya akan tetap HIT?? "
Jawab iya, karena yt.log tersebut hanya pembantu saat video di putar untuk mendapatkan ID link.

Tanya "Lalu bagaimana dengan video yg sebelum penerapan storeurl baru (dari release 19 s/d 25 ) apakah tetap HIT, dan kenapa saat saya terapkan kok tidak HIT ??"
Jawab pada saat kita menggunakan storeurl yg lama maka yg kita gunakan sebagai penandanya adalah ID dari file, ITAG & Range. sedangkan pada storeurl yg baru yg kita gunakan adalah ID dari VIDEO misal link http://www.youtube.com/watch?v=6FfaIFAeRHQ maka yg kita jadikan ID adalah 6FfaIFAeRHQ , sehingga tidak sama dengan ID dari storeurl yg lama. dan inipun yg saya dapat katakan bahwa walau YT.LOG di rotate maka video tetap akan HIT

Tanya "Kalau kedepannya berubah algoritma apakah akan terbung kembali cache yg sudah ada??"
Jawab Tidak, apabila algoritma youtube berubah maka kemungkinan link asalnya akan tetap sama, dengan begitu maka kita masih dapat memanfaatkannya. terkecuali kalau si youtube sudah berubah https semua. walaupun demikian kemungkinan storeurlnya masih bisa digunakan di Squid 3.Head yg dapat melakukan SSL-Bump sehingga dapat dilihat linknya


User avatar
boga
Posts: 2
Joined: 11 Apr 2013, 17:30

Post by boga » 12 Apr 2013, 14:50

cah_clacap wrote:
Utk R25 memang (kelihatannya) nyangkut di VEVO atau HD mas... maaf kalo salah mhon sy dikoreksi
kebetulan saya pake r19,memang dapet full hit nya sih,tpi sebagian youtube vevo error,, untuk sementara saya disable dlo,blm saya liat lagi apakah bisa tercache atau tidak conf tersebut saya disable...


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

Post by q_p » 12 Apr 2013, 15:15

@SJW
Silahkan mas, tapi kok malah hujan gini :(
Kemarin ada juga yang tanya masalah dependensi libfile-readbackwards-perl dan build-option --enable-referer-log kaitannya dengan r25. Apa masih dibutuhkan pada r25 ?

Nah yang squid3.HEAD dengan SSL-Bump ini yang ditunggu-tunggu :D

@Anbel
Kalau pas lewat saja mampir :D


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

Post by anbel » 12 Apr 2013, 15:26

SyaifuddinJW wrote:barusan ada yg bertanya tanya.

Tanya "Kalau yt.log di rotate apakah video yg pernah diputar sebelumnya akan tetap HIT?? "
Jawab iya, karena yt.log tersebut hanya pembantu saat video di putar untuk mendapatkan ID link.

Tanya "Lalu bagaimana dengan video yg sebelum penerapan storeurl baru (dari release 19 s/d 25 ) apakah tetap HIT, dan kenapa saat saya terapkan kok tidak HIT ??"
Jawab pada saat kita menggunakan storeurl yg lama maka yg kita gunakan sebagai penandanya adalah ID dari file, ITAG & Range. sedangkan pada storeurl yg baru yg kita gunakan adalah ID dari VIDEO misal link http://www.youtube.com/watch?v=6FfaIFAeRHQ maka yg kita jadikan ID adalah 6FfaIFAeRHQ , sehingga tidak sama dengan ID dari storeurl yg lama. dan inipun yg saya dapat katakan bahwa walau YT.LOG di rotate maka video tetap akan HIT

Tanya "Kalau kedepannya berubah algoritma apakah akan terbung kembali cache yg sudah ada??"
Jawab Tidak, apabila algoritma youtube berubah maka kemungkinan link asalnya akan tetap sama, dengan begitu maka kita masih dapat memanfaatkannya. terkecuali kalau si youtube sudah berubah https semua. walaupun demikian kemungkinan storeurlnya masih bisa digunakan di Squid 3.Head yg dapat melakukan SSL-Bump sehingga dapat dilihat linknya
Berarti kesimpulannya hasil cache sebelum storeurl R19-R25 lebih baik di goyang inull saja ya, dari pada hdd sesak napas, he he he :D
Maaf kalau salah mohon dikoreksi.


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

Post by q_p » 12 Apr 2013, 15:28

@Anbel
Tidak usah mas, entar juga akan terdepak keluar dengan sendirinya


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

Post by anbel » 12 Apr 2013, 15:29

@Anbel
Kalau pas lewat saja mampir :D
[/quote]

Insyaallah Mas, Matur Suwun.
:kuku:


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 12 Apr 2013, 15:50

baru nyadar ada pangkat jendral bintang 5, padahal saya gak banyak postingan yg membantu


User avatar
mrxx
Posts: 13
Joined: 28 Mar 2013, 11:37

Post by mrxx » 12 Apr 2013, 16:24

SyaifuddinJW wrote:baru nyadar ada pangkat jendral bintang 5, padahal saya gak banyak postingan yg membantu
:kuku: :kuku: :kuku:


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

Post by q_p » 12 Apr 2013, 19:16

SyaifuddinJW wrote:baru nyadar ada pangkat jendral bintang 5, padahal saya gak banyak postingan yg membantu
Pengaruh dari warna merah di bawah ini =
[img]http://ubuntu-indonesia.com/public/Scre ... :38:18.png[/img]


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 12 Apr 2013, 19:47

Pragola_Pati wrote:
SyaifuddinJW wrote:baru nyadar ada pangkat jendral bintang 5, padahal saya gak banyak postingan yg membantu
Pengaruh dari warna merah di bawah ini =
[img]http://ubuntu-indonesia.com/public/Scre ... :38:18.png[/img]
rasanya jadi kurang nyaman


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

Post by q_p » 12 Apr 2013, 19:58

Betul, sebagian warga merasa keberatan kok.


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

Post by anbel » 12 Apr 2013, 20:38

@Mas Syaifuddin & Mas Pragola

Mas mungkin ini sebagai penilainan & sanjungan dari warga FUI kepada Mas Syaifuddin & Mas Pragola, jadi ya mohon dimaklum saja.


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

Post by q_p » 13 Apr 2013, 00:18

Google Chrome Update tdk bisa ter-cache :confused:


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

Post by anbel » 13 Apr 2013, 00:35

Pragola_Pati wrote:Google Chrome Update tdk bisa ter-cache :confused:
Google Chrome Versi berapa Mas?
Update Version 26.0.1410.64 m saya test gak masalah
Attachments
HIT _GC.JPG
HIT _GC.JPG (192.73 KiB) Viewed 979 times


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

Post by q_p » 13 Apr 2013, 01:25

Maksud saya bukan itu, kalau kita melakukan update browser GoogleChrome tdk ter-cache, Java juga tdk.
Bukan nyetel youtube dengan GoogleChrome :)


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

Post by anbel » 13 Apr 2013, 01:36

Pragola_Pati wrote:Maksud saya bukan itu, kalau kita melakukan update browser GoogleChrome tdk ter-cache, Java juga tdk.
Bukan nyetel youtube dengan GoogleChrome :)
Saya kira... :blush:


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 13 Apr 2013, 05:21

wah ada PR baru nich. ke pati dulu ach pagi ini, mau ngobatin anak ke dokter

o ya, yg release 25 gak perlu build dengan --enable-referer-log, tapi kalau pun itu digunakan ya gak ada salahnya, toh gak mengganggu :D


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

Post by q_p » 13 Apr 2013, 05:43

Thanks mas, sudah saya update di pejwan.

##
Dua-duanya yang sakit ? Cepat sembuh ya nak ... :)


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

Post by sawitbahar » 13 Apr 2013, 08:58

mass...tolong di koreksi squid.conf sy...yt ada yg bisa ada yg ngk begitu pula dgn patch game online seperti atlantic
###############################################################
## ....................
## ============================================================
## ....................
###############################################################

# ACCESS CONTROLS
#
# -----------------------------------------------------------------------------
#acl download urlpath_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$ \.avi$ \.mpg$ \.mpeg$
#acl download urlpath_regex -i \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$ \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.flv$
#acl download urlpath_regex -i \.mp2$ \.mpa$ \.wax$ \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$ \.7z$
#acl download urlpath_regex -i \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$ \.ac3$ \.cda$ \.vro$ \.deb$

#tcp_outgoing_address 172.10.10.252 download
#tcp_outgoing_address 172.10.10.253

#Block specific users IP
acl blocked_clients src 168.10.2.19
http_access deny blocked_clients

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl localnet src 192.168.40.0/24
acl localnet src 192.168.111.0/24
acl SSL_ports port 443
acl Safe_ports port 80 81 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
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 CONNECT method CONNECT
acl purge method PURGE
acl snmppublic snmp_community public

# YOUTUBE

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



#
acl nocache urlpath_regex -i cgi-bin mrtg localhost localnet
acl nocache urlpath_regex -i \.(dbd|db|ver|ini|ui|cfg|lst|list|rsc|log|conf|txt)$
acl nocache urlpath_regex -i (captcha|reset.css|update.txt|gamenotice|PatchTimeCheck.dat|PatchPath.dat|vdf.info.gz|version)
acl games urlpath_regex -i \.afs.dat$
acl games urlpath_regex -i \.PatchTimeCheck.dat$
acl games urlpath_regex -i \.PatchPath.dat$
acl games urlpath_regex -i \.(ini|ui|lst|sc|htm|html|ver)$
acl games1 url_regex -i ^http:\/\/www.blogger.com\/home$
acl games1 url_regex -i ^http:\/\/www\.gstatic\.com.*\.js
acl videocache url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
acl videocache_allow_url urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl videocache_allow_url urlpath_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl videocache_allow_url urlpath_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url urlpath_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url urlpath_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url urlpath_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url urlpath_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url urlpath_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url urlpath_regex -i \.youporn\.com\/(.*)\.flv
acl videocache_allow_url urlpath_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url urlpath_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
acl videocache_allow_url urlpath_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url urlpath_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl videocache_allow_url urlpath_regex -i \.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url urlpath_regex -i redtube\.com\/(.*)\.flv
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id) streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.*
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe|msi|avi|(mp(e?g|a|e|1|2|3|4))|cab|exe)
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
acl speedtest_allow_dom dstdomain .speedtest.net
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET
acl msnvideo url_regex QualityLevel.*Fragment
acl apache rep_header Server ^Apache
cache deny games
cache deny games1
http_access deny videocache
http_access deny msnvideo

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow purge localhost
http_access deny purge
http_access allow localnet
http_access deny all
http_reply_access allow all
icp_access deny all
reply_body_max_size 0 allow all

# NETWORK OPTIONS
# -----------------------------------------------------------------------------

http_port 3128 transparent
zph_mode tos
zph_local 48
zph_sibling 0
zph_parent 0
zph_option 136

# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------

hierarchy_stoplist cgi-bin mrtg localhost localnet

# MEMORY CACHE OPTIONS
# -----------------------------------------------------------------------------

cache_mem 400 MB
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF

#Speedtest Manipulation
#------------------------------------------------------------------------------

#acl RW url_regex \/speedtest\/.*\.(jpg|txt|php).*
#url_rewrite_access allow RW
#url_rewrite_program /etc/squid/rewriter.pl
#url_rewrite_children 7
#url_rewrite_concurrency 10
#redirector_bypass on

# STORE REWRITER
#------------------------------------------------------------------------------

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny videocache_deny_dom
storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow speedtest_allow_url
storeurl_access allow speedtest_allow_dom
storeurl_access deny all
storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 10
storeurl_rewrite_concurrency 40
store_avg_object_size 64 KB


# DISK CACHE OPTIONS
# -----------------------------------------------------------------------------

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache1 45540 106 256
cache_dir aufs /cache2 45540 106 256
cache_dir aufs /cache3 45540 106 256
cache_dir aufs /cache4 45540 106 256
cache_dir aufs /cache5 45540 106 256
cache_dir aufs /cache6 45540 106 256
cache_dir aufs /cache7 45540 106 256
cache_dir aufs /cache8 45540 106 256
cache_dir aufs /cache9 45540 106 256
minimum_object_size 64 bytes
maximum_object_size 300 MB
cache_swap_low 98
cache_swap_high 99

# LOGFILE OPTIONS
# -----------------------------------------------------------------------------

referer_log /var/log/squid/referer.log
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
cache_swap_log /var/log/squid/swap.state
logfile_daemon /usr/lib/squid/logfile-daemon
logfile_rotate 7
log_icp_queries off
debug_options ALL,0
store_dir_select_algorithm round-robin

# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------

cache deny nocache
max_stale 4 weeks

refresh_pattern -i \.(sc-|dl-|ex-|mh-|mst|dll)$ 0 20% 0
refresh_pattern -i (main.exe|notice.html)$ 0 20% 0
refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0 20% 0
refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0

refresh_pattern (get_video|videoplayback|videodownload|\.flv).*(begin|start)\=[1-9][0-9]* 0 0% 0
refresh_pattern imeem.*\.flv 0 0% 0 override-lastmod override-expire
refresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stale
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0 20% 0

#speedtest
refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0
refresh_pattern speedtest.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png|swf|txt|js) 0 50% 180 store-stale negative-ttl=0


#ads
refresh_pattern ^.*safebrowsing.*google 131400 999999% 525600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|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).* 5259487 20% 5259487 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440

#antivirus
refresh_pattern avast.com.*\.vpx 40320 50% 525600 store-stale reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 131400 999999% 525600 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 131400 ignore-no-cache store-stale
refresh_pattern .symantecliveupdate.com.*\.zip 1440 90% 131400 ignore-must-revalidate store-stale
refresh_pattern .update.nai.com/.*\.(gem|zip|mcs) 43800 999999% 43800 ignore-reload store-stale ignore-must-revalidate
refresh_pattern .symantec.com.*\(exe|zip) 43800 999999% 43800 ignore-reload store-stale ignore-must-revalidate
refresh_pattern ^http://file.pb.gemscool.com.*\.zip 131400 999999% 131400 override-expire store-stale
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|mov|mkv|cab|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store ignore-private store-stale ignore-auth

refresh_pattern .kaskus.us.*\.(jpg|gif|png) 1440 60% 131400 override-expire store-stale

#fb
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(png|gif) 1440 60% 525600 override-expire store-stale
refresh_pattern .fbcdn.net.*\.(jpg|gif|png) 1440 60% 131400 ignore-no-cache override-expire ignore-reload store-stale negative-ttl=0


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

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

#banner IIX
refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload override-expire 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 override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale

#IIX DOWNLOAD
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 override-expire ignore-no-cache ignore-no-store store-stale ignore-auth

# ANTI VIRUS
refresh_pattern avast.com.*\.vpx 40320 50% 161280 store-stale reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 5259487 999999% 5259487 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 161280 ignore-no-cache store-stale
refresh_pattern mbamupdates.com.*\.ref 1440 50% 161280 reload-into-ims store-stale

#specific sites
refresh_pattern \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 131400 90% 525600 ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 131400 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 525600 99999999% 525600 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale negative-ttl=0
refresh_pattern \.(ico|video-stats) 525600 999999% 525600 override-expire 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\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale

refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 131400 999999% 525600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.(jpg|png) 525600 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 131400 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern garena\.com 525600 999999% 525600 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 525600 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 525600 999999% 525600 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 131400 999999% 525600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 525600 999999% 525600 reload-into-ims override-expire store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 999999% 525600 reload-into-ims override-expire ignore-private store-stale
refresh_pattern \.macromedia.com.*\.(z|exe|cab) 131400 999999% 525600 ignore-reload override-expire store-stale

#general
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 999999% 525600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu) 131400 999999% 525600 override-expire ignore-no-cache reload-into-ims
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 131400 999999% 525600 override-expire reload-into-ims ignore-reload
refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab|mar) 131400 999999% 525600 override-expire reload-into-ims ignore-no-store ignore-no-cache ignore-must-revalidate
refresh_pattern \.(mkv|mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 525600 9999999% 525600 ignore-must-revalidate ignore-private ignore-no-cache override-expire reload-into-ims
refresh_pattern -i (cgi-bin) 0 0% 0
refresh_pattern \.(php|jsp|cgi|asx)\? 0 0% 0
refresh_pattern . 0 50% 525600 store-stale


range_offset_limit 64 KB
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100

read_ahead_gap 16 KB
negative_ttl 0 seconds
positive_dns_ttl 1 weeks
negative_dns_ttl 30 seconds

# HTTP OPTIONS
# -----------------------------------------------------------------------------

via off
cache_vary on
broken_vary_encoding allow apache
vary_ignore_expire on
header_access From allow all
header_access Link deny all
header_access Server deny all
header_access Via deny all
header_access X-Forwarded-For deny all
server_http11 on

# TIMEOUTS
# -----------------------------------------------------------------------------

connect_timeout 30 seconds
request_timeout 60 seconds
half_closed_clients off
shutdown_lifetime 10 seconds

# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------

cache_mgr ADMIN_Al@m-Net
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname SQUID_ALAMSYAH

# ADVANCED NETWORKING OPTIONS
# -----------------------------------------------------------------------------

snmp_port 3401
snmp_access allow snmppublic localhost
snmp_access deny all
icp_port 0
log_icp_queries off
max_filedescriptors 8192
tcp_recv_bufsize 0 bytes

# DNS OPTIONS
# -----------------------------------------------------------------------------

dns_retransmit_interval 5 seconds
dns_timeout 30 seconds
dns_nameservers 8.8.8.8
ipcache_size 8192
fqdncache_size 8192

# MISCELLANEOUS
# -----------------------------------------------------------------------------

client_persistent_connections off
server_persistent_connections off
memory_pools off
forwarded_for off
cachemgr_passwd 123 all
client_db on
reload_into_ims on
maximum_single_addr_tries 2
retry_on_error on
pipeline_prefetch on


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

Post by sawitbahar » 13 Apr 2013, 09:11

utk storeurl.pl menggunakan r-25 mzz
saat ini kondisi squid lancar,tetapi ada beberapa yt ngk tercache maupun patch game online
Apa kah squid.conf sy ada yg perlu di edit agar lincah bermanuver mzz Pragola..?


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

Post by cah_clacap » 13 Apr 2013, 09:13

@mas pragola n mas syaifuddin # tanya nich mas, kelihatannya pas putar video youtube yg blm tercache, kok sampai menghabiskan bandwidth ya.
Sy BW 2 MB habis ludes cuma dipakai dua client di warnet. Pd hal biasanya 1,5 MB bisa dipake oleh 1 kampung.
Cara ngatasinya gmana bos?
Sy pake mikrotik rb750 pake setingan pcq queues, proxy pake dual core hd 320 gb, ram 4 gb
...trims ats bimbingannya


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

Post by cah_clacap » 13 Apr 2013, 09:15

@mas pragola n mas syaifuddin # tanya nich mas, kelihatannya pas putar video youtube yg blm tercache, kok sampai menghabiskan bandwidth ya.
Sy BW 2 MB habis ludes cuma dipakai dua client di warnet. Pd hal biasanya 1,5 MB bisa dipake oleh 1 kampung.
Cara ngatasinya gmana bos?
Sy pake mikrotik rb750 pake setingan pcq queues, proxy pake dual core hd 320 gb, ram 4 gb
...trims ats bimbingannya


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

Post by JuldianTan » 13 Apr 2013, 09:17

coba tambahankan queue untuk pc proxy nya
atau
buat queue untuk limit bw youtube pake layer7


User avatar
aben
Posts: 7
Joined: 11 Apr 2013, 23:53
Location: tangerang selatan

Post by aben » 13 Apr 2013, 09:33

Mas Pragola Pati terima kasih ya.., Mas Juldian Tan terima kasih ya..., teman-teman di forum ini juga terima kasih ya..., 2 hari ini ini kutipan2 dari forum ini memberi hasih luar biasa untuk squid saya ;

1. Pertama cache youtube berjalan sangat baik.
2. CPU resource sangat stabil max 30% dengan pelanggan +/- 300 user

Metode yang saya gunakan :
1. Cara install mengikuti Mas Juldian Tan
2. squid.conf kutipan Mas Juldian Tan.
3. refresh_pattern (pattern.conf) kutipan dari Mas Juldian Tan
4. storeurl.pl kutipan dari Mas Pragola Pati.


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

Post by q_p » 13 Apr 2013, 10:46

@sawitbahar
referer_log sudah tidak diperlukan jika anda menggunakan r25. Yang perlu dibenahi kayaknya pada bagian acl. Deklarasikan acl dalam satu kelompok, kemudian tag rule-nya (allow/deny) diurutkan. Kalau perlu gunakan opsi include direktori untuk menampung acl, refresh_pattern dan tuning. Sehingga anda cukup memasukkan =
include /etc/squid/acl.conf
include /etc/squid/refresh_pattern.conf
include /etc/squid/tune.conf

ke dalam squid.conf. Dan itu akan sangat membantu evaluasi.

@Cah Cilacap
Berapa sih kebutuhan rata2 bandwith untuk streaming youtube tanpa buffering di tempat anda ? Rasanya, dengan BW segitu akan terkuras habis mas. Kemungkinan ada masalah pada BW-management (priority, pemisahan IIX/INTL/Games dan trafic-local).

@Julian
Terima kasih :)

@Aben
Tadi pagi sempat lihat postingan anda, kemudian lenyap lagi. Kenapa :D ? Yang saya ingat, dalam squid.conf tsb strip_query_terms di deklarasikan 2 kali. Yang ada on-nya anda hapus saja.
Berapa RAM yang anda pasang untuk mendukung direktori cache yang 5 T (3 HDD) tsb ?


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

Post by sawitbahar » 13 Apr 2013, 12:00

An error occurred. Pleasa try again later

koq youtube sebagian ada muncul baca an gitu mzz..
pakai LUCAS_FMI
ubuntu 11.10
apakah squid conf ada yg perlu di kasih pagar ni mzz pragola
:hajarpc:
:hajarpc:


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

Post by sawitbahar » 13 Apr 2013, 12:02

http_access deny videocache
http_access deny msnvideo
#http_access deny range
http_access allow manager localhost
http_access deny blocked_clients
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow purge localhost
http_access deny purge
http_access allow localnet
http_access deny all
http_reply_access allow all
icp_access deny all
reply_body_max_size 0 allow all


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

Post by q_p » 13 Apr 2013, 13:48

Sabar ya mas, saya siapkan dulu :D


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

Post by q_p » 13 Apr 2013, 16:40

[size:20pt]TestDrive[/size]

[size:14pt]Buat warga FUI yang masih ter-kendala, silahkan merujuk ke sini. Bagi yang sudah sukses meng-konfigurasi, silahkan kalau mau mencoba. Intinya, storeurl kreasi mas SJW sudah saya coba di mesin dengan topologi di bawah ini. It's work, itulah hasilnya. Tolong dicermati :D [/size]

[size:17pt]topologi[/size]

[img]http://s20.postimage.org/gii02uk8d/topologi.png[/img]

[size:17pt]spek mesin[/size]
spek mesin
[html] � AMD Phenom II X4
� Motherboard ECS A780LM-M2
� 2 keping RAM Kingstones @ 4 GB
� 2 keping LAN Card (plus 1 internal LAN)
� 4 kotak HDD = � 1 HDD ATA 40 GB untuk System Server
� 1 HDD SATA 40 GB untuk Proxy Server (20 GB Used)
� 1 HDD SATA 80 GB untuk Proxy Server (20 GB Used)
� 1 HDD SATA 500 GB untuk Data Storage Server
� 1 kotak Power Supply PhenomRX KingSnake 500 watts
� 3 buah kipas pendingin
� OS Ubuntu Server 10.04.4 LTS LucidLynx (2.6.32-44-server #97-Ubuntu SMP x86_64 GNU/Linux) dijejali dengan :
> LAMP Server > Samba-CUPS Server
> DHCP Server > DNS Server (Unbound)
> NTP Server > squid 2.7.9 dynamic_contents patched
> squidGuard > WebHTB, CLAMAV dan HAVP
> WordPress > FTP-Server[/html]
[size:17pt]partisi hdd[/size]
partisi HDD

Code: Select all

Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda5              8,9G   1,3G   7,2G  16% /		#file system
/dev/sda1              1,1G   145M   883M  15% /boot		#file system
/dev/sda6              8,9G   1,5G   7,0G  18% /usr		#file system
/dev/sda7              9,9G   2,3G   7,1G  25% /var		#file system
/dev/sda8              8,9G   368M   8,1G   5% /usr/local	#file system
/dev/sdb5              101G   4,1G    97G   5% /home/share 	# Samba File/Folder sharing
/dev/sdb6              394G   372G   2,7G 100% /home/share_4	# FTP Server
/dev/sdc5               20G    16G   4,6G  78% /proxy_1		# cache_dir
/dev/sdd5               21G    16G   5,5G  74% /proxy_2		# cache_dir
/dev/sdc6               60G   8,7G    48G  16% /home/share_3	# tempat nyimpan koleksi *.iso
/dev/sdd6               19G   862M    17G   5% /home/share_2	# tempat BackUp
/dev/loop0             102M   8,4M    88M   9% /var/spool/havp
[size:17pt]build configuration[/size]
build configuration
Squid Cache: Version 2.7.STABLE9
configure options: '-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-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--with-aio' '--with-dl' '--enable-storeio=aufs,null' '--enable-removal-policies=heap' '--enable-icmp' '--enable-delay-pools' '--disable-wccp' '--enable-snmp' '--enable-cache-digests' '--enable-default-err-language=English' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--with-maxfd=65535' '--enable-follow-x-forwarded-for' '--enable-large-cache-files' '--with-large-files' '--enable-referer-log' 'CFLAGS=-march=amdfam10 -O2 -pipe'
[size:17pt]file squid.conf[/size]
file squid.conf

Code: Select all

#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 /proxy_1 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
[size:17pt]file acl.conf[/size]
acl.conf

Code: Select all

#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
[size:17pt]file tune.conf[/size]
tune.conf

Code: Select all

#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 4096		# Mohon sesuaikan dengan RAM
ipcache_low 98
ipcache_high 99
fqdncache_size 2048		# 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
[size:17pt]file refresh_pattern.conf[/size]
refresh_pattern.conf

Code: Select all

#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 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 -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
[size:17pt]mgr:info[/size]
[spoiler=mgr:info][html]HTTP/1.0 200 OK
Server: squid/2.7.STABLE9
Date: Sat, 13 Apr 2013 04:59:35 GMT
Content-Type: text/plain
Expires: Sat, 13 Apr 2013 04:59:35 GMT
X-Cache: MISS from localhost
X-Cache-Lookup: MISS from localhost:3128
Connection: close

Squid Object Cache: Version 2.7.STABLE9
Start Time: Thu, 11 Apr 2013 16:20:10 GMT
Current Time: Sat, 13 Apr 2013 04:59:35 GMT
Connection information for squid:
Number of clients accessing cache: 16
Number of HTTP requests received: 236436
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 107.5
Average ICP messages per minute since start: 0.0
Select loop called: 5778881 times, 22.836 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 9.2%, 60min: 68.7%
Byte Hit Ratios: 5min: 2.3%, 60min: 15.3%
Request Memory Hit Ratios: 5min: 14.3%, 60min: 1.1%
Request Disk Hit Ratios: 5min: 61.0%, 60min: 95.5%
Storage Swap size: 30108680 KB
Storage Mem size: 4344 KB
Mean Object Size: 67.75 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.42149 0.00179
Cache Misses: 0.46965 0.44492
Cache Hits: 0.00767 0.00179
Near Hits: 0.14252 0.27332
Not-Modified Replies: 0.00194 0.00286
DNS Lookups: 0.00094 0.00094
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 131965.079 seconds
CPU Time: 4271.440 seconds
CPU Usage: 3.24%
CPU Usage, 5 minute avg: 8.29%
CPU Usage, 60 minute avg: 9.57%
Process Data Segment Size via sbrk(): 117092 KB
Maximum Resident Size: 550848 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 117092 KB
Ordinary blocks: 79156 KB 9404 blks
Small blocks: 0 KB 0 blks
Holding blocks: 32352 KB 7 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 37935 KB
Total in use: 111508 KB 75%
Total free: 37935 KB 25%
Total size: 149444 KB
Memory accounted for:
Total accounted: 51127 KB
memPoolAlloc calls: 46750652
memPoolFree calls: 45845862
File descriptor usage for squid:
Maximum number of file descriptors: 65535
Largest file desc currently in use: 177
Number of file desc currently in use: 142
Files queued for open: 0
Available number of file descriptors: 65393
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
444469 StoreEntries
349 StoreEntries with MemObjects
337 Hot Object Cache Items
444392 on-disk objects[/html][/spoiler]


User avatar
aben
Posts: 7
Joined: 11 Apr 2013, 23:53
Location: tangerang selatan

Post by aben » 13 Apr 2013, 17:11

@Mas Pragola Pati
Iya Mas mohon maaf tadi pagi sempet posting tp karena copy paste settingan tidak muat di editor dan takut salah akhirnya saya hapus lg Mas, tidak tahu apakah memang tidak muat di editor atau mungkin saya yang belum tahu caranya.

Untuk 5Tb HDD saya pakai 16 Giga aja kok Mas, masih kurang ya Mas memory untuk ukuran HDD sebesar itu ?


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

Post by q_p » 13 Apr 2013, 17:18

@Aben
Kalau tdk salah tiap 100 MB hdd butuh 10 MB RAM. Baiknya jangan terlalu ekstrim gitu, kecil2 tapi banyak (syukur pakai SSD) dan tambah setting seperti di squid.conf atas itu.


User avatar
aben
Posts: 7
Joined: 11 Apr 2013, 23:53
Location: tangerang selatan

Post by aben » 13 Apr 2013, 17:43

@Mas Pragola Pati
Terima kasih inputnya mas, artinya untuk baiknya besarnya HDD mengikuti besarnya RAM ya Mas dan akan lebih baik lagi kalau menggunakan HDD yg ukuran kecil2 saja dan tetap jumlah total besaran disesuaikan dengan besarnya RAM ? Gitu ya Mas ?

BTW semua masukkan di forum ini sangat2 membantu saya Mas, karena sesungguhnya saya ini peternak ayam Mas, karena dengan hasil kutipan2 dari forum ini saya sudah bisa fokus lagi beternak ayam.

Sekali lagi terima kasih Mas.....

Salam


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

Post by q_p » 13 Apr 2013, 17:50

Hebat punya farm sambil nyambi bos RTRW-net :)
Kurang lebihnya seperti itu mas, anda cermati saja trit TestDrive di atas. Untuk RAM lebih dari 4 MB, sebaiknya menggunakan procesor 64 bit dan Ubuntu (LTS) 64 bit juga.


User avatar
aben
Posts: 7
Joined: 11 Apr 2013, 23:53
Location: tangerang selatan

Post by aben » 13 Apr 2013, 17:51

@Mas Pragola Pati

Oh iya Mas, pekerjaan yang lama saya masih belum saya tinggalkan, jadi memang masih harus tanggung jawab terhadap urusan netwoking.


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 13 Apr 2013, 18:14

Pragola_Pati wrote:@Aben
Kalau tdk salah tiap 100 MB hdd butuh 10 MB RAM. Baiknya jangan terlalu ekstrim gitu, kecil2 tapi banyak (syukur pakai SSD) dan tambah setting seperti di squid.conf atas itu.
http://wiki.squid-cache.org/SquidFaq/SquidMemory


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 13 Apr 2013, 18:16

Pragola_Pati wrote:Hebat punya farm sambil nyambi bos RTRW-net :)
Kurang lebihnya seperti itu mas, anda cermati saja trit TestDrive di atas. Untuk RAM lebih dari 4 MB, sebaiknya menggunakan procesor 64 bit dan Ubuntu (LTS) 64 bit juga.
???

MB or GB ??


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

Post by q_p » 13 Apr 2013, 18:27

@Aben
@SJW
Ups sory .... tergesa-gesa maghrib-an :blush:
Ada kesalahan yang menggangu dari =
Pragola_Pati wrote:@Aben
Kalau tdk salah tiap 100 MB hdd butuh 10 MB RAM. Baiknya jangan terlalu ekstrim gitu, kecil2 tapi banyak (syukur pakai SSD) dan tambah setting seperti di squid.conf atas itu.
Berikut yang benar =
Squid membutuhkan sekitar 10 MB untuk setiap 1 GB dari totah dir_cache.
"As a rule of thumb on Squid uses approximately 10 MB of RAM per GB of the total of all cache_dirs (more on 64 bit servers such as Alpha), plus your cache_mem setting and about an additional 10-20MB. It is recommended to have at least twice this amount of physical RAM available on your Squid server. For a more detailed discussion on Squid's memory usage see the sections above" (http://wiki.squid-cache.org/SquidFaq/Sq ... _server.3F).

dan yang ini =
Pragola_Pati wrote:Hebat punya farm sambil nyambi bos RTRW-net :)
Kurang lebihnya seperti itu mas, anda cermati saja trit TestDrive di atas. Untuk RAM lebih dari 4 MB, sebaiknya menggunakan procesor 64 bit dan Ubuntu (LTS) 64 bit juga.
Harusnya =
Pragola_Pati wrote:Hebat punya farm sambil nyambi bos RTRW-net :)
Kurang lebihnya seperti itu mas, anda cermati saja trit TestDrive di atas. Untuk RAM lebih dari 4 GB, sebaiknya menggunakan procesor 64 bit dan Ubuntu (LTS) 64 bit juga.


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 13 Apr 2013, 18:47

o ya, sekarang 32 bit dah bisa memory lebih dari 4 GB juga kok :D
asal pas racikannya saja


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

Post by pluto01 » 13 Apr 2013, 18:51

Sorry OOT dikit hanya ingin sampaikan saja rasa salut ane buat OM Pragola_Pati dan SyaifuddinJW sudah membantu build system (yg membutuhkan banyak pemikiran dan pengetesan serta ketelitian) dan dishare begitu saja dan masih mau memandu saat terkendala.
Terimakasih banyak OM.


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

Post by q_p » 13 Apr 2013, 18:54

Pakai kernel-pae ya mas ? saya pernah nyoba, mySQL -nya yang tetap nganggap 4 GB. Kalau tdk pakai mySQL, bisa .. :)


User avatar
SyaifuddinJW
Posts: 152
Joined: 22 Feb 2010, 10:59
Contact:

Post by SyaifuddinJW » 13 Apr 2013, 19:10

Pragola_Pati wrote:Pakai kernel-pae ya mas ? saya pernah nyoba, mySQL -nya yang tetap nganggap 4 GB. Kalau tdk pakai mySQL, bisa .. :)
salah satu referensi http://ubuntuforums.org/showthread.php?t=855511
PAE is a way to allow a 32bit kernel to address up to 36bits of memory (64GB). The kernel documentation says that there is a slight performance hit when using PAE however, in practice, you are not likely to notice any difference in performance. The default Ubuntu kernel does not have PAE enabled however, there are two ways to get a PAE enabled kernel:


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

Post by q_p » 13 Apr 2013, 19:33

Yang mengganjal benak saya waktu, bagaimanapun paket2 yang sudah terinstall terlanjur dalam 32 bit. Bagaimana dengan paket2 yang dikeluarkan dalam dua versi, 32 bit dan 64 bit ? Kita tidak bisa menggunakan 64 bit.
Ini yang tdk terjadi jika dari awal kita menyiapkan hardware-nya dalam platform 64 bit. Begitu kita intstall dengan ubuntu 64, semua paket juga dalam versi 64 bit.
Mungkin yang seperti ini tdk terasa, jka mesin kita dedicated untuk proxy. Karena tdk begitu banyak paket yang terinstall, dibandingkan dengan server seperti dalam topologi saya di atas.
cmiiw.


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

Post by sawitbahar » 13 Apr 2013, 20:26

http://www.youtube.com/watch?v=LKIZl0jtJfc
di putar link yg atas timbul
An erroor occurred, Please tri again later.

tp klu kita klik kanan POP UP
timbul link yg d bawah
https://www.youtube.com/tv?vq=hd720#/wa ... KIZl0jtJfc
link ini bisa terbuka

Bagai mana ngatasi permasalahan ini


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

Post by sawitbahar » 13 Apr 2013, 20:30

###############################################################
## ....................
## ============================================================
## ....................
###############################################################

# ACCESS CONTROLS
#
# -----------------------------------------------------------------------------
#acl download urlpath_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$ \.avi$ \.mpg$ \.mpeg$
#acl download urlpath_regex -i \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$ \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.flv$
#acl download urlpath_regex -i \.mp2$ \.mpa$ \.wax$ \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$ \.7z$
#acl download urlpath_regex -i \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$ \.ac3$ \.cda$ \.vro$ \.deb$

#tcp_outgoing_address 172.10.10.252 download
#tcp_outgoing_address 172.10.10.253

#Block specific users IP
acl blocked_clients src 168.10.2.19
http_access deny blocked_clients

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl localnet src 192.168.40.0/24
acl localnet src 192.168.111.0/24
acl SSL_ports port 443
acl Safe_ports port 80 81 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
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 CONNECT method CONNECT
acl purge method PURGE
acl snmppublic snmp_community public
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 range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
acl nocache urlpath_regex -i cgi-bin mrtg localhost localnet
acl nocache urlpath_regex -i \.(dbd|db|ver|ini|ui|cfg|lst|list|rsc|log|conf|txt)$
acl nocache urlpath_regex -i (captcha|reset.css|update.txt|gamenotice|PatchTimeCheck.dat|PatchPath.dat|vdf.info.gz|version)
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
acl games urlpath_regex -i \.afs.dat$
acl games urlpath_regex -i \.PatchTimeCheck.dat$
acl games urlpath_regex -i \.PatchPath.dat$
acl games urlpath_regex -i \.(ini|ui|lst|sc|htm|html|ver)$
acl games1 url_regex -i ^http:\/\/www.blogger.com\/home$
acl games1 url_regex -i ^http:\/\/www\.gstatic\.com.*\.js
acl videocache url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
acl videocache_allow_url urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl videocache_allow_url urlpath_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl videocache_allow_url urlpath_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url urlpath_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url urlpath_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url urlpath_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url urlpath_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url urlpath_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url urlpath_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url urlpath_regex -i \.youporn\.com\/(.*)\.flv
acl videocache_allow_url urlpath_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url urlpath_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
acl videocache_allow_url urlpath_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url urlpath_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl videocache_allow_url urlpath_regex -i \.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url urlpath_regex -i redtube\.com\/(.*)\.flv
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id) streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.*
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe|msi|avi|(mp(e?g|a|e|1|2|3|4))|cab|exe)
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
acl speedtest_allow_dom dstdomain .speedtest.net
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET
acl msnvideo url_regex QualityLevel.*Fragment
acl apache rep_header Server ^Apache
cache deny games
cache deny games1
cache deny redirec
http_access deny videocache
http_access deny msnvideo
#http_access deny range
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow purge localhost
http_access deny purge
http_access allow localnet
http_access deny all
http_reply_access allow all
icp_access deny all
reply_body_max_size 0 allow all

# NETWORK OPTIONS
# -----------------------------------------------------------------------------

http_port 3128 transparent
zph_mode tos
zph_local 48
zph_sibling 0
zph_parent 0
zph_option 136

# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------

hierarchy_stoplist cgi-bin mrtg localhost localnet

# MEMORY CACHE OPTIONS
# -----------------------------------------------------------------------------

cache_mem 400 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF

#Speedtest Manipulation
#------------------------------------------------------------------------------

#acl RW url_regex \/speedtest\/.*\.(jpg|txt|php).*
#url_rewrite_access allow RW
#url_rewrite_program /etc/squid/rewriter.pl
#url_rewrite_children 1
#url_rewrite_concurrency 10
#redirector_bypass on

# STORE REWRITER
#------------------------------------------------------------------------------

#acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
#acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
#acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
#acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny reddeny
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny videocache_deny_dom
storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow speedtest_allow_url
storeurl_access allow speedtest_allow_dom
storeurl_access deny all
storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 10
store_avg_object_size 64 KB


# DISK CACHE OPTIONS
# -----------------------------------------------------------------------------

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache1 45540 106 256

minimum_object_size 64 bytes
maximum_object_size 300 MB
cache_swap_low 98
cache_swap_high 99

# LOGFILE OPTIONS
# -----------------------------------------------------------------------------

access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
logfile_rotate 3
log_ip_on_direct on
pid_filename /var/run/squid.pid
strip_query_terms off

# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------

cache deny nocache
max_stale 4 weeks

refresh_pattern -i \.(sc-|dl-|ex-|mh-|mst|dll)$ 0 20% 0
refresh_pattern -i (main.exe|notice.html)$ 0 20% 0
refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0 20% 0
refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0

refresh_pattern (get_video|videoplayback|videodownload|\.flv).*(begin|start)\=[1-9][0-9]* 0 0% 0
refresh_pattern imeem.*\.flv 0 0% 0 override-lastmod override-expire
refresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stale
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0 20% 0

#speedtest
refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0
refresh_pattern speedtest.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png|swf|txt|js) 0 50% 180 store-stale negative-ttl=0


#ads
refresh_pattern ^.*safebrowsing.*google 131400 999999% 525600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|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).* 5259487 20% 5259487 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440

#antivirus
refresh_pattern avast.com.*\.vpx 40320 50% 525600 store-stale reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 131400 999999% 525600 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 131400 ignore-no-cache store-stale
refresh_pattern .symantecliveupdate.com.*\.zip 1440 90% 131400 ignore-must-revalidate store-stale
refresh_pattern .update.nai.com/.*\.(gem|zip|mcs) 43800 999999% 43800 ignore-reload store-stale ignore-must-revalidate
refresh_pattern .symantec.com.*\(exe|zip) 43800 999999% 43800 ignore-reload store-stale ignore-must-revalidate
refresh_pattern ^http://file.pb.gemscool.com.*\.zip 131400 999999% 131400 override-expire store-stale
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|mov|mkv|cab|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store ignore-private store-stale ignore-auth

refresh_pattern .kaskus.us.*\.(jpg|gif|png) 1440 60% 131400 override-expire store-stale

#fb
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(png|gif) 1440 60% 525600 override-expire store-stale
refresh_pattern .fbcdn.net.*\.(jpg|gif|png) 1440 60% 131400 ignore-no-cache override-expire ignore-reload store-stale negative-ttl=0


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

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

#banner IIX
refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims ignore-reload override-expire 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 override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale

#IIX DOWNLOAD
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 override-expire ignore-no-cache ignore-no-store store-stale ignore-auth

# ANTI VIRUS
refresh_pattern avast.com.*\.vpx 40320 50% 161280 store-stale reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 5259487 999999% 5259487 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 161280 ignore-no-cache store-stale
refresh_pattern mbamupdates.com.*\.ref 1440 50% 161280 reload-into-ims store-stale

#specific sites
refresh_pattern \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 131400 90% 525600 ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 131400 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 525600 99999999% 525600 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale negative-ttl=0
refresh_pattern \.(ico|video-stats) 525600 999999% 525600 override-expire 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\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale

refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 131400 999999% 525600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.(jpg|png) 525600 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 131400 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern garena\.com 525600 999999% 525600 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 525600 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 525600 999999% 525600 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 131400 999999% 525600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 525600 999999% 525600 reload-into-ims override-expire store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 999999% 525600 reload-into-ims override-expire ignore-private store-stale
refresh_pattern \.macromedia.com.*\.(z|exe|cab) 131400 999999% 525600 ignore-reload override-expire store-stale

#general
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 999999% 525600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu) 131400 999999% 525600 override-expire ignore-no-cache reload-into-ims
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 131400 999999% 525600 override-expire reload-into-ims ignore-reload
refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab|mar) 131400 999999% 525600 override-expire reload-into-ims ignore-no-store ignore-no-cache ignore-must-revalidate
refresh_pattern \.(mkv|mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 525600 9999999% 525600 ignore-must-revalidate ignore-private ignore-no-cache override-expire reload-into-ims
refresh_pattern -i (cgi-bin) 0 0% 0
refresh_pattern \.(php|jsp|cgi|asx)\? 0 0% 0
refresh_pattern . 0 50% 525600 store-stale


range_offset_limit 128 KB
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100

read_ahead_gap 16 KB
negative_ttl 0 seconds
positive_dns_ttl 1 weeks
negative_dns_ttl 30 seconds

# HTTP OPTIONS
# -----------------------------------------------------------------------------

via off
cache_vary on
broken_vary_encoding allow apache
vary_ignore_expire on
header_access From allow all
header_access Link deny all
header_access Server deny all
header_access Via deny all
header_access X-Forwarded-For deny all
server_http11 on

# TIMEOUTS
# -----------------------------------------------------------------------------

connect_timeout 30 seconds
request_timeout 60 seconds
half_closed_clients off
shutdown_lifetime 10 seconds

# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------

cache_mgr ADMIN
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname SQUID

# ADVANCED NETWORKING OPTIONS
# -----------------------------------------------------------------------------

snmp_port 3401
snmp_access allow snmppublic localhost
snmp_access deny all
icp_port 0
log_icp_queries off
max_filedescriptors 8192
tcp_recv_bufsize 0 bytes

# DNS OPTIONS
# -----------------------------------------------------------------------------

dns_retransmit_interval 5 seconds
dns_timeout 30 seconds
dns_nameservers 8.8.8.8
ipcache_size 10240
fqdncache_size 2048

# MISCELLANEOUS
# -----------------------------------------------------------------------------

client_persistent_connections off
server_persistent_connections off
memory_pools off
forwarded_for off
cachemgr_passwd 123 all
client_db on
reload_into_ims on
maximum_single_addr_tries 2
retry_on_error on
pipeline_prefetch on


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

Post by sawitbahar » 13 Apr 2013, 20:32

kira" yg perlu d pagar dan di tambah yg mana ni mass pragola..ni udh tk susun mzz


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

Post by q_p » 13 Apr 2013, 20:48

@Sawit
Pakai yang di TestDrive halaman 38 mas, anda tinggal sesuaiakan dengan jaringan anda.


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

Post by anbel » 13 Apr 2013, 20:53

Pragola_Pati wrote:@Anbel
@SJW
Ups sory .... tergesa-gesa maghrib-an :blush:
Ada kesalahan yang menggangu dari =
Pragola_Pati wrote:@Aben
Kalau tdk salah tiap 100 MB hdd butuh 10 MB RAM. Baiknya jangan terlalu ekstrim gitu, kecil2 tapi banyak (syukur pakai SSD) dan tambah setting seperti di squid.conf atas itu.
@Mas Pragola
@Anbel atw @Aben ?? :)


User avatar
joenspidy
Posts: 2
Joined: 13 Apr 2013, 18:45

Post by joenspidy » 13 Apr 2013, 20:59

maaf mas pati, saya ikuti tutorial sampean. ada kendala dikit di saya :

2013/04/13 20:53:10| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

mohon clue nya mas :)


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

Post by anbel » 13 Apr 2013, 21:08

@Mas Pragola
Mau tanya nih hardware ini support 64 bit gak ya?

root@Anbel:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.60GHz
stepping : 1
cpu MHz : 3600.240
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pebs bts pni dtes64 monitor ds_cpl est tm2 cid cx16 xtpr
bogomips : 7200.48
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

Sebelum di goyang inul systemnya, lebih baik bertanya dahulu dari pada gagal ditengah jalan.

Tks.


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

Post by cah_clacap » 13 Apr 2013, 21:13

Pragola_Pati wrote:[size:20pt]TEST DRIVE[/size]

[size:14pt]Buat warga FUI yang masih ter-kendala, silahkan merujuk ke sini. Bagi yang sudah sukses meng-konfigurasi, silahkan kalau mau mencoba. Intinya, storeurl kreasi mas SJW sudah saya coba di mesin dengan topologi di bawah ini. It's work, itulah hasilnya. Tolong dicermati, jangan asal kopas please ... :D [/size]

[size:17pt]topologi[/size]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Makasih bang ........... ini bisa kami jadikan rujukan ...... 2 jempol untuk antum ..........

[img]http://s20.postimage.org/gii02uk8d/topologi.png[/img]

[size:17pt]spek mesin[/size]
spek mesin
[html] � AMD Phenom II X4
� Motherboard ECS A780LM-M2
� 2 keping RAM Kingstones @ 4 GB
� 2 keping LAN Card (plus 1 internal LAN)
� 4 kotak HDD = � 1 HDD ATA 40 GB untuk System Server
� 1 HDD SATA 40 GB untuk Proxy Server (20 GB Used)
� 1 HDD SATA 80 GB untuk Proxy Server (20 GB Used)
� 1 HDD SATA 500 GB untuk Data Storage Server
� 1 kotak Power Supply PhenomRX KingSnake 500 watts
� 3 buah kipas pendingin
� OS Ubuntu Server 10.04.4 LTS LucidLynx (2.6.32-44-server #97-Ubuntu SMP x86_64 GNU/Linux) dijejali dengan :
> LAMP Server > Samba-CUPS Server
> DHCP Server > DNS Server (Unbound)
> NTP Server > squid 2.7.9 dynamic_contents patched
> squidGuard > WebHTB, CLAMAV dan HAVP
> WordPress > FTP-Server[/html]
[size:17pt]partisi hdd[/size]
partisi HDD

Code: Select all

Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda5              8,9G   1,3G   7,2G  16% /		#file system
/dev/sda1              1,1G   145M   883M  15% /boot		#file system
/dev/sda6              8,9G   1,5G   7,0G  18% /usr		#file system
/dev/sda7              9,9G   2,3G   7,1G  25% /var		#file system
/dev/sda8              8,9G   368M   8,1G   5% /usr/local	#file system
/dev/sdb5              101G   4,1G    97G   5% /home/share 	# Samba File/Folder sharing
/dev/sdb6              394G   372G   2,7G 100% /home/share_4	# FTP Server
/dev/sdc5               20G    16G   4,6G  78% /proxy_1		# cache_dir
/dev/sdd5               21G    16G   5,5G  74% /proxy_2		# cache_dir
/dev/sdc6               60G   8,7G    48G  16% /home/share_3	# tempat nyimpan koleksi *.iso
/dev/sdd6               19G   862M    17G   5% /home/share_2	# tempat BackUp
/dev/loop0             102M   8,4M    88M   9% /var/spool/havp
[size:17pt]build configuration[/size]
build configuration
Squid Cache: Version 2.7.STABLE9
configure options: '-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-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--with-aio' '--with-dl' '--enable-storeio=aufs,null' '--enable-removal-policies=heap' '--enable-icmp' '--enable-delay-pools' '--disable-wccp' '--enable-snmp' '--enable-cache-digests' '--enable-default-err-language=English' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--with-maxfd=65535' '--enable-follow-x-forwarded-for' '--enable-large-cache-files' '--with-large-files' '--enable-referer-log' 'CFLAGS=-march=amdfam10 -O2 -pipe'
[size:17pt]file squid.conf[/size]
file squid.conf

Code: Select all

#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 /proxy_1 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
[size:17pt]file acl.conf[/size]
acl.conf

Code: Select all

#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
acl FTP proto FTP				#Hapus jika tidak intall FTP	

# 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 !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

always_direct allow FTP					#Hapus jika tidak intall FTP 
never_direct allow all
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
[size:17pt]file tune.conf[/size]
tune.conf

Code: Select all

#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
ftp_user anonymous@ 		# Hapus jika Anda tidak install FTP-Server
ftp_list_width 32		# Hapus jika Anda tidak install FTP-Server
ftp_passive on			# Hapus jika Anda tidak install FTP-Server
ftp_sanitycheck on		# Hapus jika Anda tidak install FTP-Server
ipcache_size 4096		# Mohon sesuaikan dengan RAM
ipcache_low 98
ipcache_high 99
fqdncache_size 2048		# 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
[size:17pt]file refresh_pattern.conf[/size]
refresh_pattern.conf

Code: Select all

#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
[size:17pt]mgr:info[/size]
[spoiler=mgr:info][html]HTTP/1.0 200 OK
Server: squid/2.7.STABLE9
Date: Sat, 13 Apr 2013 04:59:35 GMT
Content-Type: text/plain
Expires: Sat, 13 Apr 2013 04:59:35 GMT
X-Cache: MISS from localhost
X-Cache-Lookup: MISS from localhost:3128
Connection: close

Squid Object Cache: Version 2.7.STABLE9
Start Time: Thu, 11 Apr 2013 16:20:10 GMT
Current Time: Sat, 13 Apr 2013 04:59:35 GMT
Connection information for squid:
Number of clients accessing cache: 16
Number of HTTP requests received: 236436
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 107.5
Average ICP messages per minute since start: 0.0
Select loop called: 5778881 times, 22.836 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 9.2%, 60min: 68.7%
Byte Hit Ratios: 5min: 2.3%, 60min: 15.3%
Request Memory Hit Ratios: 5min: 14.3%, 60min: 1.1%
Request Disk Hit Ratios: 5min: 61.0%, 60min: 95.5%
Storage Swap size: 30108680 KB
Storage Mem size: 4344 KB
Mean Object Size: 67.75 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.42149 0.00179
Cache Misses: 0.46965 0.44492
Cache Hits: 0.00767 0.00179
Near Hits: 0.14252 0.27332
Not-Modified Replies: 0.00194 0.00286
DNS Lookups: 0.00094 0.00094
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 131965.079 seconds
CPU Time: 4271.440 seconds
CPU Usage: 3.24%
CPU Usage, 5 minute avg: 8.29%
CPU Usage, 60 minute avg: 9.57%
Process Data Segment Size via sbrk(): 117092 KB
Maximum Resident Size: 550848 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 117092 KB
Ordinary blocks: 79156 KB 9404 blks
Small blocks: 0 KB 0 blks
Holding blocks: 32352 KB 7 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 37935 KB
Total in use: 111508 KB 75%
Total free: 37935 KB 25%
Total size: 149444 KB
Memory accounted for:
Total accounted: 51127 KB
memPoolAlloc calls: 46750652
memPoolFree calls: 45845862
File descriptor usage for squid:
Maximum number of file descriptors: 65535
Largest file desc currently in use: 177
Number of file desc currently in use: 142
Files queued for open: 0
Available number of file descriptors: 65393
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
444469 StoreEntries
349 StoreEntries with MemObjects
337 Hot Object Cache Items
444392 on-disk objects[/html][/spoiler]


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

Post by q_p » 13 Apr 2013, 21:42

@joenspidy
Storeurl pakai yang release berapa ? Coba anda cermati lagi mas yang di TestDrive.

@Anbel
Terima kasih telah saling mengingatkan
untuk mengetahui platform prosesor di linux bisa dengan cli

Code: Select all

# lscpu
@Cah Cilacap
Sudah di soba belum mas ?


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

Post by cah_clacap » 13 Apr 2013, 22:01

Pragola_Pati wrote:@joenspidy
Storeurl pakai yang release berapa ? Coba anda cermati lagi mas yang di TestDrive.

@Anbel
Terima kasih telah saling mengingatkan
untuk mengetahui platform prosesor di linux bisa dengan cli

Code: Select all

# lscpu
@Cah Cilacap
Sudah di soba belum mas ?
++++++++++++++++++++++++++++++++++++++++++

Belum bos... sy udh ngantuk bgt 5 malam belum tidur ..... besok2 sy coba praktekkan ... THQ b4


User avatar
joenspidy
Posts: 2
Joined: 13 Apr 2013, 18:45

Post by joenspidy » 13 Apr 2013, 22:03

pake yg release 25 mas


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

Post by anbel » 13 Apr 2013, 22:07

@Mas Pragola

Matur Suwun


User avatar
mrxx
Posts: 13
Joined: 28 Mar 2013, 11:37

Post by mrxx » 13 Apr 2013, 22:22

aye aye .... ninja rr ehhh r25 emang oye...

sungkem kagem mr SyaifuddinJW & Pragola_Pati


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

Post by sawitbahar » 13 Apr 2013, 23:09

Ah ternyata mzz pragola kesalahan nya yg berbau range ternyata
makasih mzz....atas kesabaran nya


:kuku: :kuku: :kuku: :)


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

Post by q_p » 13 Apr 2013, 23:47

@Sawitbahhar
Akhirnya pakai yang mana ? anda koreksi squid.conf punya anda sendiri atau pakai yang di TestDrive ?
Sudah di cobakan pada trit anda yang ini =
sawitbahar wrote:http://www.youtube.com/watch?v=LKIZl0jtJfc
di putar link yg atas timbul
An erroor occurred, Please tri again later.

tp klu kita klik kanan POP UP
timbul link yg d bawah
https://www.youtube.com/tv?vq=hd720#/wa ... KIZl0jtJfc
link ini bisa terbuka
Bagai mana ngatasi permasalahan ini
Yang HTTPS tdk teratasi mas :D

@joenspidy
Tetap semangat mas. Storeurl-nya anda download dari pejwan dak konfigurasi-nya ngikut di TestDrive, insyaallah ...

@Anbel
@mrxx
hayah .... pakai acara gituan ... :D


User avatar
nagas
Posts: 8
Joined: 25 Mar 2013, 14:50

Post by nagas » 14 Apr 2013, 00:40

sebelumnya thx...
mas saya sudah tes config yg di gelar...
dengan storeurl di depan yg lain sama, jga strip_query_terms sya hapus...sesuai saran mas pragola
sya coba http://www.youtube.com/watch?v=Qln3MDWwGJ4
ini hasilnya
1365873799.939 5 192.168.210.2 TCP_HIT/200 8240 GET http://pagead2.googlesyndication.com/pagead/osd.js - NONE/- text/javascript
1365873800.065 396 192.168.210.2 TCP_MISS/200 1000 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/173.194.38.141 text/javascript
1365873800.443 201 192.168.210.2 TCP_MISS/204 438 GET http://csi.gstatic.com/csi? - DIRECT/173.194.65.120 image/gif
1365873800.786 270 192.168.210.2 TCP_MISS/204 576 GET http://s.youtube.com/s? - DIRECT/173.194.38.133 text/html
1365873801.098 1635 192.168.210.2 TCP_HIT/200 1782236 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873801.455 156 192.168.210.2 TCP_MISS/204 773 GET http://www.youtube.com/player_204? - DIRECT/173.194.38.131 text/html
1365873801.980 1345 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873802.633 1017 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873809.229 194 192.168.210.2 TCP_MISS/204 510 GET http://s.youtube.com/stream_204? - DIRECT/173.194.38.133 text/html
1365873810.793 265 192.168.210.2 TCP_MISS/204 576 GET http://s.youtube.com/s? - DIRECT/173.194.38.133 text/html
1365873816.753 1017 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873823.165 123 192.168.210.2 TCP_MISS/204 773 GET http://www.youtube.com/player_204? - DIRECT/173.194.38.131 text/html
1365873830.851 269 192.168.210.2 TCP_MISS/204 576 GET http://s.youtube.com/s? - DIRECT/173.194.38.133 text/html
1365873839.319 214 192.168.210.2 TCP_MISS/204 510 GET http://s.youtube.com/stream_204? - DIRECT/173.194.38.133 text/html
1365873848.023 1323 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873859.241 139 192.168.210.2 TCP_MISS/204 773 GET http://www.youtube.com/player_204? - DIRECT/173.194.38.131 text/html
1365873869.380 212 192.168.210.2 TCP_MISS/204 510 GET http://s.youtube.com/stream_204? - DIRECT/173.194.38.133 text/html
1365873870.548 1284 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873893.455 1090 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873899.533 270 192.168.210.2 TCP_MISS/204 510 GET http://s.youtube.com/stream_204? - DIRECT/173.194.38.133 text/html
1365873916.427 1059 192.168.210.2 TCP_HIT/200 1782249 GET http://r3---sn-2ugxh5a5-jb3e.c.youtube. ... eoplayback? - NONE/- video/x-flv
1365873920.077 113 192.168.210.2 TCP_MISS/204 773 GET http://www.youtube.com/player_204? - DIRECT/173.194.38.132 text/html
1365873929.555 257 192.168.210.2 TCP_MISS/204 510 GET http://s.youtube.com/stream_204? - DIRECT/173.194.38.133 text/html

sya benar" ga da dasar baik ubuntu maupun squid dkk, cuma ikut alur dari awal..jdi mau tanya hasil itu sudah sukses blm mas?
kira" apa yg di ubah biar 1 hit youtubenya mas?


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

Post by sawitbahar » 14 Apr 2013, 00:52

udh clear masalah nya mzz,,,,,pakai squid.conf punya saya sendiri sambil tata ulang punya mzz Pragola
Tinggal HTTP sama HTTPS ni mzz yg blm tahu.....mohon petunjuk y mzz..
:D :D :) :)


Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests