Saturday, February 27, 2010

Minimal squid

http_port 3128

cache_mem 8 MB

maximum_object_size 64 MB
minimum_object_size 1 KB

#cache_replacement_policy heap LFUDA
#memory_replacement_policy heap GDSF

#cache_dir aufs /cache 6000 14 256

cache_access_log /var/log/squid/access.log

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 warnet src 192.168.1.0/255.255.255.0
acl PURGE method PURGE
acl SSL_ports port 443 563
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 CONNECT method CONNECT

http_access allow manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny PURGE
http_access allow localhost
http_access allow warnet
http_access deny all

cache_mgr cybercafe@telkom.net.id
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.cybercafe.id

0 komentar: