文章详情
接入指南 - 软件 - Squid
# 在Squid配置文件「squid.conf」中添加「cache_peer」配置
# 如下为最小Squid配置示例

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

acl localnet src 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
acl localnet src fc00::/7
acl localnet src fe80::/10

acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports

http_access allow localnet
http_access allow localhost

http_access deny all

http_port 3128

# 配置阿布云代理为父级代理,并指定授权用户名/密码
cache_peer tunnel.quqiquqi.com parent 8600 0 no-query proxy-only login=U123456789:P123456789

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 .                     0     20%      4320   
发布时间:2021-10-02

在线客服