(help) squid.conf untuk ubuntu server 9.10

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
rastaboy
Posts: 9
Joined: 19 Apr 2011, 09:10

(help) squid.conf untuk ubuntu server 9.10

Postby rastaboy » 19 Apr 2011, 09:17

buat abang2 senior yang ngerti cara setting squid.conf bantuin saya donk,, coz udah 5 hari ngga bisa tidur gara2 ini,, kenapa si koq cache.log saya selalu tcp_miss ini ss cache.log nya

Image

dan ini isi squid.conf saya

squid
http_port 3128 transparent
prefer_direct off

cache_mem 8 MB
cache_swap_low 95
cache_swap_high 97
max_filedesc 8192
#server_http11 on
maximum_object_size 100 MB
minimum_object_size 0 bytes
maximum_object_size_in_memory 32 KB
ipcache_size 4096
ipcache_low 95
ipcache_high 97
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache1 5120 12 256
cache_dir aufs /cache2 5120 12 256
cache_dir aufs /cache3 5120 12 256
cache_dir aufs /cache4 5120 12 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
cache_swap_log/var/log/squid/swap.state
emulate_httpd_log off
hosts_file /etc/hosts

refresh_pattern -i \.(jp?g|gif|pnp|png|\?bm?)$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dll$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.klz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dif$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.avi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.iso$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.3gp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mpeg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xml$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.exe$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.zip$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.rar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp3$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.npz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.cfg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.ver$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.elr$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xt$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xtp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.des$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.new$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.t2bk$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.smd$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.gi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dat$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.luc$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.flv$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.html$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.htm$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.php$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jsp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.swf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.bin$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.pdf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp4$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.(/cgi-bin/|\?) 0 0% 0 ignore-reload-override-expire reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://*.google.*/.* 720 100% 4320
refresh_pattern ^http://www.facebook.com/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://kaskus.us/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://*.indowebster.*/.* 720 100% 4320
refresh_pattern ^http://*.4*shared.*/.* 720 100% 4320
refresh_pattern ^http://www.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320
refresh_pattern ^http://*.boleh.*/.* 720 100% 4320
#refresh_pattern ^http://*.detik.*/.* 180 100% 4320
#refresh_pattern ^http://*.detikinet.*/.* 180 100% 4320
#refresh_pattern ^http://*.detikhot.*/.* 180 100% 4320
#refresh_pattern ^http://*.detiportal.*/.* 180 100% 4320
#refresh_pattern ^http://*.kompas.*/.* 180 100% 4320
refresh_pattern ^http://*.facebook.*/.* 720 100% 4320
refresh_pattern ^http://*.texas_holdem.*/.* 720 100% 4320
refresh_pattern ^http://*.zynga.com.*/.* 720 100% 4320
refresh_pattern ^http://*.ninjasaga.*/.* 720 100% 4320
refresh_pattern ^http://*.texas.poker.*/.* 720 100% 4320
refresh_pattern ^http://apps.facebook.com/.* 720 100% 4320
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 4320
refresh_pattern ^http://*.google-analytics.*/.* 720 100% 4320
refresh_pattern ^ftp: 1440 20% 10080 ignore-reload-override-expire reload-into-ims
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern. 480 50% 22160 reload-into-ims

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

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # http, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl inputIP url_regex ^[url]http://[0-9]+\[/url].[0-9]+\.[0-9]+\.[0-9]+/$
acl inputIP url_regex ^[url]http://[0-9]+\[/url].[0-9]+\.[0-9]+\.[0-9]+$
acl PURGE method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow PURGE localhost
#http_access deny inputIP
http_access deny PURGE
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

acl homenet src 192.168.66.0/24
acl homenet src 192.168.22.0/24
http_access allow localhost
http_access allow homenet
http_access deny all
http_reply_access allow all
icp_access allow homenet
icp_access allow localhost
icp_access allow all
always_direct deny all

cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
pid_filename /var/run/squid.pid
shutdown_lifetime 5 seconds
logfile_rotate 7

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

zph_mode tos
zph_local 0x30


mohon di kroces donk gan dimana salah saya
User avatar
immux
Posts: 19
Joined: 26 Aug 2010, 09:46
Location: malang
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby immux » 19 Apr 2011, 10:01

coba pake konfigurasi yang basic aja dulu
User avatar
rastaboy
Posts: 9
Joined: 19 Apr 2011, 09:10

