[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
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Re: [HOT POOLLING]Apakah Youtube Error Lagi ?

Post by JuldianTan » 14 Apr 2013, 01:48

Pragola_Pati wrote:[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, jangan asal kopas please ... :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
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]

mantap tutnya
thank's mas bro
saya coba oprek lagi


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

Post by q_p » 14 Apr 2013, 02:18

@nagas
strip_query_terms jangan dihapus, tapi pastikan dalam kedaan off
strip_query_terms off
Hasilnya sudah bagus, bisa HIT gitu. Cuma memang tdk bisa 1 HIT.
http://ubuntu-indonesia.com/forums/ubbt ... /129943/30

@sawit
HTTPS tdk bisa mas
http://ubuntu-indonesia.com/forums/ubbt ... /129943/30
@Julian
Makasih juga mas, telah dibantu di halaman depan.


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

Post by JuldianTan » 14 Apr 2013, 03:23

mas Pragola_Pati,
config diatas saya terapkan di lusca koq ndak jalan ya
sy testing di vmware
apa config diatas gak cocok utk lusca?
mohon penjelasannya.


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

Post by cah_clacap » 14 Apr 2013, 08:24

JuldianTan wrote:mas Pragola_Pati,
config diatas saya terapkan di lusca koq ndak jalan ya
sy testing di vmware
apa config diatas gak cocok utk lusca?
mohon penjelasannya.
++++++++++++++++++++++++++++++++

Udah dicoba mas ????

Klo test drive di atas jadi buat LUSCA ...sy dikabari ya ......

Thanks ya kemarin udah mampir ke sini ...... he he he hee ...


User avatar
galuh02
Posts: 1
Joined: 28 Mar 2013, 08:20
Location: Jakarta

Post by galuh02 » 14 Apr 2013, 09:25

Selamat pagi agan semua, ijin bergabung ...


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

Post by anbel » 14 Apr 2013, 10:52

@Mas Pragola & @All
Tanya soal seting browser masukin url youtube di mozilla atw browser yg lain, agar tidak kejebak masuk ke https/www.youtube.com
yang hasilnya akan berbeda buat cache proxy kita.


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

Post by SyaifuddinJW » 14 Apr 2013, 11:26

kalau gak ada dasar ya belajar perlahan, gak perlu terlalu memaksakan diri agar youtube langsung HIT.

kebanyakan dari rekan rekan di sini terlalu memaksakan diri. rambu rambu sudah ada tapi terkadang masih di tabrak


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

Post by anbel » 14 Apr 2013, 11:41

SyaifuddinJW wrote:kalau gak ada dasar ya belajar perlahan, gak perlu terlalu memaksakan diri agar youtube langsung HIT.

kebanyakan dari rekan rekan di sini terlalu memaksakan diri. rambu rambu sudah ada tapi terkadang masih di tabrak
@Mas Syaifuddin
He he he, maaf mas, namanya juga usaha, :D
Sementara bikin shortcut di desktop, tapi client lebih dari 60 setiap client rata2 2 PC = 120 :confused:


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

Post by SyaifuddinJW » 14 Apr 2013, 11:42

anbel wrote:
SyaifuddinJW wrote:kalau gak ada dasar ya belajar perlahan, gak perlu terlalu memaksakan diri agar youtube langsung HIT.

kebanyakan dari rekan rekan di sini terlalu memaksakan diri. rambu rambu sudah ada tapi terkadang masih di tabrak
@Mas Syaifuddin
He he he, maaf mas, namanya juga usaha, :D
Sementara bikin shortcut di desktop, tapi client lebih dari 60 setiap client rata2 2 PC = 120 :confused:
maksudnya???


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

Post by anbel » 14 Apr 2013, 13:07

@Mas Syaifuddin
Bikin shortcut http://youtube.com di desktop, klu buka youtube tinggal klik daripada ketik url akan nyasar ke https://www.youtube.com.
Tapi harus seting setiap pc yg jadi kendala client jauh2 :confused:
Ada solusi lain gak mas, biar gak nyasar ke https? :)


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

Post by SyaifuddinJW » 14 Apr 2013, 16:12

mulai ngoprek Squid3.Head dulu :D


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

Post by anbel » 14 Apr 2013, 16:28

SyaifuddinJW wrote:mulai ngoprek Squid3.Head dulu :D
Mantab :wow:


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

Post by q_p » 14 Apr 2013, 16:44

@JuldianTan
JuldianTan wrote:mas Pragola_Pati,
config diatas saya terapkan di lusca koq ndak jalan ya
sy testing di vmware
apa config diatas gak cocok utk lusca?
mohon penjelasannya.
Yang saya sampaikan di atas itu, intinya hanya meringkas squid.conf dengan memanfaatkan opsi include. Dan untuk membandingkan, bisa saja anda buat dua squid.conf (atau lebih)yaitu squid-LUSCA.conf yang berisi konfigurasi LUSCA dan satunya lagi squid-STABLE9.conf, simpan semuanya di /etc/squid.
Untuk menjalankan-nya
1. Jika ingin menggunakan konfigurasi squid-LUSCA.conf =

Code: Select all

# /etc/init.d/squid stop
# squid -f /etc/squid/squid-LUSCA.conf -z
# /etc/init.d/squid start
2. Jika ingin menggunakan konfigurasi squid-STABLE9.conf =

Code: Select all

# /etc/init.d/squid stop
# squid -f /etc/squid/squid-STABLE9.conf -z
# /etc/init.d/squid start
3. Jika memang hasilnya squid-LUSCA.conf bisa running sedang squid-STABLE9.conf tidak, anda bisa edit file acl.conf dengan memperhatikan urutan lokasi baris-nya di squid-LUSCA.conf.

@Anbel
anbel wrote:@Mas Syaifuddin
Bikin shortcut http://youtube.com di desktop, klu buka youtube tinggal klik daripada ketik url akan nyasar ke https://www.youtube.com.
Tapi harus seting setiap pc yg jadi kendala client jauh2 :confused:
Ada solusi lain gak mas, biar gak nyasar ke https? :)
1. Bisa dengan membuat bookmark.html yang isi-nya http://youtube.com, jadi nantinya untuk setiap browser tinggal import bookmark tsb.
2. Menggunakan redirector seperti saran di atas saya. Simpan dengan nama redirector.php di /etc/squid. Set owner dan permission-nya lalu tambahkan baris di bawah ini ke squid.conf =

Code: Select all

# url_rewrite_program  /etc/squid/redirector.php


@SJW
SyaifuddinJW wrote:mulai ngoprek Squid3.Head dulu :D
Kalau ada lowongan, saya kirim CV untuk posisi Test Pilot :D


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

Post by anbel » 14 Apr 2013, 19:47

@Anbel
anbel wrote:@Mas Syaifuddin
Bikin shortcut http://youtube.com di desktop, klu buka youtube tinggal klik daripada ketik url akan nyasar ke https://www.youtube.com.
Tapi harus seting setiap pc yg jadi kendala client jauh2 :confused:
Ada solusi lain gak mas, biar gak nyasar ke https? :)
1. Bisa dengan membuat bookmark.html yang isi-nya http://youtube.com, jadi nantinya untuk setiap browser tinggal import bookmark tsb.
2. Menggunakan redirector seperti saran di atas saya. Simpan dengan nama redirector.php di /etc/squid. Set owner dan permission-nya lalu tambahkan baris di bawah ini ke squid.conf =

Code: Select all

# url_rewrite_program  /etc/squid/redirector.php


