我有一个在我的服务器上使用 privoxy 运行的小代理,基本上是为了利用我服务器的静态 IP 连接到我办公室的 VPN。
我在一个没有身份验证的不常见端口上使用它,一个开放代理。正如我的系统管理员所说,Security Through Obscurity
这不是我想要中继的东西。
我在 privoxy 文档上进行了搜索,但无法找到与用户身份验证相关的任何内容,我的问题是:有一种方法可以使用 privoxy 对其进行存档吗?如果没有,任何人都可以提出一些易于配置和简化隐私的建议吗?
谢谢。
问题 :
对于 HTTPS 请求,我的代理从响应中删除自定义标头:
HTTP请求:
$ curl -I -x 127.0.0.1:5566 http://www.google.fr
HTTP/1.1 200 OK
...
X-Servedby: 50001 => My custom header is added to the response
Run Code Online (Sandbox Code Playgroud)
完整回复:https : //gist.github.com/vdaubry/eafabf211957cbe87563
HTTPS 请求:
$ curl -I -x 127.0.0.1:5566 https://www.google.fr
HTTP/1.1 200 Connection established
Proxy-Agent: Privoxy/3.0.23
X-Servedby: 50001 => doesn't appear in the final response
HTTP/1.1 200 OK
Date: Sat, 07 Feb 2015 16:29:25 GMT
...
Vary: Accept-Encoding
Run Code Online (Sandbox Code Playgroud)
完整回复:https : //gist.github.com/vdaubry/2869d85b2e8affdc5a8c
我不明白为什么在连接打开时添加了自定义标头但不是最终响应?
更多信息:
我有对多个 Privoxy 实例的 HAProxy 负载平衡请求。HAProxy 正在将 privoxy …
我需要设置一个 HTTP 代理服务器(称为 server A
)供用户访问 Internet。出于某种原因,它需要将所有请求转发到另一个 HTTP 代理服务器(称为 server C
)。但C
不能直接访问A
,除非使用另一个 HTTP 代理服务器B
。
User --> A --> B --> C
Run Code Online (Sandbox Code Playgroud)
代理服务器A
,C
由我控制,我可以在上面安装任何东西或配置任何东西。但是B
是我无法控制或配置的现有 HTTP 透明代理。
不知道哪个软件可以支持这种“代理链转发”。
做squid
或privoxy
或其他软件支持呢?
我需要将 nginx 设置为 https 代理,但这不起作用:
$ export https_proxy="http://127.0.0.1:8081"
$ curl https://example.com
curl: (56) Received HTTP code 400 from proxy after CONNECT
Run Code Online (Sandbox Code Playgroud)
我的nginx.conf:
server {
listen 8081;
location / {
proxy_pass http://some.proxy.com:3128;
proxy_set_header Host $http_host;
}
}
Run Code Online (Sandbox Code Playgroud)