Penilainan squid.conf

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
phadjart
Posts: 32
Joined: 31 Mar 2012, 21:16
Location: Kota Salatiga
Contact:

Penilainan squid.conf

Postby phadjart » 18 Nov 2012, 16:15

squid dengan Ubuntu Server 10.10 64bit AMD. para master mohon di koreksi. :) bila ada salah mohon pembenahannya..


=

http_port 3128 transparent
cache_mem 8 MB
server_http11 on
icp_port 0

pid_filename /var/run/squid.pid
#coredump_dir /var/spool/squid/
coredump_dir /cache1
coredump_dir /cache2
error_directory /usr/share/squid/errors/English
icon_directory /usr/share/squid/icons
mime_table /usr/share/squid/mime.conf

maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
store_avg_object_size 13 KB
cache_swap_low 90
cache_swap_high 95
dns_nameservers 127.0.0.1
cache_dir aufs /cache1 25000 16 256
cache_dir aufs /cache2 25000 16 256
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_log /dev/null
cache_store_log /dev/null
redirect_rewrites_host_header off
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563 81
acl Safe_ports port 21 70 80 81 210 280 443 488 563 591 631 777 901 3128 1025-65535
acl CONNECT method CONNECT
acl dynamic urlpath_regex cgi-bin \?
acl all src 0.0.0.0/0
acl network src 10.10.10.0/24
acl network src 192.168.3.0/24
acl network src 192.168.1.0/24
http_access allow manager
http_access allow localhost
http_access allow network
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
http_gzip on
http_gzip_types text/plain,text/html,text/xml,text/css,application/xml,application/xhtml+xml,application/rss+xml,application/javascript,application/x-javascript

snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all

# Caching Youtube
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.youporn\.com\/(.*)\.flv
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url url_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl videocache_allow_url url_regex -i \.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url url_regex -i redtube\.com\/(.*)\.flv
acl store_rewrite_list urlpath_regex -i \/(get_video\?|videodownload\?|videoplayback.*id)
acl store_rewrite_list urlpath_regex -i \.flv$ \.mp3$ \.mp4$ \.swf$ \
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

#Dynamic Contain
acl speedtest dstdom_regex -i speedtest.*\.
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id)
acl store_rewrite_list urlpath_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_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 \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.com
acl store_rewrite_list_domain_CDN url_regex 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:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id)
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive quantserve\.com
acl dontrewrite url_regex yimg.com redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\? threadless.*\.jpg\?r=
acl getmethod method GET

storeurl_access allow speedtest
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow videocache_allow_url
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access deny all

storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 2
storeurl_rewrite_concurrency 99

max_stale 10 years
acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|pak|ver|patch)$
acl QUERY urlpath_regex -i (dat.asp|afs.dat|notice.swf|patchlist.txt|hackshield|captcha|reset.css|update.ver|notice.html|updates.txt|gamenotice)
cache deny QUERY
refresh_pattern -i \.(sc-|dl-|ex-|mh-|mst|dll)$ 0 20% 0
refresh_pattern -i (main.exe|notice.html)$ 0 20% 0
refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0 20% 0
refresh_pattern .speedtest.* 0 60% 10 negative-ttl=0
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 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 \.(ico|video-stats) 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negati
ve-ttl=10080 store-stale
refresh_pattern \.etology\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 43200 999999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 43200 999999% 43200 override-expire 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 override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=10
refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 override-expire 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 override-expire ignore-reload ignore-private store-stale negative-ttl=10080
refresh_pattern ytimg\.com.*\.jpg 43200 999999% 43200 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 43200 999999% 43200 override-expire ignore-reload store-stale
refresh_pattern garena\.com 43200 999999% 43200 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 43200 999999% 43200 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 43200 999999% 43200 reload-into-ims override-expire 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 override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern (get_video|videoplayback|videodownload|\.flv).*(begin|start)\=[1-9][0-9]* 0 0% 0
refresh_pattern imeem.*\.flv 0 0% 0 override-lastmod override-expire
refresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stale
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (livescore.com|UpdaterModifier.exe|FreeStyle.exe|FSLauncher.exe) 0 20% 0
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
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


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

#ads
refresh_pattern ^.*safebrowsing.*google 131400 999999% 525600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 5259487 20% 5259487 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440

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

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


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

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

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

#IIX DOWNLOAD
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale ignore-auth

#specific sites
refresh_pattern \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 131400 90% 525600 ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 131400 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 525600 99999999% 525600 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale negative-ttl=0
refresh_pattern \.(ico|video-stats) 525600 999999% 525600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern \.etology\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 525600 999999% 525600 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 131400 999999% 525600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.(jpg|png) 525600 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 131400 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern garena\.com 525600 999999% 525600 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 525600 999999% 525600 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 525600 999999% 525600 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 131400 999999% 525600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 525600 999999% 525600 reload-into-ims override-expire store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 999999% 525600 reload-into-ims override-expire ignore-private store-stale
refresh_pattern \.macromedia.com.*\.(z|exe|cab) 131400 999999% 525600 ignore-reload override-expire store-stale

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

### Objek-objek statis waktu peyimpanannya diperlama
refresh_pattern -i \.(class|css|js|tif)(\?.*)?$ 1440 95% 100000080 reload-into-ims override-lastmod
refresh_pattern -i \.(jpe|jpg|jpeg|png|bmp|gif)(\?.*)?$ 0 95% 1000000080 reload-into-ims override-lastmod
refresh_pattern -i \.(tiff|mov|avi|qt|mpeg|3gp)(\?.*)?$ 0 95% 201600000 reload-into-ims override-lastmod
refresh_pattern -i \.(mpg|mpe|wav|au|mid|flv)(\?.*)?$ 0 95% 2016000 reload-into-ims override-lastmod
refresh_pattern -i \.(zip|gz|arj|lha|lzh)(\?.*)?$ 0 95% 2016000 reload-into-ims override-lastmod
refresh_pattern -i \.(rar|tgz|tar|exe|bin)(\?.*)?$ 0 95% 2016000 reload-into-ims override-lastmod
refresh_pattern -i \.(cab|psf|part|0*|swf|gz|grf|gpf)(\?.*)?$ 0 95% 2000160 reload-into-ims override-lastmod
refresh_pattern -i \.(pdf|rtf|doc|swf|txt|inf)(\?.*)?$ 1 95% 2016000 reload-into-ims override-lastmod
refresh_pattern -i \.(inc|cab|ad|hqx|dll)(\?.*)?$ 10080 95% 4320000 reload-into-ims override-lastmod
refresh_pattern -i \.(asp|acgi|pl|shtml|php3|php)(\?.*)?$ 2 20% 432000 reload-into-ims override-lastmod
refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 40% 40320

fqdncache_size 4096
ipcache_size 8192
ipcache_low 90
ipcache_high 95
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
shutdown_lifetime 20 seconds
memory_pools off
buffered_logs off
log_icp_queries off
logfile_rotate 1
log_fqdn off
forwarded_for off
icp_hit_stale on
query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 2 minutes
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache_mgr phadjart@yahoo.com
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname smk-issudda.blogspot.com
unique_hostname Proxy
cachemgr_passwd none all
client_db on
max_filedescriptors 8192
n_aiops_threads 24
load_check_stopen on
load_check_stcreate on
download_fastest_client_speed on
negative_ttl 30 seconds
positive_dns_ttl 6 hours
negative_dns_ttl 60 seconds

# TAG: ZPH
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
[quote][/quote]
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Penilainan squid.conf

Postby q_p » 18 Nov 2012, 17:03

Saya coba bantu2 ya mas. Sebelumnya, teman2 di sini mungkin butuh informasi lebih lanjut tentang mesin anda :
1. Versi squid
2. Ram yang digunakan
3. Berapa buah HHD-nya
4. Dedicated atau tidak
User avatar
phadjart
Posts: 32
Joined: 31 Mar 2012, 21:16
Location: Kota Salatiga
Contact:

Re: Penilainan squid.conf

Postby phadjart » 19 Nov 2012, 19:42

ini mas.. menggunakan
1. Versi squid = 10.10 64 bit
2. Ram yang digunakan = 2 GB ram
3. Berapa buah HHD-nya = 80 GB ,(rencana mau nambah lagi)
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Penilainan squid.conf

Postby q_p » 19 Nov 2012, 23:46

Bentar, kita samakan persepsi dulu:
1. Ubuntu 10.10 64 bit
2. Ram 2 GB
3. HDD 1 buah 80 GB
4. Rencana mau nambah HDD lagi
5. versi squid = ?? ---> untuk melihat versi squid, bisa dengan perintah =

Code: Select all

squid -v
User avatar
phadjart
Posts: 32
Joined: 31 Mar 2012, 21:16
Location: Kota Salatiga
Contact:

Re: Penilainan squid.conf

Postby phadjart » 21 Nov 2012, 16:00

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-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'

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

Re: Penilainan squid.conf

Postby q_p » 21 Nov 2012, 18:42

Ini proxy-nya sudah jalan kan ? Hasil dari Genereal Runtime Information pada Cache Manager di posting di sini juga ya mas.
User avatar
phadjart
Posts: 32
Joined: 31 Mar 2012, 21:16
Location: Kota Salatiga
Contact:

Re: Penilainan squid.conf

Postby phadjart » 21 Nov 2012, 19:01

iya mas udah jalan... caranya gman ya mas.,, ?? maaf mas. masih newbie.
User avatar
jail
Posts: 162
Joined: 19 May 2010, 10:14
Location: jakarta

Re: Penilainan squid.conf

Postby jail » 22 Nov 2012, 07:35

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

Re: Penilainan squid.conf

Postby bellec » 24 Nov 2012, 23:43

Mohon dikoreksi Mastah, kalau ada yang salah
squid dengan Ubuntu Server 11.10
Ram yang digunakan = 8 GB ram
Berapa buah HHD-nya = 2 buah (@250G)

untuk topologinya

inet-- Modem -- mikrotik --- lokal, wifi
proxy ubuntu


[spoiler]http_port 3128 transparent
cache_mem 8 MB
server_http11 on
maximum_object_size_in_memory 2 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
maximum_object_size 200000 KB
cache_swap_low 90%
cache_swap_high 95%

cache_dir aufs /cache1 44500 64 256
cache_dir aufs /cache2 44500 64 256
cache_dir aufs /cache3 44500 64 256
cache_dir aufs /cache4 44500 64 256
cache_dir aufs /cache5 44500 64 256
cache_dir aufs /cache6 44500 64 256
cache_dir aufs /cache7 44500 64 256


access_log /var/log/squid/access.log
##cache_log /dev/null
cache_log /var/log/squid/cache.log
cache_store_log /dev/null

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl purge method PURGE
acl CONNECT method CONNECT

acl advertise url_regex -i "/etc/squid/ads.block"
deny_info http://lusca.indolini.org/fill.png advertise
http_access deny advertise

acl bokep url_regex "/etc/squid/block.txt"

acl all src 0.0.0.0/0
acl jaringan src 192.168.0.0/16
acl jaringan src 172.16.0.0/12
acl jaringan src 10.0.0.0/8

http_access deny bokep
http_access allow manager
http_access allow localhost
http_access allow purge localhost
http_access deny purge
http_access allow jaringan
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all

#acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
#cache deny thunder_lst
#cache_peer 172.16.10.1 parent 8080 0 proxy-only no-digest
#dead_peer_timeout 2 seconds
#cache_peer_access 172.16.10.1 allow thunder_lst
#cache_peer_access 172.16.10.1 deny all

#include /etc/squid/tc3.conf

#snmp_port 3401
#acl snmppublic snmp_community public
#snmp_access allow snmppublic all

#######################################
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2$
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 \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.$

acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
########
#acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.range\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url 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]?)\.($
acl videocache_allow_url 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]?)\.($
acl videocache_allow_url 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]?)\.($
acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url 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\/ www\.tube8\.com\/(.*)\/
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .redtube.com .cdn.dailymotion.com

acl dontrewrite url_regex redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]*
acl getmethod method GET

storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access deny all
storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 7
storeurl_rewrite_concurrency 10

max_stale 8 week
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 86400 999999% 86400 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-p$
################################


##refresh_pattern \.*\.(kom|stg|xtp|xt|nzp) 604800 999999% 604800 override-expire ignore-reload ignore-no-cache store-stale
##refresh_pattern ^http://122.102.49.202/.* 43800 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0
refresh_pattern \.phoronix.* 43800 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0
refresh_pattern \.kaspersky.* 0 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0
refresh_pattern \.perfectworld.* 43800 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0
refresh_pattern \.orangegame.* 43800 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0
refresh_pattern \.avira-update.com.* 43800 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0
refresh_pattern static.republika.co.id.*\/ 43200 90% 129600 override-expire override-lastmod ignore-reload ignore-no-cache

refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
refresh_pattern -i facebook.com|akamaihd.net|fbcdn.net/.*\.(jpg|gif|png|mp[4|3]) 1440 300% 10080 override-expire ignore-no-cache ignore-private reload-into-ims

#sound, video multimedia
refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|3gp)$ 0 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache store-sta$
refresh_pattern -i \.(swf|wav|mp3|mp4|au|mid|ogg)$ 0 90% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-aut$

# files
refresh_pattern -i \.(class|css|js)$ 0 20% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(iso|deb|rpm|drpm|zip|tar|tgz|gz|bz2|bz|ram|rar|7z|z|arj|lha|lzh|arj)$ 0 40% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(exe|msi|inc|cab|dll|ad|dat|udeb|bin|msp|themepack)$ 0 60% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(hqx|pdf|rtf|doc|xls|ppt|exe|pps|docx|xlsx|txt|srt|RTP)$ 0 90% 43200 reload-into-ims override-lastmod store-stale ignor$
#refresh_pattern -i \.(asp|acgi|pl|shtml|php3|php)$ 0 20% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(jpe|jpg|jpeg|png|bmp|gif|tif|psd|tiff)$ 0 90% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(sc-|dl-|ex-|mh-|da-|jce)$ 0 20% 1440 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(psf|part|0*|grf|gpf|kdc)$ 0 50% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.(comp|cvd|fbk|w3x|mar|bld|nzp|pck|xfs|rp|vpx|pak|xz|iop|comp|kfs|big|em)$ 0 50% 43200 reload-into-ims override-lastmod store-stale ignor$
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 40% 40320

via off
header_access From deny all
header_access Server deny all
header_access WWW-Authenticate deny all
header_access Link deny all
header_access Cache-Control deny all
header_access Proxy-Connection deny all
header_access X-Cache deny all
header_access X-Cache-Lookup deny all
header_access Via deny all
header_access Forwarded-For deny all
header_access X-Forwarded-For deny all
header_access Pragma deny all
header_access Keep-Alive deny all
forwarded_for off

max_filedescriptors 65536
fqdncache_size 4096
ipcache_low 98
ipcache_high 99
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
shutdown_lifetime 5 seconds
memory_pools off
buffered_logs off
log_icp_queries off
logfile_rotate 7
log_fqdn off
forwarded_for off
icp_hit_stale on
query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 2 minutes
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
##high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache_mgr proxy
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy
unique_hostname proxy
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136[/spoiler]

o iya, kalau file mp3. exe dll ada yang ngak bisa dicache mas.
mohon koreksinya.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Penilainan squid.conf

Postby q_p » 25 Nov 2012, 04:18

@allec
Bukan menilai karena saya bukan pak Guru, coba bantu ngasih masukan dikit2 aja biar nanti Mastah2 kita yang menyempurnakan.
[spoiler]1. Membuat mesin proxy yang saya alami adalah proses panjang. Dimulai dari pemilihan/penentuan jaringan dan hardware, install ubuntu (misalnya menggunakan FS reiserfs dan opsi notail&noatime di dalamnya), compile, konfigurasi sguid sampai dengan penerimaan client/user.
2. Sebaiknya gunakan yang versi LTS dan 64 bit (kalau proci-nya mendukung) agar RAM anda terbaca 8 GB.
3. Squid tidak tidak membutuhkan HDD yang volume gede, kecil saja (sata) tetapi banyak. Saya menggunakan HDD IDE 20 GB u/ system dan HDD SATA 80 GB hanya saya pakai u/ cache 20 GB. Sehingga menjadi ini :

Code: Select all

cache_dir aufs /cache1 15000 32 256
3. Agar file squid.conf tdk panjang pada bagian refresh pattern dipisah dan dibuatkan file tersendiri dengan nama refresh_pattern.conf di directory /etc/squid/ sebagai gantinya tambahkan ini di squid.conf =

Code: Select all

include /etc/squid/refresh_pattern.conf
4. Pada bagian caching dynamic contents, sepertinya ada banyak baris yang terputus (tidak lengkap), itu ditandai dengan karekter dollar ($) di akhir baris. Bagian ini mungkin yang menyebabkan file dengan ekstensi mp3 tidak bisa ter-cache.
5. Pada bagian ini mungkin mau menggunakan sebagai anonimus. Tetapi itu memerlukan opsi '--enable-http-violations' pada saat ngupil :

Code: Select all

header_access From deny all header_access Server deny all header_access WWW-Authenticate deny all header_access Link deny all header_access Cache-Control deny all header_access Proxy-Connection deny all header_access X-Cache deny all header_access X-Cache-Lookup deny all header_access Via deny all header_access Forwarded-For deny all header_access X-Forwarded-For deny all header_access Pragma deny all header_access Keep-Alive deny all
Keterangannya ada di squid: header_access configuration directive
6. Pada bagian ini harap di crosscheck dengan hasil dari command "ulimit -HSn". Jika hasilnya lebih kecil dari konfigurasi squid, sebaiknya file descriptor limit dinaikkan secara permanent. Juga, pada saat ngupil, memerlukan opsi '--with-maxfd=65535'

Code: Select all

max_filedescriptors 65536

7. Untuk mengetahui bagaimana squid anda dikonfigur saat ngupil, bisa menggunakan perintah 'squid -v'[/spoiler]Sementara itu dulu ya mas, kalau ada waktu disambung lagi. CMIIW.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Penilainan squid.conf