Sudah dicoba dengan menambahkan file redirector.php dan squid.conf di tambah :
url_rewrite_program /etc/squid/redirector.php
malah gak jalan squidnya mas, he he he :)
squid kelihatanya bingung dengan
storeurl_rewrite_program /etc/squid/storeurl.pl
sementara dibersihkan cookies & history browsing sudah gak nyangkut lagi di https://www.youtube.com
Terima kasih


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

Post by JuldianTan » 14 Apr 2013, 22:51

Pragola_Pati

confignya sudah jalan di lusca
sdh sy tes

coba cek ini
[spoiler]root@proxy:~# squidclient mgr:info
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14809
Date: Sun, 14 Apr 2013 15:48:18 GMT
Content-Type: text/plain
Expires: Sun, 14 Apr 2013 15:48:18 GMT
X-Cache: MISS from proxy.j-com.web.id
X-Cache-Lookup: MISS from proxy.j-com.web.id:3128
Via: 1.0 proxy.j-com.web.id:3128 (Lusca/LUSCA_HEAD-r14809)
Connection: close

Squid Object Cache: Version LUSCA_HEAD-r14809
Start Time: Sun, 14 Apr 2013 04:56:48 GMT
Current Time: Sun, 14 Apr 2013 15:48:18 GMT
Connection information for squid:
Number of clients accessing cache: 2
Number of HTTP requests received: 102262
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 157.0
Average ICP messages per minute since start: 0.0
Select loop called: 6992993 times, 5.590 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 5.6%, 60min: 10.5%
Byte Hit Ratios: 5min: 3.0%, 60min: 16.3%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 6.0%
Request Disk Hit Ratios: 5min: 90.9%, 60min: 89.3%
Storage Swap size: 9689436 KB
Storage Mem size: 8172 KB
Mean Object Size: 73.34 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 1.05672 0.55240
Cache Misses: 1.17732 0.68577
Cache Hits: 0.00307 0.00379
Near Hits: 0.22004 0.27332
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 39089.664 seconds
CPU Time: 287.334 seconds
CPU Usage: 0.74%
CPU Usage, 5 minute avg: 0.26%
CPU Usage, 60 minute avg: 0.31%
Process Data Segment Size via sbrk(): 30284 KB
Maximum Resident Size: 153184 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 30284 KB
Ordinary blocks: 28327 KB 14926 blks
Small blocks: 0 KB 0 blks
Holding blocks: 5992 KB 4 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 1956 KB
Total in use: 34319 KB 95%
Total free: 1956 KB 5%
Total size: 36276 KB
Memory accounted for:
Total accounted: 18393 KB
memPoolAlloc calls: 19749404
memPoolFree calls: 19452661
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 167
Number of file desc currently in use: 51
Files queued for open: 0
Available number of file descriptors: 973
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
132800 StoreEntries
1335 StoreEntries with MemObjects
1329 Hot Object Cache Items
132125 on-disk objects[/spoiler]


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

Post by cah_clacap » 14 Apr 2013, 23:10

JuldianTan wrote:Pragola_Pati

confignya sudah jalan di lusca
sdh sy tes

coba cek ini
[spoiler]root@proxy:~# squidclient mgr:info
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14809
Date: Sun, 14 Apr 2013 15:48:18 GMT
Content-Type: text/plain
Expires: Sun, 14 Apr 2013 15:48:18 GMT
X-Cache: MISS from proxy.j-com.web.id
X-Cache-Lookup: MISS from proxy.j-com.web.id:3128
Via: 1.0 proxy.j-com.web.id:3128 (Lusca/LUSCA_HEAD-r14809)
Connection: close

Squid Object Cache: Version LUSCA_HEAD-r14809
Start Time: Sun, 14 Apr 2013 04:56:48 GMT
Current Time: Sun, 14 Apr 2013 15:48:18 GMT
Connection information for squid:
Number of clients accessing cache: 2
Number of HTTP requests received: 102262
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 157.0
Average ICP messages per minute since start: 0.0
Select loop called: 6992993 times, 5.590 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 5.6%, 60min: 10.5%
Byte Hit Ratios: 5min: 3.0%, 60min: 16.3%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 6.0%
Request Disk Hit Ratios: 5min: 90.9%, 60min: 89.3%
Storage Swap size: 9689436 KB
Storage Mem size: 8172 KB
Mean Object Size: 73.34 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 1.05672 0.55240
Cache Misses: 1.17732 0.68577
Cache Hits: 0.00307 0.00379
Near Hits: 0.22004 0.27332
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 39089.664 seconds
CPU Time: 287.334 seconds
CPU Usage: 0.74%
CPU Usage, 5 minute avg: 0.26%
CPU Usage, 60 minute avg: 0.31%
Process Data Segment Size via sbrk(): 30284 KB
Maximum Resident Size: 153184 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 30284 KB
Ordinary blocks: 28327 KB 14926 blks
Small blocks: 0 KB 0 blks
Holding blocks: 5992 KB 4 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 1956 KB
Total in use: 34319 KB 95%
Total free: 1956 KB 5%
Total size: 36276 KB
Memory accounted for:
Total accounted: 18393 KB
memPoolAlloc calls: 19749404
memPoolFree calls: 19452661
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 167
Number of file desc currently in use: 51
Files queued for open: 0
Available number of file descriptors: 973
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
132800 StoreEntries
1335 StoreEntries with MemObjects
1329 Hot Object Cache Items
132125 on-disk objects[/spoiler]

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

Utk lusca udah jadi apa ....

Minta kirim konfig-nya donk ..... squid.conf , dll sampai storeurl-nya ...biar ga terlalu lama mikir lg ....he he he e....


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

Post by q_p » 14 Apr 2013, 23:16

@Anbel
Saya coba di tempat saya dengan zapchain untuk merangkai lebih dari satu redirector karena saya menggunakan squdGuard, hasilnya juga sama. Squid crash

@ Juldian Tan
Nantilah, kita tunggu mas SJW. Saya belum berani ngasih judgement :D
Sementara, saya coba bantu yang ini saja =
1. Besarnya cache hit yang sebenarnya diliat dari cache client list
squidclient mgr:client_list
2. Pada Maximum number of file descriptors: 1024. Nilai 1024 anda crosscheck dengan ouput CLI squid -v, jika tdk ada kesesuaian anda perlu menaikkan file descriptors secara permanent.

@Cah Cilacap
Tebas mentah saja ya mas :kuku:

@SJW
Saya sudah coba ngoprek squidGuard u/ redirect https nya youtube dengan membuat database domains ataupun urls, hasilnya gagal :blush:
Atau mesti pakai reguler expression ya mas ?


User avatar
FirmanIdiotique
Posts: 18
Joined: 13 Mar 2013, 13:00
Location: Cikarang, Bekasi
Contact:

Post by FirmanIdiotique » 14 Apr 2013, 23:57

malam mas..
mau tanya nihh..
ane dah coba pake TestDrive yg d halaman 38, squid nya jalan.. tapi muncul begini:

[html]

ERROR
URL yang diminta tidak dapat diambil

Ketika mencoba untuk mengambil URL: http://www.youtube.com/watch?v=CVzXRwTojig

Kesalahan berikut ditemui:

Tidak dapat meneruskan permintaan pada saat ini.

Permintaan ini tidak dapat diteruskan ke server asal atau ke parent cache. Penyebab yang paling mungkin untuk kesalahan ini adalah bahwa:

Administrator cache tidak memungkinkan cache ini untuk membuat langsung koneksi ke server asal, dan
Semua parent cache dikonfigurasi saat ini tidak terjangkau.