Re: (help) squid.conf untuk ubuntu server 9.10

Postby rastaboy » 19 Apr 2011, 10:10

immux wrote:coba pake konfigurasi yang basic aja dulu

maskud nya abang immux konfigureasi defaultnya ubuntu ya bang
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby ninja » 19 Apr 2011, 10:19

coba ke blognya bro rhesa disini>>> http://rhesa.itvps.org/
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby yudiarbi » 19 Apr 2011, 11:17

rastaboy wrote:buat abang2 senior yang ngerti cara setting squid.conf bantuin saya donk,, coz udah 5 hari ngga bisa tidur gara2 ini,, kenapa si koq cache.log saya selalu tcp_miss ini ss cache.log nya

dan ini isi squid.conf saya

squid
http_port 3128 transparent
prefer_direct off

cache_mem 8 MB
cache_swap_low 95
cache_swap_high 97
max_filedesc 8192
#server_http11 on
maximum_object_size 100 MB
minimum_object_size 0 bytes
maximum_object_size_in_memory 32 KB
ipcache_size 4096
ipcache_low 95
ipcache_high 97
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache1 5120 12 256
cache_dir aufs /cache2 5120 12 256
cache_dir aufs /cache3 5120 12 256
cache_dir aufs /cache4 5120 12 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
cache_swap_log/var/log/squid/swap.state
emulate_httpd_log off
hosts_file /etc/hosts

refresh_pattern -i \.(jp?g|gif|pnp|png|\?bm?)$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dll$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.klz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dif$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.avi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.iso$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.3gp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mpeg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xml$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.exe$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.zip$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.rar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp3$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.npz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.cfg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.ver$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.elr$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xt$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xtp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.des$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.new$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.t2bk$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.smd$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.gi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dat$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.luc$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.flv$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.html$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.htm$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.php$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jsp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.swf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.bin$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.pdf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp4$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.(/cgi-bin/|\?) 0 0% 0 ignore-reload-override-expire reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://*.google.*/.* 720 100% 4320
refresh_pattern ^http://www.facebook.com/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://kaskus.us/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://*.indowebster.*/.* 720 100% 4320
refresh_pattern ^http://*.4*shared.*/.* 720 100% 4320
refresh_pattern ^http://www.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320
refresh_pattern ^http://*.boleh.*/.* 720 100% 4320
#refresh_pattern ^http://*.detik.*/.* 180 100% 4320
#refresh_pattern ^http://*.detikinet.*/.* 180 100% 4320
#refresh_pattern ^http://*.detikhot.*/.* 180 100% 4320
#refresh_pattern ^http://*.detiportal.*/.* 180 100% 4320
#refresh_pattern ^http://*.kompas.*/.* 180 100% 4320
refresh_pattern ^http://*.facebook.*/.* 720 100% 4320
refresh_pattern ^http://*.texas_holdem.*/.* 720 100% 4320
refresh_pattern ^http://*.zynga.com.*/.* 720 100% 4320
refresh_pattern ^http://*.ninjasaga.*/.* 720 100% 4320
refresh_pattern ^http://*.texas.poker.*/.* 720 100% 4320
refresh_pattern ^http://apps.facebook.com/.* 720 100% 4320
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 4320
refresh_pattern ^http://*.google-analytics.*/.* 720 100% 4320
refresh_pattern ^ftp: 1440 20% 10080 ignore-reload-override-expire reload-into-ims
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern. 480 50% 22160 reload-into-ims

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

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # http, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl inputIP url_regex ^[url]http://[0-9]+\[/url].[0-9]+\.[0-9]+\.[0-9]+/$
acl inputIP url_regex ^[url]http://[0-9]+\[/url].[0-9]+\.[0-9]+\.[0-9]+$
acl PURGE method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow PURGE localhost
#http_access deny inputIP
http_access deny PURGE
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

acl homenet src 192.168.66.0/24
acl homenet src 192.168.22.0/24
http_access allow localhost
http_access allow homenet
http_access deny all
http_reply_access allow all
icp_access allow homenet
icp_access allow localhost
icp_access allow all
always_direct deny all

cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
pid_filename /var/run/squid.pid
shutdown_lifetime 5 seconds
logfile_rotate 7

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

zph_mode tos
zph_local 0x30


mohon di kroces donk gan dimana salah saya

