1 | acl all src 0.0.0.0/0.0.0.0 |
---|
2 | acl manager proto cache_object |
---|
3 | acl localhost src 127.0.0.1/255.255.255.255 |
---|
4 | acl to_localhost dst 127.0.0.0/8 |
---|
5 | acl SSL_ports port 443 |
---|
6 | acl Safe_ports port 80 # http |
---|
7 | acl Safe_ports port 21 # ftp |
---|
8 | acl Safe_ports port 443 # https |
---|
9 | acl Safe_ports port 70 # gopher |
---|
10 | acl Safe_ports port 210 # wais |
---|
11 | acl Safe_ports port 1025-65535 # unregistered ports |
---|
12 | acl Safe_ports port 280 # http-mgmt |
---|
13 | acl Safe_ports port 488 # gss-http |
---|
14 | acl Safe_ports port 591 # filemaker |
---|
15 | acl Safe_ports port 777 # multiling http |
---|
16 | acl CONNECT method CONNECT |
---|
17 | |
---|
18 | http_access allow manager localhost |
---|
19 | http_access deny manager |
---|
20 | http_access deny !Safe_ports |
---|
21 | http_access deny CONNECT !SSL_ports |
---|
22 | http_access deny to_localhost |
---|
23 | |
---|
24 | acl local_net src 192.168.0.0/16 |
---|
25 | http_access allow local_net |
---|
26 | |
---|
27 | http_access allow localhost |
---|
28 | |
---|
29 | http_access deny all |
---|
30 | |
---|
31 | icp_access allow all |
---|
32 | |
---|
33 | http_port 3128 |
---|
34 | |
---|
35 | hierarchy_stoplist cgi-bin ? |
---|
36 | |
---|
37 | maximum_object_size_in_memory 32 KB |
---|
38 | |
---|
39 | memory_replacement_policy heap GDSF |
---|
40 | |
---|
41 | cache_replacement_policy heap LFUDA |
---|
42 | |
---|
43 | cache_dir ufs /opt/local/var/squid/cache 700 16 256 |
---|
44 | |
---|
45 | maximum_object_size 128 MB |
---|
46 | |
---|
47 | access_log /opt/local/var/squid/logs/access.log squid |
---|
48 | |
---|
49 | cache_store_log none |
---|
50 | |
---|
51 | logfile_rotate 3 |
---|
52 | |
---|
53 | acl QUERY urlpath_regex cgi-bin \? |
---|
54 | cache deny QUERY |
---|
55 | |
---|
56 | refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod |
---|
57 | refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod |
---|
58 | |
---|
59 | quick_abort_min 0 KB |
---|
60 | quick_abort_max 0 KB |
---|
61 | quick_abort_pct 100 |
---|
62 | |
---|
63 | negative_ttl 2 minutes |
---|
64 | |
---|
65 | acl apache rep_header Server ^Apache |
---|
66 | broken_vary_encoding allow apache |
---|
67 | |
---|
68 | shutdown_lifetime 10 seconds |
---|
69 | |
---|
70 | visible_hostname skot |
---|
71 | |
---|
72 | icp_port 0 |
---|
73 | |
---|
74 | forwarded_for off |
---|
75 | |
---|
76 | coredump_dir /opt/local/var/squid/cache |
---|
77 | |
---|
78 | pipeline_prefetch on |
---|
79 | |
---|