|
1 | | -#cache_peer 192.168.99.102 parent 3128 0 no-query default |
| 1 | +cache_peer 192.168.99.111 parent 3128 0 no-query no-digest |
| 2 | +never_direct allow all |
2 | 3 |
|
3 | | -http_port 3130 |
4 | | -http_port 3128 intercept |
5 | | -https_port 3129 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/ssl/certs/squid.pem key=/etc/ssl/private/squid.pem |
| 4 | +acl localnet src 10.0.0.0/8 # RFC1918 possible internal network |
| 5 | +acl localnet src 172.16.0.0/12 # RFC1918 possible internal network |
| 6 | +acl localnet src 192.168.0.0/16 # RFC1918 possible internal network |
| 7 | +acl localnet src fc00::/7 # RFC 4193 local private network range |
| 8 | +acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines |
| 9 | + |
| 10 | +acl SSL_ports port 443 |
| 11 | +acl Safe_ports port 80 # http |
| 12 | +acl Safe_ports port 21 # ftp |
| 13 | +acl Safe_ports port 443 # https |
| 14 | +acl Safe_ports port 70 # gopher |
| 15 | +acl Safe_ports port 210 # wais |
| 16 | +acl Safe_ports port 1025-65535 # unregistered ports |
| 17 | +acl Safe_ports port 280 # http-mgmt |
| 18 | +acl Safe_ports port 488 # gss-http |
| 19 | +acl Safe_ports port 591 # filemaker |
| 20 | +acl Safe_ports port 777 # multiling http |
| 21 | +acl CONNECT method CONNECT |
| 22 | + |
| 23 | +http_access deny !Safe_ports |
| 24 | + |
| 25 | +http_access deny CONNECT !SSL_ports |
| 26 | + |
| 27 | +http_access allow localhost manager |
| 28 | +http_access deny manager |
| 29 | + |
| 30 | +http_access allow localnet |
| 31 | +http_access allow localhost |
| 32 | + |
| 33 | +http_access allow all |
| 34 | + |
| 35 | +http_port 0.0.0.0:3127 |
| 36 | +http_port 0.0.0.0:3128 intercept |
| 37 | +https_port 0.0.0.0:3129 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB key=/etc/squid/t1.key cert=/etc/squid/t1.pem |
6 | 38 |
|
7 | 39 | always_direct allow all |
8 | 40 | ssl_bump server-first all |
9 | | -sslproxy_cert_error allow all |
| 41 | +sslproxy_cert_error deny all |
10 | 42 | sslproxy_flags DONT_VERIFY_PEER |
11 | | - |
12 | | -sslcrtd_program /usr/lib/squid3/ssl_crtd -s /var/spool/squid3_ssldb -M 4MB |
13 | | -sslcrtd_children 8 startup=1 idle=1 |
| 43 | +sslcrtd_program /usr/lib64/squid/ssl_crtd -s /var/lib/ssl_db -M 4MB sslcrtd_children 8 startup=1 idle=1 |
14 | 44 |
|
15 | 45 | maximum_object_size 1024 MB |
16 | | -coredump_dir /var/spool/squid3 |
17 | | -cache_dir ufs /var/cache/squid3 5000 16 256 |
18 | | -shutdown_lifetime 1 second |
19 | | - |
20 | | -acl all src all |
21 | 46 |
|
22 | | -acl SSL_ports port 443 |
23 | | -acl Safe_ports port 80 # http |
24 | | -acl Safe_ports port 21 # ftp |
25 | | -acl Safe_ports port 443 # https |
26 | | -acl Safe_ports port 70 # gopher |
27 | | -acl Safe_ports port 210 # wais |
28 | | -acl Safe_ports port 1025-65535 # unregistered ports |
29 | | -acl Safe_ports port 280 # http-mgmt |
30 | | -acl Safe_ports port 488 # gss-http |
31 | | -acl Safe_ports port 591 # filemaker |
32 | | -acl Safe_ports port 777 # multiling http |
33 | | -acl CONNECT method CONNECT |
| 47 | +coredump_dir /var/spool/squid |
34 | 48 |
|
35 | | -#http_access deny !Safe_ports |
36 | | -#http_access deny CONNECT !SSL_ports |
37 | | - |
38 | | -http_access allow all |
| 49 | +refresh_pattern ^ftp: 1440 20% 10080 |
| 50 | +refresh_pattern ^gopher: 1440 0% 1440 |
| 51 | +refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 |
| 52 | +refresh_pattern . 0 20% 4320 |
0 commit comments