# Selamat Datang di Squid nda karuan
# Ini squid buat windows
# Jangan berharap yang hebat2 dari konfigurasi ini
# Kalo sudah running ya syukur
# Kalo nda bisa running ya silakan googling lagi
# Konfigurasi ini dibangun seminimal mungkin karena cuman buat satu laptop dan satu pc istri di rumah
# Kasian kalo dijadikan server
# Mendingan pake linux sekalian biar bisa gress dan full fitur

acl all src all
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 192.168.0.0/16	# 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 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT

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 all

icp_access allow localnet
icp_access deny all

# Ganti nama_pc menjadi nama atau ip pc yang diinstal squid
http_port nama_pc:3128

hierarchy_stoplist cgi-bin ?
# cache_mem 8 MB
cache_dir ufs d:/cache 100 16 256
access_log c:/squid/var/logs/access.log squid

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 -i \.google\.co\.id$ 1440 100% 3500 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.co\.id$ 1440 100% 3500 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mail\.yahoo$ 1440 100% 3500 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \? 2 20% 4320 reload-into-ims
refresh_pattern -i cgi-bin 2 20% 4320 reload-into-ims
refresh_pattern . 960 90% 43200 reload-into-ims

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
icp_port 0
htcp_port 0

# Kebetulan pake Speedy jadi dns nya ya kurang lebih seperti ini
# Sisanya silakan cocokkan dengan ISP Anda masing-masing
dns_nameservers 203.130.209.242 202.134.0.155

coredump_dir d:/cache

# Dah ampihaannn
# Iriyan Gunawan Amd.Kep at irgunawan_spk@yahoo.co.id
# http://irvanet.web.id/yan
# Jangan berharap yang hebat2 dari konfigurasi ini
# Kalo sudah running ya syukur
# Kalo nda bisa running ya silakan googling lagi
# Konfigurasi ini dibangun seminimal mungkin karena cuman buat satu laptop dan satu pc istri di rumah
# Kasian kalo dijadikan server
# Mendingan pake linux sekalian biar bisa gress dan full fitur