coba ini gan.... :D
Tampilkan
http_port 3128 transparent
server_http11 on
icp_port 3130
prefer_direct off

cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
max_filedesc 8192
maximum_object_size 1024 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 4 bytes
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

cache_dir aufs /cache1 15000 32 256 (sesuaikan space cachenya)
cache_dir aufs /cache2 15000 12 256
cache_dir aufs /cache3 15000 12 256
cache_dir aufs /cache4 15000 12 256


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

dns_nameservers 127.0.0.1

emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minute

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

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

acl purge method PURGE
acl CONNECT method CONNECT

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

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

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

refresh_pattern . 0 20% 4320

#cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default


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

acl lokal(sesuaikan) src 192.168.0.0/24
http_access allow lokal(sesuaikan)
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow lokal(sesuaikan)
icp_access allow localhost
icp_access deny all
always_direct deny all
cache_mgr alamat email
cachemgr_passwd 123 all
visible_hostname nama domain
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14

untuk tag refresh pattern bisa disesuaikan, mgkn bisa membantu Gan.... :D
User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby ilham2930 » 19 Apr 2011, 11:27

rastaboy wrote:refresh_pattern -i \.(jp?g|gif|pnp|png|\?bm?)$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dll$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.klz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dif$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.avi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.iso$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.3gp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mpeg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xml$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.exe$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.zip$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.rar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp3$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.npz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.cfg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.ver$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.elr$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xt$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xtp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.des$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.new$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.t2bk$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.smd$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.gi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dat$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.luc$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.flv$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.html$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.htm$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.php$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jsp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.swf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.bin$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.pdf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp4$ 0 90% 43200 ignore-reload-override-expire reload-into-ims

mohon di kroces donk gan dimana salah saya


:: mencoba membantu (CIMIW) ::
pada bagian refresh pattern, setau saya angka 0 setelah extention file menandakan lama waktu (dalam detik) file tersebut di simpan, jadi coba lebih besar parameternya. lalu dalam urutan juga harus di perhatikan, dalam hal ini terdapat pada:

Code: Select all

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0

ni coba pake refresh patern yg saya pake di ubuntu server 9.10 squid stable 2.7 transparent proxy

Code: Select all

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

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 180 95% 403200 override-lastmod reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(doc|docx|xls|xlsx|ppt|pptx|mdb|hqx|pdf|rtf|swf|txt|html|php|asp|aspx)$ 1440 50% 43200
refresh_pattern -i \.(ico|gif|bmp|png|jpg|jpe|jpeg|tiff)$ 14400 100% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(rpm|cab|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z)$ 14400 95% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(avi|wav|mid|mpeg|mpg|flv|mov|3gp|mp4|wmv)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(mp3|mid)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(css|js|axd)$ 14400 100% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern guru.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern pupdate-af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern upgrade.bitdefender.*/.*\.(gzip) 4320 100% 43200 reload-into-ims
refresh_pattern mbam-cdn.malwarebytes.org/.*\.(exe) 4320 100% 43200 reload-into-ims
refresh_pattern data-cdn.mbamupdates.com/.*\.(ref) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 10080
refresh_pattern ^http://*.yahoo.*/.*      720 100%  7200
refresh_pattern ^http://mail.google.com/.* 720 100% 10080
refresh_pattern ^http://*.google.*/.*      720 100%  7200
refresh_pattern ^http://*.wordpress.com/.* 720     80%     10080
refresh_pattern ^http://*.wp.com/.* 720     80%     10080
refresh_pattern ^http://*.gravatar.com/.* 720     80%     10080
refresh_pattern ^http://*.blogspot.com/.* 720     80%     10080
refresh_pattern ^http://*.msn.*/.* 720     80%     10080
refresh_pattern ^http://*.evony.com/.* 720     80%     10080
refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http://download.windowsupdate.com/msdownload/update/software/updt/ 10080      80%   43200 reload-into-ims
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.static.ak.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.detik.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.ziddu.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.mediafire.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.4shared.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.okezone.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.okezone.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.inilah.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kapanlagi.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire  override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
refresh_pattern ^http://*.twitter.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://opensuse.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.opensuse.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB

Semoga membantu
bisa di liat buktinya
Tampilkan
Image
Last edited by ilham2930 on 27 Feb 2016, 16:49, edited 1 time in total.
Reason: Tambah gambar
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby sipelaut » 19 Apr 2011, 12:02

