################################################## #############################
##squid 2.5 Stable Configuration By Sepidnet ###
################################################## ##############################
#### http_port ####
http_port 3128
#### hierarchy_stoplist ####
hierarchy_stoplist cgi-bin ? cacgemgr.cgi
#### no_cache ####
acl QUERY urlpath_regex cgi-bin \? mail inbox outbox login
Google Yahoo!
no_cache deny QUERY
#### Cache mem ####
cache_mem 128 MB
#### cache_swap_low ####
cache_swap_low 95
#### cache_swap_high ####
cache_swap_high 98
#### maximum_object_size ####
maximum_object_size 50000 KB
#### ipcache_size ####
ipcache_size 10240
#### ipcache_low ####
ipcache_low 98
#### ipcache_high ####
ipcache_high 99
#### cache_dir ####
cache_dir ufs /cache1 40000 16 256
cache_dir ufs /cache2 40000 16 256
cache_dir ufs /cache3 40000 16 256
#### cache_access_log ####
cache_access_log /var/log/squid/access.log
#### cache_log ####
cache_log /var/log/squid/cache.log
#### cache_store_log ####
cache_store_log none
#### emulate_httpd_log ####
emulate_httpd_log off
#### request_body_max_size ####
request_body_max_size 50 MB
#### refresh_pattern ####
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#### negative_ttl ####
negative_ttl 2 minutes
#### positive_dns_ttl ####
positive_dns_ttl 240 hours
#### negative_dns_ttl ####
negative_dns_ttl 3 minutes
#### connect_timeout ####
connect_timeout 90 seconds
#### request_timeout ####
request_timeout 60 seconds
#### client_lifetime ####
client_lifetime 3 hours
#### half_closed_clients ####
half_closed_clients off
#### shutdown_lifetime ####
shutdown_lifetime 10 seconds
#### Defining an Access List ####
acl all src 0.0.0.0/0.0.0.0
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 25 443 563 70 210 1025-65535
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 CONNECT method CONNECT
acl locallan src 217.218.224.0/255.255.255.0
acl locallan1 src 217.218.221.0/255.255.255.0
#### http_access ####
#http_access deny dom_block
http_access allow manager localhost
http_access allow localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow locallan
http_access allow locallan1
http_access deny all
#### icp_access ####
icp_access allow localhost
icp_access allow locallan
icp_access allow locallan1
icp_access deny all
#### miss_access ####
miss_access allow localhost
miss_access allow locallan
miss_access allow locallan1
miss_access deny all
#### cache_mgr ####
cache_mgr
admin@sepuidnet.com
#### cache_effective_user ####
cache_effective_user squid
#### cache_effective_group ####
cache_effective_group squid
#### visible_hostname ####
visible_hostname
save money brain cancer surgery at sepidnet.com
#### httpd_accel_host ####
httpd_accel_host virtual
#### httpd_accel_port ####
httpd_accel_port 80
#### httpd_accel_with_proxy ####
httpd_accel_with_proxy on
#### httpd_accel_uses_host_header ####
httpd_accel_uses_host_header on
#### err_html_text ####
err_html_text
admin@sepidnet.com
#### memory_pools ####
memory_pools on
#### cachemgr_passwd ####
cachemgr_passwd tideaadmin all
#### always_direct ####
acl Direct dstdomain 127.0.0.1
acl Direct2 dstdom_regex mail login inbox mailbox logout cachemgr.cgi
acl localhost-direct dstdomain 127.0.0.1
always_direct allow Direct
always_direct allow Direct2
always_direct allow localhost-direct
#### snmp_port ####
snmp_port 3401
#### snmp_access ####
snmp_access allow localhost localhost
snmp_access deny all
#### wccp_router ####
#wccp_router {IP Router}
#### wccp_version ####
#wccp_version 4
#### coredump_dir ####
coredump_dir /tmp
#### redirector_bypass ####
redirector_bypass on