1 auth_param basic program /usr/sbin/ncsa_auth /etc/squid/users.conf
2 auth_param basic children 5
3 auth_param basic realm Proxy
4 auth_param basic credentialsttl 2 hours
5 auth_param basic casesensitive off
7 acl all src 0.0.0.0/0.0.0.0
8 acl manager proto cache_object
9 acl localhost src 127.0.0.1/255.255.255.255
10 acl to_localhost dst 127.0.0.0/8
11 acl SSL_ports port 443
12 acl Safe_ports port 80 # http
13 acl Safe_ports port 21 # ftp
14 acl Safe_ports port 443 # https
15 acl Safe_ports port 70 # gopher
16 acl Safe_ports port 210 # wais
17 acl Safe_ports port 1025-65535 # unregistered ports
18 acl Safe_ports port 280 # http-mgmt
19 acl Safe_ports port 488 # gss-http
20 acl Safe_ports port 591 # filemaker
21 acl Safe_ports port 777 # multiling http
22 acl Safe_ports port 901 # SWAT
23 acl purge method PURGE
24 acl CONNECT method CONNECT
26 acl users proxy_auth REQUIRED
29 acl proxy_hosts src ${host.ip}/32
32 http_access allow manager localhost
33 http_access deny manager
34 http_access allow purge localhost
35 http_access deny purge
36 http_access deny !Safe_ports
37 http_access deny CONNECT !SSL_ports
38 http_access allow localhost
40 http_access allow proxy_hosts
42 http_access allow users
45 http_port ${ip}:${port}
47 hierarchy_stoplist cgi-bin ?
48 acl QUERY urlpath_regex cgi-bin \?
52 cache_replacement_policy heap LRU
53 cache_dir aufs /var/cache/squid 1024 24 256
55 access_log /var/log/squid/access.log squid
58 refresh_pattern ^ftp: 1440 20% 10080
59 refresh_pattern ^gopher: 1440 0% 1440
60 refresh_pattern . 0 20% 4320
62 acl apache rep_header Server ^Apache
63 broken_vary_encoding allow apache
67 error_directory /usr/share/squid/errors/Spanish
70 coredump_dir /var/cache/squid