]> git.llucax.com Git - software/pymin.git/blob - pymin/services/proxy/templates/squid.conf
fix string quotation
[software/pymin.git] / pymin / services / proxy / templates / squid.conf
1 auth_param basic program /usr/libexec/squid/ncsa_auth /usr/local/Squid/etc/passwd
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
6
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
25
26 % for host in hosts:
27 acl proxy_hosts src ${host.ip}/32
28 % endfor
29
30 http_access allow manager localhost
31 http_access deny manager
32 http_access allow purge localhost
33 http_access deny purge
34 http_access deny !Safe_ports
35 http_access deny CONNECT !SSL_ports
36 http_access allow localhost
37 http_access allow proxy_hosts
38 http_access deny all
39
40 http_port ${ip}:${port}
41
42 hierarchy_stoplist cgi-bin ?
43 acl QUERY urlpath_regex cgi-bin \?
44 cache deny QUERY
45
46 cache_mem 32 MB
47 cache_replacement_policy heap LRU
48 cache_dir aufs /var/cache/squid 1024 24 256
49
50 access_log /var/log/squid/access.log squid
51 cache_store_log none
52
53 refresh_pattern ^ftp:           1440    20%     10080
54 refresh_pattern ^gopher:        1440    0%      1440
55 refresh_pattern .               0       20%     4320
56
57 acl apache rep_header Server ^Apache
58 broken_vary_encoding allow apache
59
60 icp_port 0
61
62 error_directory /usr/share/squid/errors/Spanish
63
64 forwarded_for off
65 coredump_dir /var/cache/squid