Tampilkan
ilham2930 wrote:
rastaboy wrote:refresh_pattern -i \.(jp?g|gif|pnp|png|\?bm?)$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dll$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.klz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dif$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.avi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.iso$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.3gp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mpeg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xml$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.exe$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.zip$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.rar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp3$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.npz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.cfg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.ver$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.elr$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xt$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xtp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.des$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.new$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.t2bk$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.smd$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.gi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dat$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.luc$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.flv$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.html$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.htm$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.php$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jsp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.swf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.bin$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.pdf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp4$ 0 90% 43200 ignore-reload-override-expire reload-into-ims

mohon di kroces donk gan dimana salah saya


:: mencoba membantu (CIMIW) ::
pada bagian refresh pattern, setau saya angka 0 setelah extention file menandakan lama waktu (dalam detik) file tersebut di simpan, jadi coba lebih besar parameternya. lalu dalam urutan juga harus di perhatikan, dalam hal ini terdapat pada:

Code: Select all

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0

ni coba pake refresh patern yg saya pake di ubuntu server 9.10 squid stable 2.7 transparent proxy

Code: Select all

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

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 180 95% 403200 override-lastmod reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(doc|docx|xls|xlsx|ppt|pptx|mdb|hqx|pdf|rtf|swf|txt|html|php|asp|aspx)$ 1440 50% 43200
refresh_pattern -i \.(ico|gif|bmp|png|jpg|jpe|jpeg|tiff)$ 14400 100% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(rpm|cab|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z)$ 14400 95% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(avi|wav|mid|mpeg|mpg|flv|mov|3gp|mp4|wmv)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(mp3|mid)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(css|js|axd)$ 14400 100% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern guru.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern pupdate-af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern upgrade.bitdefender.*/.*\.(gzip) 4320 100% 43200 reload-into-ims
refresh_pattern mbam-cdn.malwarebytes.org/.*\.(exe) 4320 100% 43200 reload-into-ims
refresh_pattern data-cdn.mbamupdates.com/.*\.(ref) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 10080
refresh_pattern ^http://*.yahoo.*/.*      720 100%  7200
refresh_pattern ^http://mail.google.com/.* 720 100% 10080
refresh_pattern ^http://*.google.*/.*      720 100%  7200
refresh_pattern ^http://*.wordpress.com/.* 720     80%     10080
refresh_pattern ^http://*.wp.com/.* 720     80%     10080
refresh_pattern ^http://*.gravatar.com/.* 720     80%     10080
refresh_pattern ^http://*.blogspot.com/.* 720     80%     10080
refresh_pattern ^http://*.msn.*/.* 720     80%     10080
refresh_pattern ^http://*.evony.com/.* 720     80%     10080
refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http://download.windowsupdate.com/msdownload/update/software/updt/ 10080      80%   43200 reload-into-ims
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.static.ak.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.detik.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.ziddu.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.mediafire.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.4shared.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.okezone.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.okezone.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.inilah.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kapanlagi.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire  override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
refresh_pattern ^http://*.twitter.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://opensuse.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.opensuse.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB

Semoga membantu

bro ilham btw...
spek pc punya anda bisa dipastekan kesini gak broo
kira klo pc p4 ram 245 ku pastekan refresh pattern punya anda cocok gak yahhh....?????
User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby ilham2930 » 19 Apr 2011, 12:11

sipelaut wrote:
Tampilkan
ilham2930 wrote:
rastaboy wrote:refresh_pattern -i \.(jp?g|gif|pnp|png|\?bm?)$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dll$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.klz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dif$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.avi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.iso$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.3gp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mpeg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xml$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.exe$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.zip$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.rar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp3$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.npz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.cfg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.ver$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.elr$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xt$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xtp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.des$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.new$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.t2bk$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.smd$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.gi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dat$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.luc$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.flv$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.html$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.htm$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.php$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jsp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.swf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.bin$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.pdf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp4$ 0 90% 43200 ignore-reload-override-expire reload-into-ims

mohon di kroces donk gan dimana salah saya


:: mencoba membantu (CIMIW) ::
pada bagian refresh pattern, setau saya angka 0 setelah extention file menandakan lama waktu (dalam detik) file tersebut di simpan, jadi coba lebih besar parameternya. lalu dalam urutan juga harus di perhatikan, dalam hal ini terdapat pada:

Code: Select all

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0

ni coba pake refresh patern yg saya pake di ubuntu server 9.10 squid stable 2.7 transparent proxy

Code: Select all

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

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 180 95% 403200 override-lastmod reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(doc|docx|xls|xlsx|ppt|pptx|mdb|hqx|pdf|rtf|swf|txt|html|php|asp|aspx)$ 1440 50% 43200
refresh_pattern -i \.(ico|gif|bmp|png|jpg|jpe|jpeg|tiff)$ 14400 100% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(rpm|cab|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z)$ 14400 95% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(avi|wav|mid|mpeg|mpg|flv|mov|3gp|mp4|wmv)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(mp3|mid)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(css|js|axd)$ 14400 100% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern guru.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern pupdate-af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern upgrade.bitdefender.*/.*\.(gzip) 4320 100% 43200 reload-into-ims
refresh_pattern mbam-cdn.malwarebytes.org/.*\.(exe) 4320 100% 43200 reload-into-ims
refresh_pattern data-cdn.mbamupdates.com/.*\.(ref) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 10080
refresh_pattern ^http://*.yahoo.*/.*      720 100%  7200
refresh_pattern ^http://mail.google.com/.* 720 100% 10080
refresh_pattern ^http://*.google.*/.*      720 100%  7200
refresh_pattern ^http://*.wordpress.com/.* 720     80%     10080
refresh_pattern ^http://*.wp.com/.* 720     80%     10080
refresh_pattern ^http://*.gravatar.com/.* 720     80%     10080
refresh_pattern ^http://*.blogspot.com/.* 720     80%     10080
refresh_pattern ^http://*.msn.*/.* 720     80%     10080
refresh_pattern ^http://*.evony.com/.* 720     80%     10080
refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http://download.windowsupdate.com/msdownload/update/software/updt/ 10080      80%   43200 reload-into-ims
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.static.ak.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.detik.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.ziddu.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.mediafire.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.4shared.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.okezone.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.okezone.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.inilah.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kapanlagi.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire  override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
refresh_pattern ^http://*.twitter.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://opensuse.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.opensuse.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB

Semoga membantu

bro ilham btw...
spek pc punya anda bisa dipastekan kesini gak broo
kira klo pc p4 ram 245 ku pastekan refresh pattern punya anda cocok gak yahhh....?????

Spec PC
[img:left]http://patamaas.dyndns.info:81/specpc.png[/img]
Last edited by ilham2930 on 27 Feb 2016, 16:49, edited 1 time in total.
Reason: Ganti Gambar biar keren
User avatar
immux
Posts: 19
Joined: 26 Aug 2010, 09:46
Location: malang
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby immux » 19 Apr 2011, 15:00

rastaboy wrote:
immux wrote:coba pake konfigurasi yang basic aja dulu

maskud nya abang immux konfigureasi defaultnya ubuntu ya bang


yupp.. betul banget yang saya maksud seperti itu
User avatar
rastaboy
Posts: 9
Joined: 19 Apr 2011, 09:10

Re: (help) squid.conf untuk ubuntu server 9.10

Postby rastaboy » 21 Apr 2011, 08:30

ilham2930 wrote:
rastaboy wrote:refresh_pattern -i \.(jp?g|gif|pnp|png|\?bm?)$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dll$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.klz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dif$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.avi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.iso$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.3gp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mpeg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xml$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.exe$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.zip$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.rar$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp3$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.npz$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.cfg$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.ver$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.elr$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xt$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.xtp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.des$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.new$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.t2bk$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.smd$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.gi$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.dat$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.luc$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.flv$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.html$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.htm$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.php$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.jsp$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.swf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.bin$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.pdf$ 0 90% 43200 ignore-reload-override-expire reload-into-ims
refresh_pattern -i \.mp4$ 0 90% 43200 ignore-reload-override-expire reload-into-ims

mohon di kroces donk gan dimana salah saya


:: mencoba membantu (CIMIW) ::
pada bagian refresh pattern, setau saya angka 0 setelah extention file menandakan lama waktu (dalam detik) file tersebut di simpan, jadi coba lebih besar parameternya. lalu dalam urutan juga harus di perhatikan, dalam hal ini terdapat pada:

Code: Select all

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0

ni coba pake refresh patern yg saya pake di ubuntu server 9.10 squid stable 2.7 transparent proxy

Code: Select all

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

cache deny QUERY
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 180 95% 403200 override-lastmod reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(doc|docx|xls|xlsx|ppt|pptx|mdb|hqx|pdf|rtf|swf|txt|html|php|asp|aspx)$ 1440 50% 43200
refresh_pattern -i \.(ico|gif|bmp|png|jpg|jpe|jpeg|tiff)$ 14400 100% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(rpm|cab|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z)$ 14400 95% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(avi|wav|mid|mpeg|mpg|flv|mov|3gp|mp4|wmv)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(mp3|mid)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(css|js|axd)$ 14400 100% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern guru.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern pupdate-af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern upgrade.bitdefender.*/.*\.(gzip) 4320 100% 43200 reload-into-ims
refresh_pattern mbam-cdn.malwarebytes.org/.*\.(exe) 4320 100% 43200 reload-into-ims
refresh_pattern data-cdn.mbamupdates.com/.*\.(ref) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 10080
refresh_pattern ^http://*.yahoo.*/.*      720 100%  7200
refresh_pattern ^http://mail.google.com/.* 720 100% 10080
refresh_pattern ^http://*.google.*/.*      720 100%  7200
refresh_pattern ^http://*.wordpress.com/.* 720     80%     10080
refresh_pattern ^http://*.wp.com/.* 720     80%     10080
refresh_pattern ^http://*.gravatar.com/.* 720     80%     10080
refresh_pattern ^http://*.blogspot.com/.* 720     80%     10080
refresh_pattern ^http://*.msn.*/.* 720     80%     10080
refresh_pattern ^http://*.evony.com/.* 720     80%     10080
refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http://download.windowsupdate.com/msdownload/update/software/updt/ 10080      80%   43200 reload-into-ims
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.static.ak.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.detik.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.ziddu.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.mediafire.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.4shared.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.okezone.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.okezone.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.inilah.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://www.kapanlagi.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire  override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
refresh_pattern ^http://*.twitter.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims  ignore-no-cache ignore-auth
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod  reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://opensuse.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.opensuse.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB

Semoga membantu
bisa di liat buktinya
Tampilkan
Image

saya coba nih bang,,

oiya bang jelasin tentang pengertian refresh_pattern 720 100% 10080

cara menghitung angka 720, 100%, 10080 itu gmn? apakah ada rumus nya bang menentukankan angka tersebut
User avatar
rastaboy
Posts: 9
Joined: 19 Apr 2011, 09:10

Re: (help) squid.conf untuk ubuntu server 9.10

Postby rastaboy » 21 Apr 2011, 08:32

immux wrote:
rastaboy wrote:
immux wrote:coba pake konfigurasi yang basic aja dulu

maskud nya abang immux konfigureasi defaultnya ubuntu ya bang


yupp.. betul banget yang saya maksud seperti itu

saya udah coba malah ngga bisa brosing bang
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby yudiarbi » 22 Apr 2011, 18:20

@rasta:kok gak bisa browsing?
kl menurutq tag refresh_pattern jangan terlalu banyak, kasihan si cuminya ngeload banyak..
User avatar
immux
Posts: 19
Joined: 26 Aug 2010, 09:46
Location: malang
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby immux » 22 Apr 2011, 22:59

rastaboy wrote:saya udah coba malah ngga bisa brosing bang


koq malah ga bisa buat browsing?
User avatar
d0d0n
Posts: 3
Joined: 30 Jan 2010, 16:53
Location: KEDIRY

Re: (help) squid.conf untuk ubuntu server 9.10

Postby d0d0n » 29 Apr 2011, 15:43

coba
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 95% 999999 reload-into-ims override-lastmod
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|mpg|swf)$ 43200 100% 999999 reload-into-ims override-lastmod
refresh_pattern -i \.(deb|rpm|exe|ram|bin|pdf|ppt|doc|tiff)$ 10080 100% 999999 reload-into-ims override-lastmod
refresh_pattern -i \.(zip|gz|arj|lha|lzh|tar|tgz|cab|rar)$ 10080 100% 999999 reload-into-ims override-lastmod
refresh_pattern -i \.(html|htm|css|js|php|asp|aspx|cgi) 10080 80% 999999 reload-into-ims override-lastmod

refresh_pattern ^ftp: 10080 95% 999999 reload-into-ims override-lastmod
refresh_pattern ^gopher: 1440 0% 999999 reload-into-ims override-lastmod
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 reload-into-ims override-lastmod
refresh_pattern . 10080 50% 999999 reload-into-ims override-lastmod