Administrator cache Anda adalah FUI.
Dibuat Sun, 14 Apr 2013 16:44:40 GMT by localhost (Lusca/LUSCA_HEAD-r14809).
[/html]

knapa ya mass?

ohh iya saya pake LUSCA_HEAD-r14809


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

Post by JuldianTan » 15 Apr 2013, 00:09

encore2012

tuh diatas ada jawabannya
coba kamu cek bagian acl
diurutkan 1 per 1 sesuai dengan config lusca


User avatar
FirmanIdiotique
Posts: 18
Joined: 13 Mar 2013, 13:00
Location: Cikarang, Bekasi
Contact:

Post by FirmanIdiotique » 15 Apr 2013, 00:34

Maksudnya bagaimana ya mass..
ane masih bingung...
ap file acl.conf nya yang d urutkan 1 per 1?
maaf kalo banyak tanya..


User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Post by bellec » 15 Apr 2013, 00:50

[spoiler]#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[/spoiler]

caranya gimana Mas pragola_Pati ??
maaf pertanyaan neewbi :grin:


User avatar
FirmanIdiotique
Posts: 18
Joined: 13 Mar 2013, 13:00
Location: Cikarang, Bekasi
Contact:

Post by FirmanIdiotique » 15 Apr 2013, 01:23

makasih mas...
sudah bisa :D

tapi saya comment bagian ini :
#never_direct allow all

Yutube HIT! :kuku:

tapi apakah pengaruh klo bagian itu di comment?
terus klo berpengaruh hars d simpan d bagian mana spya bsa jalan/
terimakasih sebelum nya... :)


User avatar
Aira
Posts: 70
Joined: 22 Mar 2012, 21:20

Post by Aira » 15 Apr 2013, 02:01

Malam semuanya...
Mau tanya apakah youtube di rekan2 FUI pertama kali cache
contoh :
Saya putar video pertama kali dapat resolusi 360p
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Setelah beberapa menit saya coba putar kembali
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Nah loh kalo disaya rubah resolusi jadi 240p terkadang 144p terus cache ulang...
Tapi setelah 2 kali di putar video youtube
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Ambil dari cache...
Apa ada yang mengalami seperti saya...?


User avatar
FirmanIdiotique
Posts: 18
Joined: 13 Mar 2013, 13:00
Location: Cikarang, Bekasi
Contact:

Post by FirmanIdiotique » 15 Apr 2013, 02:13

encore2012 wrote:makasih mas...
sudah bisa :D

tapi saya comment bagian ini :
#never_direct allow all

Yutube HIT! :kuku:

tapi apakah pengaruh klo bagian itu di comment?
terus klo berpengaruh hars d simpan d bagian mana spya bsa jalan/
terimakasih sebelum nya... :)
tapi https nya kok jadi begini ya
Attachments
facebook.JPG
facebook.JPG (220.92 KiB) Viewed 1363 times


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

Post by q_p » 15 Apr 2013, 06:04

'
@bellec
Caranya, sesuaikan file yang dimaksud dengan pengaturan path pada saat anda build squid.

@encore2012
Itu karena saya pakai intranet, sehingga memandang perlu menambahkan =
acl local-server dstdomain "/etc/squid/no_cache.txt"
always_direct allow FTP local-server
never_direct allow all
no_cache deny local-server

Jika tidak, anda bisa tdk menggunakannya.
reff =
http://www.squid-cache.org/Doc/config/never_direct/

https -nya tolong dikasih link-nya juga :)

@Aira
Aira wrote:Malam semuanya...
Mau tanya apakah youtube di rekan2 FUI pertama kali cache
contoh :
Saya putar video pertama kali dapat resolusi 360p
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Setelah beberapa menit saya coba putar kembali
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Nah loh kalo disaya rubah resolusi jadi 240p terkadang 144p terus cache ulang...
Tapi setelah 2 kali di putar video youtube
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Ambil dari cache...
Apa ada yang mengalami seperti saya...?
Iya, saya lihat juga begitu di tempat saya. Coba saja anda cermati log-nya :)

cmiiw

###Tambahan
@encore2012
Barusan saya coba dengan menambahkan "#" squid masih bisa jalan kok :)
#acl local-server dstdomain "/etc/squid/no_cache.txt"
#always_direct allow FTP local-server
never_direct allow all
#no_cache deny local-server
Last edited by q_p on 27 Feb 2016, 21:44, edited 1 time in total.
Reason: ###Tambahan


User avatar
RaD3n
Posts: 12
Joined: 19 Mar 2013, 00:51
Contact:

Post by RaD3n » 15 Apr 2013, 08:53

tolong youtube yang udah beres
buatin step by step nya donkk
kalo sempet
pleaseeee
thankzz


User avatar
FirmanIdiotique
Posts: 18
Joined: 13 Mar 2013, 13:00
Location: Cikarang, Bekasi
Contact:

Post by FirmanIdiotique » 15 Apr 2013, 11:43

Semua yg https pasti munculnya begitu mas "The proxy server is refusing connections"

apanya ya mas kira"...
klo youtube nya sih udah oke banget lahh MANTAP (buat saya :D ) :kuku:

satu lagi mas di file tune.conf:

Code: Select all

ipcache_size 4096		# Mohon sesuaikan dengan RAM
ipcache_low 98
ipcache_high 99
fqdncache_size 2048		# Mohon sesuaikan dengan RAM
di sesuaikan nya sama dengan RAM atau 1/2 atau 2x atau berapa x RAM?
soalnya ad 4096 sama 2048, dan saya belum tau itu fungsi nya buat ap :D ...
maaf ya mas kalo banyak tanya...

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
cache_dir aufs /cache 25000 59 256

#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
dns_nameservers 192.168.3.1

cache_effective_user proxy
cache_effective_group proxy
cache_mgr FPUI
cachemgr_passwd none all
visible_hostname localhost
#end of file
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.3.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 snmppublic snmp_community public

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         #Klo ga d comment errot seperti yg dbahas..

#Harus ada jika pakai r25
cache deny redirec						

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

#Harus ada jika pakai r25
storeurl_access deny reddeny	
	
snmp_port 3401
snmp_access allow snmppublic all
		
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
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 1024			# Mohon sesuaikan dengan RAM(saya samakan dengan memoty fisik :D ) 
ipcache_low 98
ipcache_high 99
fqdncache_size 512			# Mohon sesuaikan dengan RAM (1/2 memory fisik :D )
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
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
squid-v

Code: Select all

\
OS : Ubuntu 12.10 32bit

Squid Cache: Version LUSCA_HEAD-r14809
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=prescott -O2 -pipe -fomit-frame-pointer'
Mohon dkoreksi apa salah nya mas...
terimakasih sebelumnya... :D


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

Post by SyaifuddinJW » 15 Apr 2013, 12:09

di ACL rubah saja SSL_ports menjadi Safe_ports, semoga beruntung :D


User avatar
mrvidi
Posts: 1
Joined: 15 Apr 2013, 12:17
Location: riau

Post by mrvidi » 15 Apr 2013, 12:23

Pragola_Pati wrote:Sejak kemarin Sabtu 16 Maret 2013, youtube error. Kasus-nya begini =

1. Yang terputar lebih sering dalam screenshot berikut =

[img]http://s20.postimage.org/lfdsmzb3h/youtube_error.png[/img]

Jika kita klik apapun, lebih sering redirect ke link berikut =
http://www.youtube.com/watch?v=InRDF_0lfHk

