acl SSL_ports port443acl Safe_ports port808080# http acl Safe_ports port21# ftp acl Safe_ports port443# https acl Safe_ports port70# gopher acl Safe_ports port210# wais acl Safe_ports port1025-65535# unregistered ports acl Safe_ports port280# http-mgmt acl Safe_ports port488# gss-htt...
acl SSL_ports port 443 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_por...
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 http-cla.abuyun.com parent 9030 0 no-query proxy-only login=H01234567890123C:0123456789012345 ...
14 acl SSL_ports port 443 15 acl Safe_ports port 80 # http 16 acl Safe_ports port 21 # ftp 17 acl Safe_ports port 443 # https 18 acl Safe_ports port 70 # gopher 19 acl Safe_ports port 210 # wais 20 acl Safe_ports port 1025-65535 # unregistered ports 21 acl Safe_ports port ...
默认情况下,配置包含http_access deny !Safe_ports规则,该规则定义禁止对定义在Safe_portsACL 中端口的访问。 在cache_dir参数中配置缓存类型、缓存目录的路径、缓存大小以及特定于其它缓存类型的设置: cache_dir ufs /var/spool/squid 10000 16 ...
acl Safe_ports port 21 # ftpacl Safe_ports port 443 # httpsacl Safe_ports port 8080 acl Safe_ports port 9525 9510 5222 acl Safe_ports port 8888 acl CONNECT method CONNECTacl OverConnLimit maxconn 30http_access deny OverConnLimitacl manager proto cache_objectacl localhost src 127.0.0.1/...
33 http_access deny !Safe_ports #禁止不在Safe_ports列表中的端口号的请求 ... systemctl restart squid #重启squid服务 把客户机IP地址改成192.168.10.20以外的值,发现无法上网。 ex2:禁止所有客户端访问网址中包含sincerity关键词的网站。 vim /etc/squid/squid.conf ...
acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT # 拒绝所有非Safe_ports的请求 http_access deny !Safe_ports # 拒绝所有非SSL_prots的CONNECT请求 ...
acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl all src 0.0.0.0/0 acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports ...
cache_swap_high95#最多允许使用swap 95%cache_swap_low90#最小允许使用swap 90%acl SSL_ports port443#定义端口acl Safe_ports port80#定义端口acl Safe_ports port443#定义端口acl CONNECT method CONNECT#请求方法以CONNECT,能动态切换到隧道的代理acl allow_80 url_regex ^http://.*#定义url的匹配规则acl...