Topic: ask ?? proxy squid ( gambar pemain poker kembar semua )

buat para suhu, mohon bantuannya..

ane kan pake mikrotik + proxy squid..
nah yang jadi masalah kenapa kok gambar pemain poker pada kembar semua ya..? padahal dulu gak begini... ini saya share script squidnya..


-----/etc/squid/squid.conf-----

##start of config
http_port 3128 transparent
icp_port 0
#icp_port 3130

cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy
cache_mgr adam.bule@gmx.com
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
logfile_rotate 1
shutdown_lifetime 10 seconds

####################################################################
# Allow local network(s) on interface(s)
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
####################################################################
uri_whitespace strip
dns_nameservers 127.0.0.1  202.134.0.155 202.134.0.155
dns_testnames 127.0.0.1
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA

cache_dir aufs /cache1 12000 24 256
#cache_dir aufs /cache2 51200 64 256 min-size=98304

#store_dir_select_algorithm  round-robin

minimum_object_size 512 bytes
maximum_object_size 128 MB
offline_mode off
cache_swap_low 96
cache_swap_high 99

# No redirector configured

# Setup some default acls
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl safeports port 21 70 80 210 280 443 488 563 591 667 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
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 !safeports
http_access deny CONNECT !sslports

# Always allow localhost connections
http_access allow localhost

# Allow local network(s) on interface(s)
http_access allow localnet

# Default block all to be sure
http_access deny all

# Anonymous proxy
#via off
forwarded_for off
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access Via deny all
header_access X-Forwarded-For deny all
httpd_suppress_version_string on

include /etc/squid/linux/include.conf

##end of config



-----/etc/squid/linux/include.conf-----

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|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|id) streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com

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

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/linux/storeurl.pl
storeurl_rewrite_children 1
storeurl_rewrite_concurrency 99

max_stale 10 years

include /etc/squid/linux/refresh.conf

acl snmppublic snmp_community public
snmp_port 3401
snmp_access allow snmppublic all

zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

#range offset should have limit
range_offset_limit 512 KB

#read_ahead_gap 32 KB
reload_into_ims on
strip_query_terms on
deny_info TCP_RESET localnet

negative_dns_ttl 1 second
negative_ttl 1 second

maximum_single_addr_tries 2
retry_on_error on

vary_ignore_expire on
#client_db off # this needs to be on for acl maxconn to work
ipcache_size 1024
fqdncache_size 1024
pipeline_prefetch on
#half_closed_clients off
#buffered_logs on
#download_fastest_client_speed on
high_page_fault_warning 50
cachemgr_passwd none info
#cachemgr_passwd none config reconfigure offline_toggle
#n_aiops_threads 32


-----/etc/squid/linux/refresh.conf-----

acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|pak|ver|patch|md5)$
acl QUERY urlpath_regex -i (dat.asp|afs.dat|notice.swf|patchlist.txt|vdf.info.gz|hackshield|recaptcha|captcha)
acl QUERY urlpath_regex -i (version.list|reset.css|notice.html|updates.txt|gamenotice)
cache deny QUERY

refresh_pattern -i  \.(sc-|dl-|ex-|mh-|dll)  0  50% 1440
refresh_pattern -i  \.(mst|Xtp|iepngfix.htc)$   0  50% 43800
refresh_pattern -i (main.exe|notice.html|Loader.xml|Loader.xml.zip|update.exe|grandchase.exe|FSLauncher.exe|FreeStyle_Setup.exe|rohanclient__exe.rp)$    180  50% 43800
refresh_pattern -i (UpdaterModifier.exe|FreeStyle.exe|PBLauncher.exe|update.exe|NewLauncher.exe|NewAvalon.exe|hon.exe.zip|cabal.exe|filelist.zip|AvaClient.exe)$   180  50% 43800
refresh_pattern -i (wks_avira-win32-en-pecl.info.gz|wks_avira10-win32-en-pecl.info.gz|update.exe.gz|setup.exe.gz|avscan.exe.gz|avguard.exe.g)$   180  50% 180
#PB
refresh_pattern  (PointBlank.exe.zip|HSUpdate.exe.zip|PBConfig.exe.zip)  180  60%   131400
refresh_pattern -i (livescore.com|goal.com)  0  50% 60

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



