程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 http 和 https 网站大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 httphttps 网站?

开发过程中遇到Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 httphttps 网站的问题如何解决?下面主要结合日常开发的经验,给出你关于Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 httphttps 网站的解决方法建议,希望对你解决Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 httphttps 网站有所启发或帮助;

我收到错误 FATAL: InvalID ACL type 'ssl::server_name' 当将 squID 4.13 配置为仅访问某些 httphttps 网站的白名单时。

我的 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 (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 http 和 https 网站全部内容,希望文章能够帮你解决Squid 版本 4.13 致命:无效的 ACL 类型“ssl::server_name”。如何只允许某些 http 和 https 网站所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。