]> git.llucax.com Git - software/pymin.git/blob - pymin/services/proxy/templates/squid.conf
Merge branch 'master' of git.llucax.com.ar:/var/lib/git/software/pymin
[software/pymin.git] / pymin / services / proxy / templates / squid.conf
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
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 acl users proxy_auth REQUIRED
27
28 % for host in hosts:
29 acl proxy_hosts src ${host.ip}/32
30 % endfor
31
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
39 % if hosts:
40 http_access allow proxy_hosts
41 % endif
42 http_access allow users
43 http_access deny all
44
45 http_port ${ip}:${port}
46
47 hierarchy_stoplist cgi-bin ?
48 acl QUERY urlpath_regex cgi-bin \?
49 cache deny QUERY
50
51 cache_mem 32 MB
52 cache_replacement_policy heap LRU
53 cache_dir aufs /var/cache/squid 1024 24 256
54
55 access_log /var/log/squid/access.log squid
56 cache_store_log none
57
58 refresh_pattern ^ftp:           1440    20%     10080
59 refresh_pattern ^gopher:        1440    0%      1440
60 refresh_pattern .               0       20%     4320
61
62 acl apache rep_header Server ^Apache
63 broken_vary_encoding allow apache
64
65 icp_port 0
66
67 error_directory /usr/share/squid/errors/Spanish
68
69 forwarded_for off
70 coredump_dir /var/cache/squid