2. Untuk lebih meyakinkan, saya coba searching dengan menuliskan "Rolling Stones Paint In Black". Pada halaman yang muncul, saya klik salah satunya lebih sering (cenderung selalu) redirect ke link di atas ( seperti dalam skringsut).

3. Kepada warga lain yang, mohon untuk mencobanya dan saya minta tolong hasilnya di posting di sini. Dilengkapi dengan skringsut dan link youtube-nya yang error tsb.

Terima kasih :confused:

[size:17pt]##Resume##[/size]
Namanya juga diskusi, harus ada resume. jiak nggaya :D

[size:17pt]UPIL ULANG | JANGAN INSTALL ULANG[/size]

Sebenarnya tdk perlu sampai install ulang begitu, cukup dengan ngupil ulang (re-compile) sudah bisa. Dan yang banyak menjadi pertanyaan bagi warga FUI, adalah bagaimana cara memasukkkan option --enable-referer-log ? Untuk tujuan tersebut ikuti saja langkah2 dibawah ini, dan harap diperhatikan isi file dalam direktori /etc/squid jangan dirubah (otak-atik) kecuali file storeurl.pl.
  • Temukan versi squid anda

Code: Select all

squid -v
Output-nya, jika menggunakan squid-2.7.9 seperti di bawah ini =
[spoiler]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'[/spoiler]
Untuk lusca, hasilnya kurang lebih sama. Di situ terlihat, kecuali kita mendapatkan informasi tentang versi squid yang kita gunakan yaitu squid-2.7.STABLE9, kita juga mendapatkan informasi bagaimana konfigurasi squid pada saat di compile.
  • Temukan lokasi UPIL yang dulu dilakukan, jika menggunakan squid-2.7.STABLE9 =

Code: Select all

# locate squid-2.7.STABLE9
Cuplikan output-nya seperti di bawah ini =

Code: Select all

/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/cossdump.c
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/squidclient.c
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/cachemgr__CGIEXT_-cachemgr.Po
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/cossdump.Po
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/squidclient.Po
Jadi, lokasi path installasi squid berada di direktori /home/share_2/arsip/squid/squid-2.7.STABLE9. Jika menggunakan lusca =

Code: Select all

# locate LUSCA_HEAD-r14809
Dan cuplikan output-nya seperti di bawah ini =

Code: Select all

/home/share_2/arsip/squid/LUSCA_HEAD-r14809
  • Masuk ke direktori tersebut di atas, jika menggunakan squid-2.7.STABLE9 =

Code: Select all

# cd /home/share_2/arsip/squid/squid-2.7.STABLE9
# apt-get install libfile-readbackwards-perl -y
Jika menggunakan lusca =

Code: Select all

# cd /home/share_2/arsip/squid/LUSCA_HEAD-r14809
# apt-get install libfile-readbackwards-perl -y
  • Dari lokasi ini, lakukan uninstall squid (lusca) anda dan kompil ulang. Baik squid-2.7.STABLE9 maupun LUSCA_HEAD-r14809 caranya sama.

Code: Select all

# squid -k shutdown
#kalau diperlukan cek dengan baris berikut
#untuk memastikan tidak ada squid ID process yang berjalan
# ps aux | grep squid  
# make uninstall
  • Lakukan konfigurasi dengan bekal output perintah squid -z di atas . Sudah tentu jangan ditelan mentah, lakukan modifikasi sesuai kondisi anda. Dalam contoh di bawah ini yang paling besar kemungkinannya menjadi faktor pembeda adalah CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}" karena perbedaan arsitektur processor kita. Dan jangan lupa, opsi --enable-referer-log harus ada di dalamnya.

Code: Select all

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}" \
./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin \
-libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid \
-datadir=/usr/share/squid --enable-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
  • Jika menggunakan squid-2.7.STABLE9, lanjutkan dengan perintah =

Code: Select all

# make
# umask 022
# make install
# make clean
# /etc/init.d/squid stop
# echo "referer_log /var/log/squid/referer.log" >> /etc/squid/squid.conf
# squid -f /etc/squid/squid.conf -z
# /etc/init.d/squid start
# ps aux | grep squid
Jika menggunakan LUSCA_HEAD-r14809 =

Code: Select all

# make
# make install
# /etc/init.d/squid stop
# echo "referer_log /var/log/squid/referer.log" >> /etc/squid/squid.conf
# squid -f /etc/squid/squid.conf -z
# /etc/init.d/squid start
# ps aux | grep squid
That all about recompile :D

[size:17pt]KASUS | DIREKTORI COMPILE TERHAPUS[/size]
Jika anda tidak menemukan direktori tempat anda dulu melakukan NGUPIL, mau-tidak-mau anda harus menghapus path hasil installasi sebelumnya dengan bekal output perintah squid -v di atas. Hapus satu per satu path tersebut. Dan sebelum menghapus direktori tsb, kill semua proses squid dengan perintah squid -k shutdown

Demikian, selamat ngoprek :D
[size:17pt]storeurl.pl TESTED ON
LUSCA_HEAD-r14809 & squid-2.7.STABLE9[/size]
@chudy_fernandez@yahoo.com
@ucok_karnadi@yahoo.com
@Syaifuddin JW
@Robbyn
@Juldian Tan

Mohon ijin kopas di pejwan u/ warga FUI ya mas ?


Temukan file storeurl.pl dan edit dengan cara sebagai berikut =

Code: Select all

~# locate storeurl.pl
/etc/squid/storeurl.pl
~# cp /etc/squid/storeurl.pl > /etc/squid/storeurl.pl_old
~# nano /etc/squid/storeurl.pl
Hapus semuanya, dan ganti (kopas) dengan yang ada di spoiler di bawah ini.

[spoiler]

Code: Select all

#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion
# http://www.facebook.com/stressss

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

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

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

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

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

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

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

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

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

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

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

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

		# for ALL Youtube ( range & non range )
		# first you need do this
		# build your squid with "--enable-referer-log"
		# install package dependencies "apt-get install libfile-readbackwards-perl"
		# add this "referer_log /var/log/squid/referer.log" to your squid config

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/var/log/squid/referer.log');
while (defined($line = $ref_log->readline))
	{
	if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
		$id = $1;
		last;
		}
	if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
		$id = $1;
		last;
		}
	if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
		$id = $1;
		last;
		}
	}
$ref_log->close();
return $id;
}
[/spoiler]
[img]http://s20.postimg.org/4rkjw0lm5/proxy_HIT.png[/img]

[size:17pt]###update### Tidak Tercache Setelah Recompile[/size]
Yang berubah setelah kita kompil ulang, baik yang berhasil mencache dan tdk redirect maupun yang tdk berhasil adalah =
1. Ubuntu kita terinstall 'libfile-readbackwards-perl' agar bisa memasukkan option '--enable-referer-log' pada saat kompile squid.\
2. Konfigurasi squid bertambah satu yaitu adanya '--enable-referer-log' seperti dalam output-nya cli "squid -v"
3. squid.conf berubah dengan bertambahnya satu baris yaitu "referer_log /var/log/squid/referer.log"
4. dan storeurl.pl
Sudah, hanya itu. Yang lain, termasuk misalnya refresh_pattern tidak ada perubahan.

