Bismillahirrohmanirrohiim…
Gara-gara jalur telpon mati, mo nulis file squid.conf jadi sedikit mundur. Berikut contoh file squid.conf

#==========================================================
#konfigurasi squid.conf
#==========================================================

http_port 3128
icp_port 3130

acl query urlpath_regex cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ \.js \.jsp
acl nocache-domain dstdomain javatechno.net uns.ac.id siakad.uns.ac.id
always_direct allow query
always_direct allow nocache-domain
no_cache deny query
no_cache deny nocache-domain

cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 128 MB
maximum_object_size_in_memory 32 KB

#file mp3, exe, zip, dat, avi, 3gp tidak disimpan di cache hardisk
acl mp3 urlpath_regex -i \.mp3$
acl exe urlpath_regex -i \.exe$
acl zip urlpath_regex -i \.zip$
acl dat urlpath_regex -i \.dat$
acl avi urlpath_regex -i \.avi$
acl 3gp urlpath_regex -i \.3gp$
no_cache deny mp3
no_cache deny exe
no_cache deny zip
no_cache deny dat
no_cache deny avi
no_cache deny 3gp

#cache_dir aufs /cache0/aufs 6000 16 128
#cache_dir aufs /cache1/aufs 6000 16 128
#cache_dir diskd /cache0/diskd 8000 16 256 Q1=72 Q2=64
#cache_dir diskd /cache1/diskd 8000 16 256 Q1=72 Q2=64
#cache_dir coss /cache0/coss 2000 block-size=512 max-size=131072
#cache_dir coss /cache1/coss 2000 block-size=512 max-size=131072
cache_dir ufs /cache0/ufs 900 16 256
cache_dir ufs /cache1/ufs 900 16 256
cache_access_log /usr/local/etc/squid/var/logs/access.log
cache_log /usr/local/etc/squid/var/logs/cache.log
cache_swap_log /usr/local/etc/squid/var/logs/%s
cache_store_log none

#ACL Network
#acl all src 0.0.0.0/0.0.0.0
acl client src 192.168.1.0/24
acl private src 192.168.1.250
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl manager proto cache_object

#Port yang diijinkan untuk di request
acl SSL_ports port 443 563
acl SSL_ports port 2083 2096
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl FTP proto FTP

http_access allow localhost
http_access allow private
http_access allow client
http_access deny all
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
icp_access allow localhost
icp_access allow private
icp_access allow client
icp_access deny all
miss_access allow all
always_direct allow client
always_direct allow FTP

acl cachemgr proto cache_object
http_access allow cachemgr client
http_access allow cachemgr private
http_access allow cachemgr localhost
http_access deny cachemgr all
cachemgr_passwd admin info stats/objects
cachemgr_passwd admin all

cache_effective_user squid
cache_effective_group squid

visible_hostname http://cgate.cgatebsd.net
cache_mgr ADMINISTRATOR
forwarded_for off