rendered paste body# NETWORK OPTIONS
# -----------------------------------------------------------------------------
http_port 3128
icp_port 0
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------
# cache_peer_domain cache-host domain [domain ...]
# cache_peer_domain cache-host !domain
# cache_peer_domain parent.foo.net .edu
hierarchy_stoplist cgi-bin ? .js .jsp .g .do .php .asp .cgi localhost malangmedianet.com
acl QUERY urlpath_regex cgi-bin \? .js .jsp .g .do .php .asp .cgi localhost malangmedianet.com
no_cache deny QUERY
#no_cache deny all
# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------------------------------------------------
cache_mem 6 MB
cache_swap_low 98
cache_swap_high 99
maximum_object_size 128 MB
maximum_object_size_in_memory 32 KB
ipcache_size 2048
ipcache_low 98
ipcache_high 99
# lru : Squid's original list based LRU policy
# heap GDSF : Greedy-Dual Size Frequency
# heap LFUDA: Least Frequently Used with Dynamic Aging
# heap LRU : LRU policy implemented using a heap
#cache_replacement_policy heap GDSF
#cache_replacement_policy heap GDSF
#memory_replacement_policy lru
memory_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -----------------------------------------------------------------------------
cache_dir diskd /swap/cache/1 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/2 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/3 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/4 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/5 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/6 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/7 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/8 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/9 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/10 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/11 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/12 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/13 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/14 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/15 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/16 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/17 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/18 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/19 12000 64 256 Q1=72 Q2=88
cache_dir diskd /swap/cache/20 12000 64 256 Q1=72 Q2=88
cache_access_log /squid/var/logs/access.log
#cache_access_log none
cache_log /squid/var/logs/cache.log
#cache_log none
log_fqdn off
log_icp_queries off
cache_log none
cache_store_log none
pid_filename /squid/var/logs/squid.pid
# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -----------------------------------------------------------------------------
ftp_user Squid@proxy-nya.sh.net
dns_nameservers 202.155.0.10
dns_nameservers 202.155.0.15
dns_nameservers 202.155.0.20
# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
request_header_max_size 32 MB
refresh_pattern ^ftp: 10080 95% 241920
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
quick_abort_min 1 KB
quick_abort_max 1 KB
quick_abort_pct 15
positive_dns_ttl 1 hours
negative_dns_ttl 1 minute
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
shutdown_lifetime 10 seconds
memory_pools off
icp_hit_stale on
query_icmp on
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on
# TIMEOUTS
# -----------------------------------------------------------------------------
#connect_timeout 5 minute
#read_timeout 30 minutes
#request_timeout 1 minutes
#persistent_request_timeout 15 minute
#client_lifetime 1 day
#half_closed_clients off
#pconn_timeout 300 seconds
#shutdown_lifetime 30 seconds
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
acl localnet src 192.168.0.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl lantai_1 src 192.168.0.1-192.168.0.50/255.255.255.255
acl lantai_2 src 192.168.0.51-192.168.0.100/255.255.255.255
http_access allow lantai_1
http_access allow lantai_2
http_access deny all
http_access deny !localnet
icp_access allow localnet
icp_access deny all
# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
cache_mgr arman@sh.net
cache_effective_user squid
cache_effective_group squid
visible_hostname proxy-nya.sh.net
# HTTPD-ACCELERATOR OPTIONS
# -----------------------------------------------------------------------------
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
# MISCELLANEOUS
# -----------------------------------------------------------------------------
logfile_rotate 10
memory_pools on
memory_pools_limit 64 MB
forwarded_for on
store_avg_object_size 13 KB
store_objects_per_bucket 50
client_db off
acl FTP proto FTP
always_direct allow FTP
error_directory /squid/share/errors/English/
coredump_dir /squid/var/logs