Sekarang mari kita lihat output cli "squid -v" yang tidak berhasil =
rimbun wrote:root@rimbun:/home/rimbun# squid -v
Squid Cache: Version LUSCA_FMI
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-referer-log' '--enable-http-gzip' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--enable-storeio=aufs' '--enable-linux-netfilter' '--enable-arp-acl' '--enable-epoll' '--enable-removal-policies=heap' '--with-aio' '--with-dl' '--enable-snmp' '--enable-delay-pools' '--enable-htcp' '--enable-cache-digests' '--disable-unlinkd' '--enable-large-cache-files' '--with-large-files' '--enable-err-languages=English' '--enable-default-err-language=English' '--with-maxfd=65536'
Bandingkan dengan yang sudah berhasil mencache dan tdk redirect seperti di pejwan
Pragola_Pati wrote: CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}" \
./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin \
-libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid \
-datadir=/usr/share/squid --enable-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
Menurut saya ada dua opsi yang perlu diperhatikan, yaitu =
1. CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}"
2. dan '--with-maxfd=65535'
Yang pertama berkaitan dengan penggunaan prosesor dan yang kedua mengenai file-descriptor

[size:17pt]Saran =[/size]
1. Konfigurasikan squid pada saat compile agar menggunakan processor secara optimal. Untuk itu sesuaikan processor yang digunakan server dengan merujuk ke Safe Cflags. Jika Ubuntu server anda memakai processor Intel silahkan merujuk ke sini
http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel
Jika AMD monggo mampir ke sini =
http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD
Untuk mengatahui type prosesor mesin Ubuntu Server anda, buka terminal =

Code: Select all

cat /proc/cpuinfo
Pada outputnya, perhatikan baris ke-5. Itulah type processor yang akan disesuaikan profile-nya dengan Safe Cflags. Profile inilah yang dimasukkan ke salah satu opsi penting dalam melakukan compile squid.
2. Mengenai file-descritor yang semuanya menggunakan angka 65536, lakukan cross-ceck pada file squid.conf, output dari cache-managerCGI, init-script (/etc/init.d/squid), file /etc/default/squid dan mesin ubuntu itu sendiri (ulimit -n). Hasilnya semua harus ada kesesuaian yaitu 65536. Jika tidak, penggunakan opsi '--with-maxfd=65536' pada saat kompil menjadi mentah. Untuk menaikkan file-descriptors secara permanen, silahkan ke trit =
http://ubuntu-indonesia.com/forums/ubbt ... Post117313
cmiiw

[size:17pt]Update ke r25[/size]
Bagi warga yang belum melakukan update sama sekali, tidak memerlukan rebuild (recompile/upil ulang). Cukup install paket tambahan apt-get install libfile-readbackwards-perl, mengganti storeurl lama dengan r25 dan memperhatikan perubahan konfigurasi yang perlu dilakukan. Perubahan tersebut sudah termaktub di r25, anda cukup meletakkannya pada posisi teratas di squid.conf.

Code: Select all

# squid.conf
# start of file
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
File storeurl mulai dari r18 s/d r25 bisa anda download di bawah ini.


[size:17pt]Silahkan Lanjut ke Halaman 38[/size]
gan permisi sebelumnya and tenkyu, saya seorang it jaringan kecil2an, kemarin memang masalahnya adalah youtube keredirect videonya, setelah ikutin petunjuk dari agan dan saya praktekin proxy saya jadi bisa cache youtube lagi dan gk keredirect tapi anehnya setelah beberapa hari eh muncul masalah baru, terkadang pada saat kira2 antara jam 10 sampai jam 12 pada saat kita membuka sebuah situs misalkan saja facebook kenapa munculnya "It Works"seperti keredirect ke apache lokal gitu, bukan muncul facebook, begitu juga google dan situs lainnya, tapi selepas diantara jam yang saya sebutkan di atas proxy saya jadi normal lagi, kenapa gitu ya padahal saya gk nyetting apa2 soal waktu, mohon petunjuknya gan, pleaaseeee, saya menggunakan router mikrotik rb750 dan proxy dengan os debian squezze


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

Post by SyaifuddinJW » 15 Apr 2013, 13:09

encore2012 wrote:Semua yg https pasti munculnya begitu mas "The proxy server is refusing connections"

apanya ya mas kira"...
klo youtube nya sih udah oke banget lahh MANTAP (buat saya :D ) :kuku:

satu lagi mas di file tune.conf:

Code: Select all

ipcache_size 4096		# Mohon sesuaikan dengan RAM
ipcache_low 98
ipcache_high 99
fqdncache_size 2048		# Mohon sesuaikan dengan RAM
di sesuaikan nya sama dengan RAM atau 1/2 atau 2x atau berapa x RAM?
soalnya ad 4096 sama 2048, dan saya belum tau itu fungsi nya buat ap :D ...
maaf ya mas kalo banyak tanya...

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
cache_dir aufs /cache 25000 59 256

#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
dns_nameservers 192.168.3.1

cache_effective_user proxy
cache_effective_group proxy
cache_mgr FPUI
cachemgr_passwd none all
visible_hostname localhost
#end of file
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.3.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 snmppublic snmp_community public

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         #Klo ga d comment errot seperti yg dbahas..

#Harus ada jika pakai r25
cache deny redirec						

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

#Harus ada jika pakai r25
storeurl_access deny reddeny	
	
snmp_port 3401
snmp_access allow snmppublic all
		
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
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 1024			# Mohon sesuaikan dengan RAM(saya samakan dengan memoty fisik :D ) 
ipcache_low 98
ipcache_high 99
fqdncache_size 512			# Mohon sesuaikan dengan RAM (1/2 memory fisik :D )
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
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
squid-v

Code: Select all

\
OS : Ubuntu 12.10 32bit

Squid Cache: Version LUSCA_HEAD-r14809
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=prescott -O2 -pipe -fomit-frame-pointer'
Mohon dkoreksi apa salah nya mas...
terimakasih sebelumnya... :D

berikut baris baris ACl anda
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
....................................
....................................
....................................
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !Safe_ports
perhatikan yg saya bold adakah mengandung !SSL_ports :hajarpc:


User avatar
FirmanIdiotique
Posts: 18
Joined: 13 Mar 2013, 13:00
Location: Cikarang, Bekasi
Contact:

Post by FirmanIdiotique » 15 Apr 2013, 13:16

Alhamdulillah, bisa mas... :D :kuku:
terimakasih Mas Syarifudin koreksi nya...
jadi seperti ini :
#acl SSL_ports port 443 563 873 # https snews
acl Safe_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 snmppublic snmp_community public

#http_access deny !Safe_ports !SSL_ports
http_access deny !Safe_ports

http_access deny CONNECT !Safe_ports


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

Post by q_p » 15 Apr 2013, 13:29

^
@Raden
RaD3n wrote:tolong youtube yang udah beres
buatin step by step nya donkk
kalo sempet
pleaseeee
thankzz
Yang di atas itu kan sudah stepBYstep mas :D

@encore2012
Default Value: ipcache_size 1024
Default Value: fqdncache_size 1024

@mrvidi
Sudah coba konifgurasi yang di halaman ini mas ?

cmiiw


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

Post by SyaifuddinJW » 15 Apr 2013, 13:32

@pragola_pati
gimana pakde dah di coba untuk zapchainnya??? :D dan hasilnya gimana??


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

Post by q_p » 15 Apr 2013, 13:56

^
@SJW
SyaifuddinJW wrote:@pragola_pati
gimana pakde dah di coba untuk zapchainnya??? :D dan hasilnya gimana??
Sudah mas
Hasilnya tdk ngaruh :confused:

[spoiler]1. Pakai php (file name = redirect)

Code: Select all

