如何解决Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”如何只允许某些 http 和 https 网站
我收到错误 FATAL: Invalid ACL type 'ssl::server_name' 当将 squid 4.13 配置为仅访问某些 http 和 https 网站的白名单时。
我的 squid.config 内容:
# CUSTOM RULES
#Handling HTTP requests
# Squid normally listens to port 3128
http_port 5400 intercept
acl allowed_http_sites dstdomain .amazonaws.com
#acl allowed_http_sites dstdomain domain_name [uncomment this line to add another domain]
http_access allow allowed_http_sites
#Handling HTTPS requests
https_port 3130 cert=/etc/squid/ssl/squid.pem ssl-bump intercept
#acl SSL_port port 443
http_access allow SSL_ports
acl allowed_https_sites ssl::server_name .amazonaws.com
acl allowed_https_sites ssl::server_name .gitlab.com
acl allowed_https_sites ssl::server_name pypi.org
acl allowed_https_sites ssl::server_name repo.anaconda.org
acl allowed_https_sites ssl::server_name conda.anaconda.org
#acl allowed_https_sites ssl::server_name [uncomment this line to add another website]
acl step1 at_step SslBump1
acl step2 at_step SslBump2
acl step3 at_step SslBump3
ssl_bump peek step1 all
ssl_bump peek step2 allowed_https_sites
ssl_bump splice step3 allowed_https_sites
ssl_bump terminate step2 all
错误信息:
: 2021/04/29 16:15:24| FATAL: Invalid ACL type 'ssl::server_name'
: 2021/04/29 16:15:24| FATAL: Bungled /etc/squid/squid.conf line 56: acl allowed_https_sites ssl::se...naws.com
: 2021/04/29 16:15:24| Squid Cache (Version 4.13): Terminated abnormally.
: CPU Usage: 0.006 seconds = 0.002 user + 0.004 sys
: Maximum Resident Size: 17808 KB
: Page faults with physical i/o: 0
: squid.service: control process exited,code=exited status=1
: Failed to start Squid caching proxy.
: Unit squid.service entered failed state.
: squid.service failed.
希望你能帮忙找出缺失的部分。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。