小编use*_*725的帖子

Squid 代理更改 HTTPS 标头

我正在尝试开发一个代理服务器,该服务器将通过在代理中的该会话上设置 cookie 来帮助客户端在没有密码的情况下自动登录到我的应用程序。这意味着如果用户使用代理访问该站点,那么他将使用在该流量上设置的 cookie 自动登录到该站点。

我已经在 centos 6.8 x64 上安装并配置了 SQUID。设置完所有内容并使用后

request_header_add Cookie name=value
Run Code Online (Sandbox Code Playgroud)

在 /etc/squid/squid.conf 中。

cookie 设置为所有 HTTP 流量,但我的应用程序使用 HTTPS。因此,我尝试设置 OpenSSl、ssl-bump 以及所有有关 SSL 的设置,包括 ip 表

这是我的 squid.conf 的样子:

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 …
Run Code Online (Sandbox Code Playgroud)

cookies ssl proxy squid http-proxy

5
推荐指数
0
解决办法
1923
查看次数

标签 统计

cookies ×1

http-proxy ×1

proxy ×1

squid ×1

ssl ×1