#!/usr/bin/php
 <?php
 
 $temp = array();
 
 while ( $input = fgets(STDIN) ) {
 // Split the output (space delimited) from squid into an array.
 $temp = split(' ', $input);
 
 // Set the URL from squid to a temporary holder.
 $output = $temp[0] . "\n";
 
 // Clean the Requesting IP Address field up.
 $ip = split('/',rtrim($temp[1], "/-"));
 
 if (preg_match("/^https:\/\/www.youtube.com", $temp[0])) {
 $output = "301:http://www.youtube.com";
 }
 
 echo $output;
 }
2. Pakai perl (file name = redirect)

Code: Select all

#!/usr/bin/perl

$|=1;
while (<>) {
  $url = m/^([^ ]*)/;
  if ($url !~ /^https:\/\/www\.youtube\.com/) {
    $url =~ s@^http://www\.youtube\.com/(.*)@http://www.youtube.com/\1@;
    print "301:$url\n";
  } else {
    print "$url\n";
  }
}
3. squid.conf
# url_rewrite_program /usr/local/squidGuard/zapchain "/usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf" /usr/local/squidGuard/redirect ><

cmiiw

###Tambahan Pakai squidGuard ####
Dengan membuat kategori database baru, saya kasih nama redirect di dalamnya saya tambahkan file dg nama expressions. Isi file tsb =
($url !~ /^https:\/\/www\.youtube\.com/)
saya tambahkan di dalam squidGuard.conf

Code: Select all

....
....
dest redirect {
        expressionlist    redirect/expressions
        redirect 302 http://www.youtube.com
}

acl {
        default {
                pass   !ads !malware !phishing !porn !proxy !spyware !virusinfected ! redirect !in-addr all
        }
}
[/spoiler]
cmiiw
Last edited by q_p on 27 Feb 2016, 21:44, edited 1 time in total.
Reason: menambahkan squidGuard


User avatar
RaD3n
Posts: 12
Joined: 19 Mar 2013, 00:51
Contact:

Post by RaD3n » 15 Apr 2013, 15:48

JuldianTan wrote:Pragola_Pati

confignya sudah jalan di lusca
sdh sy tes

coba cek ini
[spoiler]root@proxy:~# squidclient mgr:info
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14809
Date: Sun, 14 Apr 2013 15:48:18 GMT
Content-Type: text/plain
Expires: Sun, 14 Apr 2013 15:48:18 GMT
X-Cache: MISS from proxy.j-com.web.id
X-Cache-Lookup: MISS from proxy.j-com.web.id:3128
Via: 1.0 proxy.j-com.web.id:3128 (Lusca/LUSCA_HEAD-r14809)
Connection: close

Squid Object Cache: Version LUSCA_HEAD-r14809
Start Time: Sun, 14 Apr 2013 04:56:48 GMT
Current Time: Sun, 14 Apr 2013 15:48:18 GMT
Connection information for squid:
Number of clients accessing cache: 2
Number of HTTP requests received: 102262
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 157.0
Average ICP messages per minute since start: 0.0
Select loop called: 6992993 times, 5.590 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 5.6%, 60min: 10.5%
Byte Hit Ratios: 5min: 3.0%, 60min: 16.3%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 6.0%
Request Disk Hit Ratios: 5min: 90.9%, 60min: 89.3%
Storage Swap size: 9689436 KB
Storage Mem size: 8172 KB
Mean Object Size: 73.34 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 1.05672 0.55240
Cache Misses: 1.17732 0.68577
Cache Hits: 0.00307 0.00379
Near Hits: 0.22004 0.27332
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 39089.664 seconds
CPU Time: 287.334 seconds
CPU Usage: 0.74%
CPU Usage, 5 minute avg: 0.26%
CPU Usage, 60 minute avg: 0.31%
Process Data Segment Size via sbrk(): 30284 KB
Maximum Resident Size: 153184 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 30284 KB
Ordinary blocks: 28327 KB 14926 blks
Small blocks: 0 KB 0 blks
Holding blocks: 5992 KB 4 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 1956 KB
Total in use: 34319 KB 95%
Total free: 1956 KB 5%
Total size: 36276 KB
Memory accounted for:
Total accounted: 18393 KB
memPoolAlloc calls: 19749404
memPoolFree calls: 19452661
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 167
Number of file desc currently in use: 51
Files queued for open: 0
Available number of file descriptors: 973
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
132800 StoreEntries
1335 StoreEntries with MemObjects
1329 Hot Object Cache Items
132125 on-disk objects[/spoiler]
kalo pakai lusca .. apa memang belom bisa hit , youtube bang


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

Post by q_p » 15 Apr 2013, 19:00

Bisa mas, seperti yang anda kutip itu :)


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

Post by SyaifuddinJW » 15 Apr 2013, 22:14

emangnya kalau lusca sama squid itu confignya beda banget yach??? atau beda aja?? :D
perasaan lusca itu adalah squid juga. hanya ada beberapa opsi yg di squid standar gak ada, di squid lusca ada.
coba dech mulai sekarang untuk settingan dimulai dari yg simple dulu jangan hanya copas, karena dengan asal copas maka kita akan membeda bedakan satu dengan yg lainnya.
padahal denngan settingan yg samapun bisa berjalan :D
jangan lupa apabila merubah squid.conf selalu cek terlebih dahulu dengan perintah squid -k parse, dan kalau ada error maka perbaiki di bagian error tersebut


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

Post by q_p » 15 Apr 2013, 22:30

Hehehe ....
Saking terkenalnya lusca, ngalah2in squid
Saking terkenalnya squid, ngalah2in Ubuntu


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

Post by aben » 15 Apr 2013, 23:44

@Mas Pragola_Pati

Mas kok rasa2nya ke cache semua pakai di bawah ini, atau mungkin saya salah, tapi kok rasa2nya bener Mas, mohon maaf nih mas untuk dianalisa. Terima kasih.


.......
.......
#================================
# #Untuk ALL Youtube ( range & non range )
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
@itag = m/[&?](redirect_counter=[0-9]*)/;
@RDR = m/[&?]rdr\=(&redirect_counter=[0-9\&\s]*)/;
$id = &GetID($RDR[0]);
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "$@itag@range\n";
#================================

#ini asli dari ubuntu indonesia
} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
$id = &GetID($CPN[0], $IDS[0]);
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";
....
....
....
sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/log/squid/referer.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*rdr=$RDR[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*rdr=$RDR[0].*/){
$id = $2;
last;
}
last if --$lim close();
return $id;
}

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


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

Post by anbel » 15 Apr 2013, 23:54

@Mas Aben
Maksudnya ke cache semua bijimana?


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

Post by q_p » 16 Apr 2013, 00:10

@Aben
@Anbel
Iya... gak jelas tuh Aben :D
Apalagi namanya mirip sama Anbel :D

Bantuin saya dong, tentang captcha. Tadi sore saya dapat komplen =
http://ereg.pajak.go.id/ereg/wp/Login.do
Melotot captcha -nya, tdk mau berubah. Terpakasa mainkan PURGE =
squidclient -m PURGE http://ereg.pajak.go.id/ereg/wp/Login.do
tq.


User avatar
uve
Posts: 2
Joined: 16 Apr 2013, 00:08
Location: langsa, indonesia

Post by uve » 16 Apr 2013, 00:12

RaD3n wrote:
JuldianTan wrote:Pragola_Pati

confignya sudah jalan di lusca
sdh sy tes

coba cek ini
[spoiler]root@proxy:~# squidclient mgr:info
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14809
Date: Sun, 14 Apr 2013 15:48:18 GMT
Content-Type: text/plain
Expires: Sun, 14 Apr 2013 15:48:18 GMT
X-Cache: MISS from proxy.j-com.web.id
X-Cache-Lookup: MISS from proxy.j-com.web.id:3128
Via: 1.0 proxy.j-com.web.id:3128 (Lusca/LUSCA_HEAD-r14809)
Connection: close

