#file /etc/squid/squid.conf
#squid 版本 3.5.27
#操作系统ubuntu 18.4
#最后更新 20201221
#cloud aws ec2
#aws ec2 安全组所有流量开放入站和出站
http_access 允许所有
http_port 3128
acl SSL_ports 端口 443
acl Safe_ports 端口 80 # http
acl Safe_ports 端口 21 # ftp
acl Safe_ports 端口 443 # https
acl Safe_ports 端口 70 # gopher
acl Safe_ports 端口 210 # wais
acl Safe_ports port 1025-65535 #未注册的端口
acl Safe_ports 端口 280 # http-mgmt
acl Safe_ports 端口 488 # gss-http
acl Safe_ports 端口 591 # 文件生成器
acl Safe_ports port 777 #multiling http
acl CONNECT 方法 CONNECT
http_access 允许本地主机管理器
http_access 允许本地主机
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|?) 0 0% 0
refresh_pattern(发布|包(.gz)*)$ 0 20% 2880
刷新模式。0 20% 4320