Postby q_p » 25 Nov 2012, 05:02

@phadjart;
1. Sayang anda tidak menggunakan opsi CHOST,CFLAGS dan CXXFLAGS pada saat ngupil. Misalnya, jika anda menggunakan Phenom II bisa anda tambahkan :

Code: Select all

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}" \ ===>sesuaikan dengan type proci anda --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-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
Untuk menyesuaikan dengan type proci anda bisa lihat di Safe Cflag/AMD - Gento Linux Wiki.
2. Anda bisa menghilangkan ' --enable-snmp' jika tidak berniat menggunakan cacti misalnya, sehingga bagian ini bisa dihapus :

Code: Select all

snmp_port 3401 acl snmppublic snmp_community public snmp_access allow snmppublic all
3. Anda juga bisa menghilangkan '--enable-delay-pools' karena pengaturan BW-manajemen lebih efektif dilakukan di sisi mikrotik daripada menggunkan delay_pools di squid (seperti terlihat di squid.conf anda, tidak ada acl untuk delay_pools).
Sementara itu dulu ya mas, kalau ada waktu disambung lagi. CMIIW.
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Penilainan squid.conf

Postby bellec » 25 Nov 2012, 09:55

[spoiler]Tetapi itu memerlukan opsi '--enable-http-violations' pada saat ngupil :
Juga, pada saat ngupil, memerlukan opsi '--with-maxfd=65535'[/spoiler]
maksud dan caranya gimana mas ?


[spoiler]Pada bagian caching dynamic contents, sepertinya ada banyak baris yang terputus (tidak lengkap), itu ditandai dengan karekter dollar ($) di akhir baris. Bagian ini mungkin yang menyebabkan file dengan ekstensi mp3 tidak bisa ter-cache[/spoiler]
kalau menurut mas PragolaPati gimana solusinya, maklum saya sgt "super newbi" dalam hal ini, ini hanya hasil copas2 yang maksudnya dan artinya saya tidak tau,

[spoiler]Pada bagian ini harap di crosscheck dengan hasil dari command "ulimit -HSn". Jika hasilnya lebih kecil dari konfigurasi squid, sebaiknya file descriptor limit dinaikkan secara permanent.[/spoiler]
hasilnya 1024 mas,

ngupil itu apa ya ? heheheh.. :blush: :blush:
maaf kalau saya tidak mengerti dasar2 dar proxy ini
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Penilainan squid.conf

Postby q_p » 25 Nov 2012, 11:55

@allec
Mohon maaf ya, kalau boleh bertanya ="bagaimana dengan penguasaan mikrotik anda?" Kalau misalnya, masih sama2 dalam proses pembelajaran alangkah baiknya mas allec fokus ke salah satu dulu, misalnya Ubuntu. Jika mas allec setuju dengan usul saya =
1. Tutorial-nya bisa anda download di sini..
2. Download ubuntu-10.04.4-server-amd64.iso
3. Gunakan komputer anda saat ini, usahakan ganti HDD dengan =
##### 1 HDD IDE 20 GB (bekas) untuk system.
##### 1 HDD SATA 40 GB atau 80 GB (second) untuk cache_dir. Pada saat sampai pada tahap pembuatan partisi, buat hanya 1 partisi berukuran 20 GB dengan filesystem reiserfs dan pilih opsi notail + noatime.
##### 1 HDD SATA 250 GB untuk file/folder sharing. Supaya lebih gampang, sebelumnya anda format menjadi 1 partisi dengan windows dengan filesystem ntfs. Pada saat instalasi ubuntu server sampai tahap pembuatan partisi, anda tinggal menentukan titik_kait-nya.
##### 1 LANcard.
Sementara itu dulu ya mas, selamat ber-eksperiman semoga sukses.
CMIIW.
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Penilainan squid.conf

Postby bellec » 25 Nov 2012, 12:15

hehe :/ mas PragolaPati, kalau soal penguasaan mikrotik atau ubuntu mmg saya sgt tidak paham, udah lebih dari 1 tahun baca2 tapi masih sulit juga paham, mgkin karna tidak tau harus mulai dari mana dasar2nya..
makasih mas, untuk sarannya pasti saya ikuti. :)
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Penilainan squid.conf

Postby q_p » 25 Nov 2012, 12:46

Nah..gitu, mikrotiknya disimpan saja. Gunakan hanya ubuntu server, namanya full open-source. Jangan kuatir, nanti kalau ketemu kendala di tengah jalan jangan sungkan2 berkunjung ke forum ini ya. Insya-Allah teman2 kita di sini dengan sukarela akan membantu.

Who is online

Users browsing this forum: No registered users and 11 guests