rendered paste body# kprox3 squid.conf
# created 07/28/2008 -APH
#http_port 3128
http_port localhost:3128
http_port 80
# Default stuff from example squid.conf
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
## Put cache files in separate disk partition
# drwxrwx--- 3 root proxy 4096 2008-07-24 07:36 /cache
cache_dir ufs /cache 16384 16 256
# Customize log format for human-readable dates
logformat custom %tg %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
#access_log /var/log/squid/access.log squid
access_log /var/log/squid/access.log custom
# More default stuff
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
## Default ACL's
# All sources
acl all src 0.0.0.0/0.0.0.0
# Manager
acl manager proto cache_object
# Localhost
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
# SSL Ports
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
# Safe Ports
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
# Purge
acl purge method PURGE
# Connect method for SSL
acl CONNECT method CONNECT
# NTLM Authentication
auth_param ntlm program /usr/bin/sg winbindd_priv -c "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
auth_param ntlm children 5
# Basic Authentication (to Active Directory)
auth_param basic realm Web Proxy KPROX3
auth_param basic program /usr/bin/sg winbindd_priv -c "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic"
auth_param basic children 5
auth_param basic credentialsttl 2 hour
# Windows Domain Groups
external_acl_type nt_group ttl=0 children=5 %LOGIN /usr/lib/squid/wbinfo_group.pl -d
acl Unrestricted external nt_group Proxy_Unrestricted
acl Restricted external nt_group Proxy_Restricted
# Default HTTP Access lists
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
# Allow authenticated users with internet access
http_access allow Unrestricted
http_access allow Restricted
# Deny all else
http_access deny all
http_reply_access allow all
# More defaults
icp_access allow all
cache_effective_group proxy
coredump_dir /var/spool/squid