coba ini gan..
User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby ilham2930 » 29 Apr 2011, 16:26

yudiarbi wrote:@rasta:kok gak bisa browsing?
kl menurutq tag refresh_pattern jangan terlalu banyak, kasihan si cuminya ngeload banyak..

kalo itu mah tergantung spec pcnya bro..
..........
nih sedikit referensi refresh_pattern (artiin ndiri ya)

Code: Select all

http://www.linux.com/archive/feature/153221
User avatar
l4ng1t
Posts: 62
Joined: 03 May 2011, 03:52
Contact:

Re: (help) squid.conf untuk ubuntu server 9.10

Postby l4ng1t » 03 May 2011, 12:40

hihi... squid ya??

pertama : jangan pernah menduga kenapa sesuatu itu terjadi!! menduga itu tidak baik dan bisa mengganggu kesehatan lho.. :D

seperti saran masbro @immux, sebaiknya pakai default configurasi dari squid itu sendiri. skrg pertanyaanya, pakai squid versi berapa? berbicara squid sangat2 melelahkan dan butuh trial and error dalam waktu yg tidak sebentar. banyak faktor dan parameter2 yg bikin pusing, setiap perubahan variable sangat mempengaruhi performance squid itu sendiri.. bikin bingung tp sangat mengasyikan jika ente sudah terbiasa :D

so.. coba pakai default configurasi dulu dan tool monitoring adalah wajib hukumnya! :D
gw biasa pakai bawaan dari squid sendiri, cachemgr.cgi (info : cache manager )
setup file confnya dulu, perhatikan dan monitor dalam beberapa hari, baru edit confnya.

berikut ini contoh cachemgr.cgi gw :
Connection information for squid:
Number of clients accessing cache: 21
Number of HTTP requests received: 3432316
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: 2090.7
Average ICP messages per minute since start: 0.0
Select loop called: 47742758 times, 2.063 ms avg

Cache information for squid:
Request Hit Ratios: 5min: 27.6%, 60min: 29.0%
Byte Hit Ratios: 5min: 19.8%, 60min: 22.1%
Request Memory Hit Ratios: 5min: 1.5%, 60min: 1.3%
Request Disk Hit Ratios: 5min: 43.9%, 60min: 45.4%
Storage Swap size: 80261848 KB
Storage Mem size: 16240 KB
Mean Object Size: 26.53 KB
Requests given to unlinkd: 943992

Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 1.31166 1.31166
Cache Misses: 1.71839 1.62803
Cache Hits: 0.00815 0.00767
Near Hits: 1.05672 1.17732
Not-Modified Replies: 0.00179 0.00179
DNS Lookups: 0.00190 0.00278
ICP Queries: 0.00000 0.00000

Resource usage for squid:
UP Time: 98501.779 seconds
CPU Time: 1781.203 seconds
CPU Usage: 1.81%
CPU Usage, 5 minute avg: 2.45%
CPU Usage, 60 minute avg: 2.74%
Process Data Segment Size via sbrk(): 370964 KB
Maximum Resident Size: 0 KB
Page faults with physical i/o: 3

Memory usage for squid via mallinfo():
Total space in arena: 370964 KB
Ordinary blocks: 367759 KB 13112 blks
Small blocks: 0 KB 0 blks
Holding blocks: 21304 KB 5 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 3204 KB
Total in use: 389063 KB 99%
Total free: 3204 KB 1%
Total size: 392268 KB

Memory accounted for:
Total accounted: 244763 KB
memPoolAlloc calls: 513770021
memPoolFree calls: 507610414

File descriptor usage for squid:
Maximum number of file descriptors: 8192
Largest file desc currently in use: 2655
Number of file desc currently in use: 2067
Files queued for open: 0
Available number of file descriptors: 6125
Reserved number of file descriptors: 100
Store Disk files open: 21
IO loop method: epoll

Internal Data Structures:
3026930 StoreEntries
2793 StoreEntries with MemObjects
2463 Hot Object Cache Items
3024935 on-disk objects

fyi, configurasinya rata2 default, cm dikit yg diedit (dah males soalnya, yg penting jalan aja :D). cache udah penuh dan Request Disk Hit Ratios masih lumayan : 40%an

*not bad but not the worst :D

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 6 guests