Squid.conf

#==================================$
#  Proxy Server Versi 3.1.0.14
#  compiled by ndh4y
#==================================$
#################################################

# Port
#################################################

http_port 3128
http_port 3129 tproxy
prefer_direct off
#################################################
# Cache & Object
#################################################
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
maximum_object_size 128 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 24 bytes
ipcache_size 6144
ipcache_low 98
ipcache_high 99
fqdncache_size 6144
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
#################################################
# cache_dir
#################################################
cache_dir aufs /cache 62668 73 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
log_fqdn off
log_icp_queries off
dns_nameservers 192.168.0.24
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95%
negative_ttl 5 minute
positive_dns_ttl 1 hours
negative_dns_ttl 5 minutes
range_offset_limit 0 KB
emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minutes
#################################################
# Rules: Safe Port
#################################################
#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 SSL_ports port 443 563 873              # https snews rsync
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                                # cups
acl Safe_ports port 10000                         # webmin
acl Safe_ports port 901                               # SWAT
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 873                               # rsync
acl Safe_ports port 110                               # POP3
acl Safe_ports port 25                                  # SMTP
acl Safe_ports port 2095 2096                # webmail from cpanel
acl Safe_ports port 2082 2083                 # cpanel
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
#################################################
refresh_pattern ^http://*.jobstreet.com.*/.*  720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.atmajaya.*/.* 720 100% 10080 override-expire ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.theinquirer.*/.* 720 100% 10080 override-expire ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
# pictures & images
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private ignore-no-store ignore-must-revalidate
#
refresh_pattern -i \.(xml|html|htm|js|txt|css|php)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
#sound, video multimedia
refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate
refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private ignore-no-store ignore-must-revalidate
# files
refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth ignore-no-store ignore-must-revalidate
#default option
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 95% 518400 override-expire override-lastmod reload-into-ims
#################################################
# HIERARCHY (BYPASS CGI)
#################################################
hierarchy_stoplist cgi-bin ? # .js .jsp
acl QUERY urlpath_regex cgi-bin \?  # .js .jsp
no_cache deny QUERY
#################################################
# SNMP
#################################################
#snmp_port 3401
#acl snmpsquid snmp_community public
#snmp_access allow snmpsquid localhost
#snmp_access deny all
#################################################
# ALLOWED ACCESS
#################################################
acl LAN src 192.168.0.0/24
http_access allow LAN
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow MT
icp_access allow LAN
icp_access allow Wifi
icp_access allow localhost
icp_access deny all
always_direct deny all
#################################################
# Cache CGI & Administrative
#################################################
cache_mgr dian@admin.net
cachemgr_passwd admin all
visible_hostname starnet.net
cache_effective_user squid
cache_effective_group squid
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 2
### Opsi Akselerator
memory_pools off
forwarded_for on
log_icp_queries off
icp_hit_stale off
minimum_direct_hops 4
minimum_direct_rtt 400
store_avg_object_size 13 KB
store_objects_per_bucket 20
client_db on
netdb_low 900
netdb_high 1000
netdb_ping_period 30 seconds
query_icmp off
pipeline_prefetch on
reload_into_ims on
vary_ignore_expire on
max_open_disk_fds 8192
nonhierarchical_direct on
prefer_direct off
ie_refresh on
#################################################
# SQUID ZPH
#################################################
tcp_outgoing_tos 0×30 all
zph_mode tos
zph_local 0×30
zph_parent 0
#################################################
#################################################

Comments

Popular posts from this blog

Meyembuhkan Broken Heart