#speedtest smile
refresh_pattern .speedtest.*(jpg|txt)\?  0  50% 0

#ads
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).* 131400  20% 131400  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

#Video flv
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?)  131400   100% 131400 ignore-private  override-expire ignore-reload store-stale negative-ttl=0
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale

refresh_pattern \.(ico|video-stats)   131400  999999% 131400  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 galleries\.video(\?|sz)  131400  999999% 131400  override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*safebrowsing.*google  131400  50% 131400  override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id)  131400  50% 131400 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.(jpg|png)  131400  50% 131400  override-expire ignore-reload store-stale

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

#GAME2
refresh_pattern .gemscool.com.*\(zip)  43800 100%  43800   reload-into-ims override-expire store-stale
refresh_pattern .edgecastcdn.net.*\swf\?  43800 999999% 43800   ignore-no-cache override-expire ignore-reload ignore-must-revalidate store-stale

refresh_pattern  photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)   131400  100% 131400  override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\?   131400  100% 131400  ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern ^http:\/\/images|openx|pics|thumbs[0-9]\.  131400  100% 131400  ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)  131400  100% 131400  reload-into-ims override-expire ignore-private store-stale

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

#Windows Update
refresh_pattern .windowsupdate.com/.*\.(cab|exe|psf) 43200  999999%  129600 ignore-no-cache ignore-no-store ignore-reload  reload-into-ims store-stale
refresh_pattern update.microsoft.com/.*\.(cab|exe|psf) 43200  999999%  129600 ignore-no-cache ignore-no-store ignore-reload  reload-into-ims store-stale
refresh_pattern download.microsoft.com/.*\.(cab|exe|psf) 43200  999999%  129600 ignore-no-cache ignore-no-store ignore-reload  reload-into-ims store-stale
refresh_pattern .adobe.com/.*\.msp 43200  999999%  129600 ignore-no-cache ignore-no-store ignore-reload  reload-into-ims store-stale

#general
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 131400 99999% 131400 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  100% 131400 override-expire reload-into-ims
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape)   131400  100% 131400  override-expire reload-into-ims ignore-reload
refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab)  131400  100% 131400 override-expire reload-into-ims ignore-no-cache ignore-must-revalidate
refresh_pattern \.(mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 131400  100% 131400  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% 161280 store-stale


mohon para suhu bantuannya.?
padahal cache sudah sala clear kan...

Re: ask ?? proxy squid ( gambar pemain poker kembar semua )

@adam smile

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

punteun, baru lihat sekilas - itu hampir semua timer refresh_pattern kok minimum-nya besar sekali?

bila dibaca2 dari squid.conf - insyaAlloh sdh cukup jelas ya :

#  TAG: refresh_pattern
#    usage: refresh_pattern [-i] regex min percent max [options]
#
#    By default, regular expressions are CASE-SENSITIVE.  To make
#    them case-insensitive, use the -i option.
#
#    'Min' is the time (in minutes) an object without an explicit
#    expiry time should be considered fresh. The recommended
#    value is 0, any higher values may cause dynamic applications
#    to be erroneously cached unless the application designer
#    has taken the appropriate actions.

#
#    'Percent' is a percentage of the objects age (time since last
#    modification age) an object without explicit expiry time
#    will be considered fresh.
#
#    'Max' is an upper limit on how long objects without an explicit
#    expiry time will be considered fresh.

...
...

#    Basically a cached object is:
#
#        FRESH if expires < now, else STALE
#        STALE if age > max
#        FRESH if lm-factor < percent, else STALE
#        FRESH if age < min
#        else STALE
...
...

refresh_pattern dalam satuan menit smile
jadi bila 131400/60 = 2190 jam?

ane kan pake mikrotik + proxy squid..
nah yang jadi masalah kenapa kok gambar pemain poker pada kembar semua ya..? padahal dulu gak begini... ini saya share script squidnya..

punteun, bagian yang ini kebetulan gak bisa bantu smile

insyaAlloh, HTH.

Re: ask ?? proxy squid ( gambar pemain poker kembar semua )

@ agan abdi = jadi seharusnya timer refresh_pattern minimumnya yg standar brp gan..?