Monday, January 30, 2012

Racikan squid 2.6 clearOS 5.2

mungkin ada yang berminat untuk mengadopsi beberapa atau keseluruhan script.. silahkan dicoba, jika ada yang kurang silahkan tambahkan sendiri, lebih bagus lagi jika koreksi di tuliskan di bagian comment, agar yang lain juga bisa memperbaikinya... ingat..!! berbagi lebih baik daripada meminta...
Racikan squid ini diambil dari rekan grup COSI, mas lentar.... (so pasti udah dapat restu untuk ditempel disini)

silahkan sedot jika berkenan.






auth_param basic program /usr/lib/squid/squid_ldap_auth -b "ou=Users,ou=Accounts,dc=gateway,dc=lentar,dc=lan" -f "(&(pcnProxyFlag=TRUE)(uid=%s))" -h 127.0.0.1 -D "cn=manager,cn=internal,dc=gateway,dc=lentar,dc=lan" -W /etc/squid/ldap.conf -s one -v 3 -U pcnProxyPassword -d
auth_param basic children 100
auth_param basic realm ClearOS Enterprise - Web Proxy
auth_param basic credentialsttl 2 hours

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.0/8
reply_body_max_size 0 allow all
# webconfig: acl_start
acl webconfig_lan src 192.168.1.0/24 
acl webconfig_to_lan dst 192.168.1.0/24 
# webconfig: acl_end
redirect_program /usr/sbin/adzapper
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl SSL_ports port 81 83 10000
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
acl Safe_ports port 70        # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535    # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl Safe_ports port 81 82 83 10000    # Web-based administration tools
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow webconfig_to_lan
http_access allow webconfig_lan
http_access deny all
icp_access allow all

http_port 192.168.1.251:3128 transparent
http_port 127.0.0.1:3128 transparent
cache_replacement_policy heap LFUDA

# cache_dir ufs /var/spool/squid 100 16 256
cache_dir ufs /var/spool/squid 409600 16 256

# maximum_object_size 4096 KB
maximum_object_size 921600 KB

#cache_swap_high 100%
#cache_swap_low 80%

#logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %#logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %h] [%#logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %h" "%{User-Agent}>h" %Ss:%Sh

# OPTIONS FOR URL REWRITING
# -----------------------------------------------------------------------------
url_rewrite_children 5
url_rewrite_children 15
url_rewrite_children 10
acl store_rewrite_list dstdomain .orkut.com .youtube.com .avast.com .avg.com .windowsupdate.com .grisoft.com .avgate.net .googlevideo.com .globo.com .mais.uol.com.br .terra.com .redtube.com
url_rewrite_access allow store_rewrite_list
url_rewrite_access deny all