Squid Object Cache: Version LUSCA_HEAD-r14809
Start Time: Sun, 14 Apr 2013 04:56:48 GMT
Current Time: Sun, 14 Apr 2013 15:48:18 GMT
Connection information for squid:
Number of clients accessing cache: 2
Number of HTTP requests received: 102262
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 157.0
Average ICP messages per minute since start: 0.0
Select loop called: 6992993 times, 5.590 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 5.6%, 60min: 10.5%
Byte Hit Ratios: 5min: 3.0%, 60min: 16.3%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 6.0%
Request Disk Hit Ratios: 5min: 90.9%, 60min: 89.3%
Storage Swap size: 9689436 KB
Storage Mem size: 8172 KB
Mean Object Size: 73.34 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 1.05672 0.55240
Cache Misses: 1.17732 0.68577
Cache Hits: 0.00307 0.00379
Near Hits: 0.22004 0.27332
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 39089.664 seconds
CPU Time: 287.334 seconds
CPU Usage: 0.74%
CPU Usage, 5 minute avg: 0.26%
CPU Usage, 60 minute avg: 0.31%
Process Data Segment Size via sbrk(): 30284 KB
Maximum Resident Size: 153184 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 30284 KB
Ordinary blocks: 28327 KB 14926 blks
Small blocks: 0 KB 0 blks
Holding blocks: 5992 KB 4 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 1956 KB
Total in use: 34319 KB 95%
Total free: 1956 KB 5%
Total size: 36276 KB
Memory accounted for:
Total accounted: 18393 KB
memPoolAlloc calls: 19749404
memPoolFree calls: 19452661
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 167
Number of file desc currently in use: 51
Files queued for open: 0
Available number of file descriptors: 973
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
132800 StoreEntries
1335 StoreEntries with MemObjects
1329 Hot Object Cache Items
132125 on-disk objects[/spoiler]
kalo pakai lusca .. apa memang belom bisa hit , youtube bang

coba di bagian tune.conf
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136
#end of file

di ganti menjadi:
# TAG: ZPH
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
#end of file


semoga jd HIT
CMIWIW


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

Post by q_p » 16 Apr 2013, 00:28

@uve
Mangkanya, di atas sudah saya ingatkan untuk disesuaikan. Dalam kasus yang mas Uve contohkan, mangle yang mesti disesuaikan.


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

Post by aben » 16 Apr 2013, 00:30

@Mas Pragola_Pati

Mohon maaf kalo saya emang kurang jelas, saya hanya orang bodoh yg ingin belajar Mas.

Terima Kasih


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

Post by q_p » 16 Apr 2013, 00:52

@Aben
Waduhh kok jadi gini mas ? :confused:
Sama mas, di sini kita semua belajar (egaliter, tdk ada newbi-master). Termasuk belajar bertanya dan menyampaikan pendapat. Tidak ada yang pinter atau bodoh. Yang ada, lebih duluan tahu/mengalami dari yang lain. Hari ini anda mengaku bodoh, bisa jadi tahun depan saya yang kelihatan bodoh jika disandingkan dengan anda?
please ... don't offensed
:)


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

Post by anbel » 16 Apr 2013, 00:52

Pragola_Pati wrote:@Aben
@Anbel
Iya... gak jelas tuh Aben :D
Apalagi namanya mirip sama Anbel :D

Bantuin saya dong, tentang captcha. Tadi sore saya dapat komplen =
http://ereg.pajak.go.id/ereg/wp/Login.do
Melotot captcha -nya, tdk mau berubah. Terpakasa mainkan PURGE =
squidclient -m PURGE http://ereg.pajak.go.id/ereg/wp/Login.do
tq.
:D
Sama mas klu login ke web pajak.go.id, waktu itu saya dalam satu hari hanya sekali login saja walaupun sudah pernah logout, captcha diabaikan saja langsung bisa masuk.
setelah lewat 1 hari baru login menggunakan captcha lagi.
begitu kira2 yg pernah saya temui. :confused:


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

Post by q_p » 16 Apr 2013, 01:04

@Anbel
Dan itu masih tetap dengan gambar yang sama ? di tempat saya, captcha-nya tidak berubah meskipun sudah di-purge.


User avatar
Aira
Posts: 70
Joined: 22 Mar 2012, 21:20

Post by Aira » 16 Apr 2013, 01:10

Pragola_Pati wrote:'
@Aira
Aira wrote:Malam semuanya...
Mau tanya apakah youtube di rekan2 FUI pertama kali cache
contoh :
Saya putar video pertama kali dapat resolusi 360p
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Setelah beberapa menit saya coba putar kembali
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Nah loh kalo disaya rubah resolusi jadi 240p terkadang 144p terus cache ulang...
Tapi setelah 2 kali di putar video youtube
Fatin Shidqia Lubis - Mercy - Duffy - English Sub - X Factor Indonesia - Gala Show 7
Ambil dari cache...
Apa ada yang mengalami seperti saya...?
Iya, saya lihat juga begitu di tempat saya. Coba saja anda cermati log-nya :)
cmiiw
Oh begitu toh dikira disaya sendiri yang bermasalah begitu...
Kalo dicermati lognya setelah berulang pasti hit klo setelah di putar ulang dan sudah tercache.
Ada pengaruhnya ga ya om Pragola dengan isi cachenya akan cepat penuh?
Mas Pragola mohon ijin nyoba tutorial dan isi filenya mas pragola yang di Halaman 38)


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

Post by q_p » 16 Apr 2013, 01:21

@Aira
Tidak usah kuatir dengan cache_dir yang penuh, kan ada =
cache_swap_low 98
cache_swap_high 99

reff =
http://www.squid-cache.org/Doc/config/cache_swap_high/
http://www.squid-cache.org/Doc/config/cache_swap_low/
(The low- and high-water marks for cache object replacement.
Replacement begins when the swap (disk) usage is above the low-water mark and attempts to maintain utilization near the low-water mark. As swap utilization gets close to high-water mark object eviction becomes more aggressive. If utilization is close to the low-water mark less replacement is done each time.
Defaults are 90% and 95%. If you have a large cache, 5% could be hundreds of MB. If this is the case you may wish to set these numbers closer together.)


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

Post by anbel » 16 Apr 2013, 01:32

Pragola_Pati wrote:@Anbel
Dan itu masih tetap dengan gambar yang sama ? di tempat saya, captcha-nya tidak berubah meskipun sudah di-purge.
waktu itu captcha tetap gak berubah, cuman dg user id & passwd yg sama dan captcha saya abaikan langsung login dan bisa masuk.
coba besok saya test lagi,passwdnya saya lupa ada di office.
di web beacukai.go.id waktu juga sama http://customer.beacukai.go.id/customer/index.ikc cuma kelihatannya sekarang sudah gak pakai captcha lagi.


User avatar
Aira
Posts: 70
Joined: 22 Mar 2012, 21:20

Post by Aira » 16 Apr 2013, 02:29

Ikut nyobain Testing file yang di Halaman 38)
Masalahnya sama kalau yang dibawah
#never_direct allow all
Tidak dikasih pagar munculnya error seperti gamabar bawah
Image
Tutorial dari mas SyaifuddinJW wrote:di ACL rubah saja SSL_ports menjadi Safe_ports, semoga beruntung
sama keluarnya error juga kenapa ya mas...

