Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-24-2013, 10:56 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Server › Proxy Server v
« Previous 1 2 3 4

[Ask] mohon pencerahannya

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
Ask mohon pencerahannya
11-30-2010, 02:18 PM
Post: #1
drisdian Offline
./Devilz 1st Cadet
Posts: 1
Joined: Nov 2010
Reputation: 0
mohon pencerahannya
dear agan2 sekalian
mohon pencerahannya tentang squid conf punya saya
sekarang2 ini penyakitnya tiap 1 jam sekali seperti ada stuck selama beberapa menit seperti hung ga bisa browsing abis itu lancar kembali

Code:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
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 222.124.36.77/32       # RFC1918 possible internal network
acl SSL_ports port 443
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 587         # smtp TLS
acl Safe_ports port 993         # imap SSL
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
acl PURGE method purge
acl bit_torrent req_mime_type application/x-bittorent
acl bit_torrent req_mime_type ^application/x-bittorent$

http_access deny bit_torrent all
  http_access allow purge localhost
  http_access deny purge
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny !localnet

http_port 3128 transparent
#hierarchy_stoplist cgi-bin ? .js .jsp
#acl QUERY urlpath_regex cgi-bin \? .js .jsp
#no_cache deny QUERY
cache_mem 16 MB
maximum_object_size 128 MB
cache_replacement_policy heap GDSF
memory_replacement_policy heap LFUDA
cache_dir aufs /cache/squid  246384 128 256
cache_dir aufs /cache/squid1 246384 128 256
cache_dir aufs /cache/squid2 246384 128 256
cache_dir aufs /cache/squid3 246384 128 256
#logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %hs %<st %Ss:%Sh
#logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh
access_log /var/log/squid/access.log common
cache_log /var/log/squid/cache.log
cache_store_log none
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440

#refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache  ignore-private
refresh_pattern -i \.(class|css|js|gif|jpg)$ 43200 100% 43200  ignore-no-cache ignore-private override-expire reload-into-ims
refresh_pattern -i \.(jpe|jpeg|png|bmp|tif)$ 43200 100% 43200  ignore-no-cache ignore-private override-expire reload-into-ims
refresh_pattern -i \.(tiff|mov|avi|qt|mpeg)$ 43200 90% 432000  ignore-no-cache ignore-private
refresh_pattern -i \.(mpg|mpe|wav|au|mid)$ 43200 90% 432000  ignore-no-cache ignore-private
refresh_pattern -i \.(mp?|dat|asf|rm|3gp)$ 43200 90% 432000  ignore-no-cache ignore-private
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 100000 500% 99000000 ignore-reload reload-into-ims
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 100000 500% 99000000 ignore-reload reload-into-ims
refresh_pattern -i \.(r??|z|rpm|7z|ace)$ 100000 500% 99000000 ignore-reload reload-into-ims
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 100000 500% 99000000 reload-into-ims
refresh_pattern -i \.(xls|ppt|fla|psd|vs?)$ 100000 500% 99000000 ignore-reload reload-into-ims
refresh_pattern -i \.(wmf|cdr|ai|snd|cda)$ 100000 500% 99000000 ignore-reload reload-into-ims
refresh_pattern -i \.(ac3|dts|vob|ifo|mka)$ 100000 500% 99000000 ignore-reload reload-into-ims
refresh_pattern -i \.(mkv|m?a|mpv?|mp?v|aac|flv|x-flv)$ 43200 90% 432000  ignore-no-cache  ignore-private
#refresh_pattern -i \.(mkv|m?a|mpv?|mp?v|aac|flv|x-flv)$ 43200 90% 432000
refresh_pattern -i \.(ogm|ogg|divx|amr|3gp2)$ 43200 90% 432000  ignore-no-cache ignore-private
refresh_pattern -i \.(3gpp|3g2|ra|ram|smk)$ 43200 90% 432000  ignore-no-cache ignore-private
refresh_pattern -i \.(bik|wma|wmv|wmp|wm)$ 43200 90% 432000  ignore-no-cache ignore-private
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 100000 500% 99000000 ignore-reload reload-into-ims
#refresh_pattern -i \.(php|asp|aspx|cgi|html|htm|css|js) 0 40% 40320
refresh_pattern ^.*(utm.gif|ads?|advertising.com|ad.yieldmanager.com|doubleclick.net|adserving.cpxinteractive.com) 5259487 999999% 5259487 ignore-no-cache ig$
refresh_pattern ^.*safebrowsing.clients.clients.com/safebrowsing 5259487 999999% 5259487   ignore-reload ignore-no-cache ignore-private ignore-auth
#refresh_pattern facebook.com.*.(png|gif)        5259487 999999% 5259487     ignore-reload override-lastmod
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://facebook.poker.zynga.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://statics.poker.static.zynga.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://static-facebook.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://static.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://zbar.static.zynga.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth

#refresh_pattern -i (/cgi-bin/|\?) 0    0%      0
refresh_pattern .               0       60%     40320 override-lastmod ignore-reload

#incoming_rate 512
quick_abort_min 1 KB
quick_abort_max 1 KB
quick_abort_pct 98
#request_body_max_size 2 MB
half_closed_clients off
cache_effective_user squid
cache_effective_group squid
buffered_logs on
collapsed_forwarding on
emulate_httpd_log on
forwarded_for off
relaxed_header_parser warn
header_access Accept-Encoding deny localnet
client_db on
acl download url_regex -i ftp   \.exe$ \.mp3$ \.mkv$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rmvb$ \.mkv$ \.rar$
acl download url_regex -i \.exe$  \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$  \.mkv$ \.rar$
acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$  \.dat$ \.mpe$ \.mid$
acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$
acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$
acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$
acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$ \.rmvb$
acl day time 18:00-22:59
#acl day time 01:00-23:59
delay_pools 1
delay_class 1 2
delay_parameters 1 64000/64000 32000/32000
#delay_parameters 1 512000/512000 16000/16000
#delay_parameters 1 512000/512000 16000/16000 500/500
delay_access 1 allow day download
delay_access 1 deny all
detect_broken_pconn on
memory_pools off
reload_into_ims on
coredump_dir /var/cache
pipeline_prefetch on

visible_hostname localhost
# max_filedescriptors  32768

salam, thx b4
Find all posts by this user
Quote this message in a reply
12-01-2010, 07:26 AM
Post: #2
Binaryx86 Offline
./Devilz Officer
*****
Dewa
Posts: 238
Joined: Jul 2010
Reputation: 0
RE: mohon pencerahannya
acl nya biasa aja kayaknya...

dari servernya ada masalah ga bro? misalnya crasch sistemnya.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-24-2013, 10:56 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE