【问题标题】:Squid Connection Refused HTTPSSquid 连接拒绝 HTTPS
【发布时间】:2014-12-10 21:22:28
【问题描述】:

我已经设法让我的 HTTP“代理”连接正常工作,但在大多数 https 连接上我得到了错误:

连接失败。

系统返回:(111) Connection denied

这是我目前在 squid 中使用的配置文件:

http_port 3128

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320

acl localnet src 10.0.0.0/8     # RFC 1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC 1918 possible internal network
acl myhost src <myip>
http_access allow myhost
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_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT


via off
forwarded_for off

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
dns_nameservers 8.8.8.8 8.8.4.4

在 Ubuntu 12.04 VPS 上运行 - 通过浏览器代理设置页面远程连接...

我想要做的就是能够连接到我的服务器并浏览 http 和 https 站点。 Http 与上面的配置一起工作...... https 不......

【问题讨论】:

    标签: proxy squid


    【解决方案1】:

    删除以下行:

    http_access deny CONNECT !SSL_ports
    

    【讨论】:

      【解决方案2】:

      我建议保留

      http_access deny CONNECT !SSL_ports
      

      但允许通过添加列出的内容:

      http_access allow SSL_ports
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-04-03
        • 2021-01-16
        • 1970-01-01
        • 2015-09-09
        • 2013-08-17
        • 1970-01-01
        • 2014-11-17
        • 1970-01-01
        相关资源
        最近更新 更多