Sekalian mau tanya mas sebenarnya kalo untuk acl localnet ip mengarah ke proxynya sendiri dimasukin apa nggak ya...
contohnya wrote:acl localnet src 192.168.1.0/24 # Local Internal Network
acl localnet src 192.168.7.0/24 # Proxy Internal Network >> yang ini lebih baik dimasukin apa tidak usah


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

Post by SyaifuddinJW » 16 Apr 2013, 03:56

puyeng mikirin squid3.head, storeidnya dah dibuat untuk 3 situs, fbcdn sourceforge dan youtube, ke dua ditus selain youtube tercache walaupun itu CDN. nah youtube kok malah gak mau dicache yach

ini bagi rekan rekan yg mau mainan squid3.head
./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid3 \
--sysconfdir=/etc/squid3 --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include \
--datadir=/usr/share/squid3 --infodir=/usr/share/info --mandir=/usr/share/man \
--disable-dependency-tracking --enable-storeio=ufs,aufs,diskd --enable-removal-policies=lru,heap \
--enable-icmp --enable-delay-pools --enable-esi --enable-icap-client --disable-wccp \
--disable-wccpv2 --enable-kill-parent-hack --enable-cachemgr-hostname=TProxy --enable-ssl \
--enable-cache-digests --enable-linux-netfilter --enable-follow-x-forwarded-for \
--enable-x-accelerator-vary --enable-zph-qos --with-default-user=proxy --with-logdir=/var/log/squid3 \
--with-pidfile=/var/run/squid3.pid --with-large-files --with-filedescriptors=65536 \
--build=i486-linux-gnu \
build_alias=i486-linux-gnu \
CFLAGS="............."
CXXFLAGS=$CFLAGS


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

Post by q_p » 16 Apr 2013, 04:06

@Aira
Aira wrote:Ikut nyobain Testing file yang di Halaman 38)
Masalahnya sama kalau yang dibawah
#never_direct allow all
Tidak dikasih pagar munculnya error seperti gamabar bawah
Terima kasih atas koreksinya, segera akan saya edit mas.
always_direct dan never_direct (dan satu lagi no_cache) saya pakai karena saya ada "local-intranet" dalam mesin yang sama, agar client langsung ambil saja tanpa harus melalui proxy.
reff=
http://www.squid-cache.org/Doc/config/never_direct/
http://www.squid-cache.org/Doc/config/always_direct/

SSL-port dan safe-port, coba anda pakai konfigurasi default saja atau mengaju pada squid.conf yang sebelumnya anda pakai. Tapi sebetulnya sama saja sih, diringkas jadi satu dalam safe-port seperti yaang disarankan mas SJW. Artinya anda harus memasukkan semua angka di dalam ssl ke safe-port.
Sekalian mau tanya mas sebenarnya kalo untuk acl localnet ip mengarah ke proxynya sendiri dimasukin apa nggak ya...
Ini yang harusnya tdk bisa di tawar, semua konfigurasi (acl) yang menyangkut jaringan lokal tetap pakai squid.conf yang sebelumnya anda pakai.
cmiiw


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

Post by nagas » 16 Apr 2013, 05:51

@Pragola_Pati
makasih mas sudah bls..sya kira bisa 1 hit.
sya ketik lgi strip_query_terms off >>>blm tau fungsinya
mohon maklum
tpi sya hapus tetep jln hit yt nya sperti diatas
untk linknya sya coba pahami dlu

@SyaifuddinJW
thx mas..siap laksanakan....
sya jga mulai blajar dasar" mas baca" blog dan artikel mohon bimbingannya mas baru sebulan sya main ini seblumnya sya cma pke proxy internal pc
tpi agak bingung sya rambu" yg mana...sya coba baca lgi dari awal

@mas anbel
heheh ya namanya jga usaha...sya jga sangsi nerapin ini di net sya yg cma 14 pc setiap ada hit RB sya load sampe 80% mana rata" client doyan youtube


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

Post by q_p » 16 Apr 2013, 06:23

@SJW
SSL_bump ya mas ?

@nagas
sya ketik lgi strip_query_terms off >>>blm tau fungsinya
Jika kita ingin melihat semua request-string di access.log, strip_query_terms harus di-off-kan. Sebab default-nya adalah on untuk melindungi privacy client dalam meng-akses internet. Dalam kondisi on, squid mencatat seperlunya saja ke access.log. Karena kita memerlukan catatan yang lengkap, ya harus strip_query_terms off.
Soo... tdk ada hubungannya dengan HIT atau MISS
reff =
http://www.squid-cache.org/Doc/config/s ... ery_terms/


User avatar
bejonet
Posts: 2
Joined: 17 Dec 2011, 02:17

Post by bejonet » 16 Apr 2013, 08:58

Sebelum nya thx to ;

1. Abang Ucok Karnadi
2. Syarifuddin JW
3. Pragola Pati

sebelum sebelumnya saya memang telah mencoba youtube tapi belum berhasil dengan R25, iseng iseng jalan jalan ke FUI ini tiba tiba nemu tread ini.

Pertamanya saya ikuti tutor di page 38, dan alhamdulillah gatot (alias gagal total), tetapi saya gak nyerah akhirnya saya cuman comot aja yg perlu perlu saja dan saya sesuaikan dengan kebutuhan server. Dan hasilnya Lancar sampai dengan saat ini, Yusube HIT dan squid pun lancar.

Sebagai informasi saya make Squid 2.7 Stable 9

Sekali lagi Jazaakallah Khoiron Katsiro kepada semua teman teman yg udah bikin thread dan khusus buat yang saya sebut diatas.


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

Post by cah_clacap » 16 Apr 2013, 11:33

udh disesuaikan, utk buka blog dan donload udh TCP_HIT, Tp utk streaming youtube blm bisa cache alias masih TCP_MISS.
@ MAS PRAGOLA
@ MAS SYAIFUDDIN JW
N rekan2 smua tolong donk kasih masukn wat saya.
Config sy pke yg halaman 38 n sy sesuaikn dgn jaringan sya.
Kebetulan yg sy pake jaringannya udh melewati 1 proxy, jd dr modem masuk mikrotik --- radio bullet m2hp masuk ke jaringan sy pake radio wireles bullet m2hp dgn ip 192.168.x.x .baru masuk mikrotik saya dan proxy saya, kemudian baru dinikmati LAN jaringan sy.
Jd skemanya
modem--mikrotik1--proxy1--radio wirelless--mikrotik2--proxy2--Lan

kira2 yg perlakuan khusus utk confignya sbelah mana ya bos?


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

Post by JuldianTan » 16 Apr 2013, 12:51

Pragola_Pati, SyaifuddinJW

untuk acl saya pakai yang default
dan di tambah sedikit perubahan dari page 38
tetapi never_direct allow all saya comment
hasilnya sementara ini ok ok saja


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

Post by q_p » 16 Apr 2013, 14:06

@bejonet
Sama2 mas ... amin, ya robbal alamin ... :)

@Cah Cilacap
Sepertinya anda harus membuat semacam hirarki proxy, karena anda pakai 2 proxy. coba jalan2 kesini mas =
http://wetasem.blogspot.com/2008/12/kon ... squid.html
http://www.linuxhomenetworking.com/foru ... ling-HOWTO
http://yanadie.wordpress.com/2010/03/02 ... dgn-squid/

@JT
Tq, sudah saya koreksi :)


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

Post by sawitbahar » 16 Apr 2013, 14:49

@cah_cilacap

klu kedua proxy makai linux ya kedua-duanya mzz....?


:)
Last edited by sawitbahar on 27 Feb 2016, 21:44, edited 1 time in total.
Reason: nama yg dtuju


Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests