diff options
Diffstat (limited to 'squid.conf')
-rw-r--r-- | squid.conf | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/squid.conf b/squid.conf new file mode 100644 index 0000000..35ffbe7 --- /dev/null +++ b/squid.conf @@ -0,0 +1,55 @@ +# WELCOME TO SQUID 3.5.23 +# ---------------------------- +# + +acl Safe_ports port 443 # https +acl Safe_ports port 80 # http +acl Safe_ports port 21 # ftp +acl Safe_ports port 443 # https +acl Safe_ports port 70 # gopher +acl Safe_ports port 210 # wais +acl Safe_ports port 1025-65535 # unregistered ports +acl Safe_ports port 280 # http-mgmt +acl Safe_ports port 488 # gss-http +acl Safe_ports port 591 # filemaker +acl Safe_ports port 777 # multiling http +acl CONNECT method CONNECT + +shutdown_lifetime 3 seconds + +# Deny requests to certain unsafe ports +http_access deny !Safe_ports + +# Only allow cachemgr access from localhost +#Enter your own subnet of course... +acl localnet src 172.16.0.0/12 # RFC 1918 local private network (LAN) +acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN) +http_access allow localnet +http_access allow localhost manager +http_access deny manager + +#http_access allow localnet +http_access allow localhost + +# And finally deny all other access to this proxy +http_access deny all + +# Squid normally listens to port 3128 +http_port 3128 ssl-bump cert=/etc/squid/ca.pem generate-host-certificates=on dynamic_cert_mem_cache_size=4MB + +sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/lib/ssl_db -M 4MB + +acl step1 at_step SslBump1 + +ssl_bump peek step1 +ssl_bump bump all + +# Leave coredumps in the first cache dir +coredump_dir /var/cache/squid + +# Add any of your own refresh_pattern entries above these. +# +refresh_pattern ^ftp: 1440 20% 10080 +refresh_pattern ^gopher: 1440 0% 1440 +refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 +refresh_pattern . 0 20% 4320 |