Untitled
By: a guest | Mar 22nd, 2010 | Syntax:
None | Size: 1.36 KB | Hits: 148 | Expires: Never
http_port 8080
# user dan group yang menjalankan squid
cache_effective_user squid
cache_effective_group squid
cache_mgr atm0@arc.itb.ac.id
# File Log dan PID squid
cache_access_log none
cache_log /tmp/squidlog
cache_store_log none
log_icp_queries off
# Authentication program
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic realm proxy of the valkyries
auth_param basic children 5
#1. Cache Peer
cache_peer 127.0.0.1 parent 8000 0 weight=100 no-query no-digest round-robin
#2. Object yang tidak dimasukkan dalam cache
acl QUERY urlpath_regex .
no_cache deny QUERY
#3. Access list
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.0/8
acl to_localhost dst 127.0.0.0/8
acl Safe_ports port 1-65535 # all ports
acl CONNECT method CONNECT
acl erase method PURGE
acl http_get method GET
acl password proxy_auth REQUIRED
# Minimal actions
http_access allow localhost
http_access allow manager localhost
http_access deny manager
http_access deny !safe_ports
http_access deny CONNECT !safe_ports
# Authenticated clients
http_access allow password
# Default policy
http_access deny all
# ICP policy
icp_access deny all
never_direct allow all !CONNECT
never_direct deny CONNECT