http_port 8080
icp_port 3130
acl QUERY urlpath_regex cgi-bin \?
no_cache allow QUERY
cache_mem 128 MB
cache_swap_low 80
cache_swap_high 100
maximum_object_size 1024 KB
ipcache_size 2048
ipcache_low 70
ipcache_high 75
fqdncache_size 1024
# --- for transparent proxy purposes
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
# --- cachedir jadi 8000MB (8 gigs)
cache_dir ufs /cache 13000 64 256
redirect_rewrites_host_header off
#icon_directory /usr/lib/squid/icons
cache_replacement_policy GDSF
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
#cache_log /var/log/cache.log
#cache_access_log /var/log/access.log
cache_store_log none
emulate_httpd_log off
#mime_table /etc/squid/mime.conf
log_mime_hdrs off
pid_filename /var/run/squid.pid
debug_options ALL,1
log_fqdn off
ftp_user anonymous@somewhere
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(class|css|js|gif|jpg)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(jpe|jpeg|png|bmp|tif)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(tiff|mov|avi|qt|mpeg)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(mpg|mpe|wav|au|mid)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(asp|acgi|pl|shtml|php3|php)$ 2 20% 4320 reload-into-ims
refresh_pattern . 0 20% 4320
#reference_age 1.5 days
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 5 minutes
range_offset_limit 0 KB
connect_timeout 120 seconds
#siteselect_timeout 4 seconds
read_timeout 15 minutes
request_timeout 6666660 seconds
client_lifetime 1 day
half_closed_clients off
pconn_timeout 120 seconds
shutdown_lifetime 60 seconds
#cache_peer xxx.xxx.xxx.xxx parent 3128 3130 no-query
prefer_direct off
#acl tolak urlpath_regex -i
acl tolak urlpath_regex -i \.mpg$ \.iso$ \.gz$ \.wmv$ \.gsz$ \.mpe$ \.yim$ \.avi$ \.mpeg$
acl all src 0.0.0.0/0.0.0.0
acl user src 192.168.0.0/255.255.255.0
acl mailyhoo url_regex mail.yahoo.com
no_cache deny mailyhoo
acl gropyhoo url_regex groups.yahoo.com
no_cache deny gropyhoo
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443
acl Safe_ports port 23 210 70 80 563 443 445 800 8383 8900-65535
acl CONNECT method CONNECT
#acl pert src 202.155.114.0/24
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow SSL_ports
http_access allow localhost
http_access allow user
http_access deny tolak
#http_access allow pert
cache_mgr
moel@indosatm2.comcache_effective_user squid
cache_effective_group squid
http_access deny all
icp_access allow all
miss_access allow all
# Delay Pools (Bandwidth Throttling)
##### DELAY POOLS ######
acl download url_regex -i ftp \.exe$ \.mp3$ \.vqf$ \.tar.gz$ \.wmv$ \.tar.bz$ \.tar.bz2$ \.gz$ \.rpm$ \.zip$
acl download url_regex -i \.rar$ \.avi$ \.mpeg$ \.mpe$ \.mpg$ \.qt$ \.ram$ \.rm$ \.iso$ \.raw$ \.wav$ \.tar$ \.doc$
acl download url_regex -i \.ppt$ \.z$ \.wmf$ \.mov$ \.arj$ \.lzh$ \.gzip$ \.bin$ \.wma$
##### MASTER #####
delay_pools 2
delay_class 1 2
delay_parameters 1 8000/8000 6000/8000
delay_access 1 allow download
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 25000/25000 10000/16000 #200kb/200kb 80Kb/128Kb
delay_access 2 allow user
delay_access 2 deny all
#We don't want to limit downloads on our local network
acl iclient url_regex -i 192.100