redirector_bypass on
acl video urlpath_regex                   \/(get_video|videoplayback\?id|videoplayback.*id)
acl speedtest urlpath_regex               \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|txt)\
acl angka1 url_regex                      ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl angka2 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 gambar urlpath_regex                  \.(jp(e?g|e|2)|gif|png|tiff?|js|js?||bmp|png|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl rapidshare url_regex                  \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.*
acl photobucket url_regex                 ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl google url_regex                      ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl indowebster url_regex                 ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe|msi|avi|(mp(e?g|a|e|1|2|3|4))|cab|exe)
acl youtube url_regex                     ^http:\/\/\.http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
acl eksistensi url_regex                  \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar)\?
acl googlevideo url_regex                 \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videoplay url_regex                   \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocachegoogle url_regex            \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache1 url_regex                 (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 videocache2 url_regex                 (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 videocache3 url_regex                 (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 videocache4 url_regex                 proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache5 url_regex                 vid\.akm\.dailymotion\.com\/
acl videocache6 url_regex                 [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache7 url_regex                 bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache8 url_regex                 va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache9 url_regex                 \.files\.youporn\.com\/(.*)\/flv\/
acl videocache10 url_regex                \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl facebook url_regex                    \.fxfeeds.mozilla.\.com\.aliansiwarnetkapuas.blogspot\.com\/(.*)\.
acl getmethod method GET


# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320

refresh_pattern ^http\:\/\/*\.facebook\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.kaskus\.us\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.google\.co\*.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.yahoo\.co*\.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.friendster\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.detik\.com\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.kaskus\.us\/ 21600 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.google\.co\*.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.yahoo\.co*\.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.gemscool\.com*\.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.lytogame\.com*\.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.aliansiwarnetkapuas.blogspot\.com*\.*/ 21600 90% 43200 reload-into-ims
refresh_pattern ^http\:\/\/*\.bacamanga\.web.id*\.*/ 21600 90% 43200 reload-into-ims

refresh_pattern ^http://*.ninjasaga.com*/.* 720 100% 4320
refresh_pattern ^http://*.mafiawars.com*/.* 720 100% 4320
refresh_pattern ^http://*.crowdstar.com*/.* 720 100% 4320
refresh_pattern ^http://*.farmville.com*/.* 720 100% 4320
refresh_pattern ^http://*.facebook.com*/.* 720 100% 4320
refresh_pattern ^http://*.apps.facebook.com*/.* 720 100% 4320
refresh_pattern ^http://*.profile.ak.fbcdn.net/.* 720 100% 4320
refresh_pattern ^http://*.creative.ak.fbcdn.net/.* 720 100% 4320
refresh_pattern ^http://*.static.ak.fbcdn.net/.* 720 100% 4320
refresh_pattern ^http://*.facebook.poker.zynga.com/.* 720 100% 4320
refresh_pattern ^http://*.statics.poker.static.zynga.com/.* 720 100% 4320
refresh_pattern ^http://*.zynga.*/.* 720 100% 4320
refresh_pattern ^http://*.texas_holdem.*/.* 720 100% 4320
refresh_pattern ^http://*.empiresandallies.*/.* 720 100% 4320
refresh_pattern ^http://*.google.*/.* 720 100% 4320
refresh_pattern ^http://*.indowebster.*/.* 720 100% 4320
refresh_pattern ^http://*.4shared.*/.* 720 100% 4320
refresh_pattern ^http://*.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320
refresh_pattern ^http://*.plasa.com/.* 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://*.kapanlagi.*/.* 720 100% 4320
refresh_pattern ^http://*.google-analytics.*/.* 720 100% 4320
refresh_pattern ^http://*.gemscool.*/.* 720 100% 4320
refresh_pattern ^http://*.lytogame.*/.* 720 100% 4320
refresh_pattern ^http://*.aliansiwarnetkapuas.blogspot.*/.* 720 100% 4320
refresh_pattern ^http://*.bacamanga.*/.* 720 100% 4320


# Manual configuration
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 43200 999999% 43200
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 129600 999999% 129600 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 129600 999999% 129600 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id||videodownload\?|\.flv?)       129600 999999% 129600 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern \.(ico|video-stats) 129600 999999% 129600 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod
refresh_pattern \.etology\? 129600 999999% 129600 override-expire ignore-reload ignore-no-cache
refresh_pattern galleries\.video(\?|sz) 129600 999999% 129600 override-expire ignore-reload ignore-no-cache
refresh_pattern brazzers\? 129600 999999% 129600 override-expire ignore-reload ignore-no-cache
refresh_pattern \.adtology\? 129600 999999% 129600 override-expire ignore-reload ignore-no-cache
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).* 129600 20% 129600 ignore-no-cache ignore-private override-expire ignore-reload ignore-auth
refresh_pattern ^.*safebrowsing.*google 129600 999999% 129600 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 129600 999999% 129600 override-expire ignore-reload
refresh_pattern ytimg\.com.*\.jpg 129600 999999% 129600 override-expire ignore-reload
refresh_pattern images\.friendster\.com.*\.(png|gif) 129600 999999% 129600 override-expire ignore-reload
refresh_pattern garena\.com 129600 999999% 129600 override-expire reload-into-ims
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 129600 999999% 129600 override-expire ignore-reload
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 129600 999999% 129600 ignore-no-cache override-expire override-lastmod
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 129600 999999% 129600 reload-into-ims override-expire ignore-private
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 129600 999999% 129600 reload-into-ims ignore-no-cache ignore-reload override-expire
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 129600 999999% 129600 reload-into-ims ignore-no-cache ignore-reload override-expire


# compressed
refresh_pattern -i \.gz$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.cab$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.bzip2$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.bz2$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.gz2$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.tgz$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.tar.gz$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.zip$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.rar$ 2160000 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.tar$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.ace$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.7z$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# documents
refresh_pattern -i \.xls$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.doc$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.xlsx$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.docx$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.pdf$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.ppt$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.pptx$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.rtf\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# multimedia
refresh_pattern -i \.mid$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.wav$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.viv$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mpg$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mov$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.avi$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.asf$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.qt$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.rm$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.rmvb$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mpeg$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.wmp$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.3gp$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mp3$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mp4$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# web content
refresh_pattern -i \.js$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.psf$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.html$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.htm$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.css$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.swf$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.js\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.css\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.xml$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload


# images
refresh_pattern -i \.gif$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.jpg$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.png$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.jpeg$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.bmp$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.psd$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.ad$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.gif\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.jpg\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.png\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.jpeg\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.psd\?$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# application
refresh_pattern -i \.deb$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.rpm$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.msi$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.exe$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.dmg$ 21600 70% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# misc
refresh_pattern -i \.dat$ 21600 90% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.qtm$ 21600 90% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# itunes
refresh_pattern -i \.m4p$ 21600 90% 21600 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mpa$ 21600 90% 21600 override-expire override-lastmod reload-into-ims ignore-reload

# IIX download
refresh_pattern -i ^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
refresh_pattern -i ^http:\/\/\.www[0-9][0-9]\.addthisedge.com\.com\/(.*) 21600 90% 43200 reload-into-ims

connect_timeout 1 minute
# peer_connect_timeout 30 seconds
read_timeout 15 minutes
request_timeout 5 minutes
persistent_request_timeout 2 minutes
# client_lifetime 1 day
half_closed_clients on
# pconn_timeout 1 minute
# ident_timeout 10 seconds
shutdown_lifetime 30 seconds

# DELAY POOL PARAMETERS
# -----------------------------------------------------------------------------

acl server src 10.10.10.2
acl hotspot src 192.168.1.0/24
acl lab src 192.168.3.0/24
acl ekstensiblok url_regex -i \.aif \.rmi \.snd \.wav \.aifc \.aiff \.au \.mid \.midi \.mp3 \.wma \.aaf \.ogg \.rm
acl ekstensiblok url_regex -i \.asf \x-flv \.mpe \.mpeg \.mpg \.mpv2 \.avi \.m1v \.mp2v \.mpa \.flv \.wmv \.dat \ipf
acl ekstensiblok url_regex -i \.mkv \.div \.divx \.div \.ac3 \.dts \.vob \.dvr-ms \.mp4 \.m2v \.m4v \.m2ts \.bup \.rmvb
acl ekstensiblok url_regex -i \.3gpp \.3gp2 \.3gp \.3g2 \.vro \.rm \.ram \.raw \.qt \.mov \.svcd \.xdiv \.3mm \.aep \.des
acl ekstensiblok url_regex -i \.ajp \.amv \.avs \.d2v \.d3v \.dmb \.dxr \.amx \.arf \.asf \.dvx \.f4v \.dv \.bsf \.rv \.msi
acl ekstensiblok url_regex -i \.srf \.hdf \.wbmp \.x3f \.xbm \.cr2 \.crw \.dcr \.tga \.djvu \.emf \.fpx \.icl \.icn \.plp \.vdf
acl ekstensiblok url_regex -i \.ppm \.raf \.ras \.raw \.mrw \.nef \.orf \.pbm \.pcd \.pef \.pgm \.rs \.pdf \.utx \.nzp \.pak \.cdiff
acl ekstensiblok url_regex -i \.rpm \.bin \.dmg \.exe \.msi \.cab \.swf \.wsf \.pdf \.m4v \.000 \.001 \.002 \.003 \.004 \.005 \.006 \.007 \.008 \.009
acl ekstensiblok url_regex -i \.ace \.arj \.bzip2 \.gz \.jar \.tgz \.uue \.iso \.7-zip \.rar \.alz \.nrg \.zip \.cab \.gzip \.vpx
acl ekstensiblok url_regex -i \.lzw \.lzh \.tar \.tbz \.tar.tbz \.tar.tgz \.tar.tgz2 \.torrent \.FLV \.7z \.mp4 \.aac \.ogg \.pck
acl streamregex url_regex -i watch\? get_video\?video_id videodownload\? videoplayback\? videoplay\? dailymotion video\.[a-z]\.fbcdn\.net video\flv video\mpg video\quicktime video\x-flv video\mp4 video\x-avi video\x-mpeg video\x-wmv video\flash video\qt video\wmv

### DELAY POOLS
delay_pools 2

delay_class 1 1
delay_class 2 3
delay_parameters 1 -1/-1
delay_parameters 2 30000/30000 30000/30000 30000/30000
delay_access 1 allow server
delay_access 1 deny ALL

# webconfig: http_port_start
http_port 192.168.1.251:3128 transparent
http_port 127.0.0.1:3128 transparent
# webconfig: http_port_end

follow_x_forwarded_for allow localhost

2 comments:

Anonymous said...

berbagilah semampumu mantap bg filosofinya
tambah dikit lagi bg. dengan berbagi diapun akan bertambah
hehehhehehe

M.Redha said...

mas bro... bisa di bantu gx tolong di bold bagian mana saja yg perlu di ganti sesuai dgn kondisi jaringn saya,, maksih,.,

Post a Comment