Nginx + Squid + Privoxy + Tor 反向代理并保护连接的 ips?

标签 nginx proxy squid tor

我正在寻找有关如何设置此堆栈的帮助:

用户 => site.com => nginx => squid => privoxy => tor => site.net

所以基本上,我的 vps 上会有 nginx+squid+privoxy+tor,我的域是 site.com,我想反向代理 site.net。

目标应该是如果我在 site.com 上有 ip 1.1.1.1,site.net 应该只看到 tor 导出节点的 IP,而不是 site.com ip。

我试图做但没有成功的是,我需要强制 nginx 仅使用连接到 8 个 privoxy 实例的 squid 端口,这些实例连接到 8 个 tor 实例,以使连接到 site.net 的 ips 多样化

我尝试了网上的几个指南,包括:

  1. terminal28.com/anonymity-online-how-to-install-and-configure-squid3-tor-privoxy-debian-ubuntu-linux/
  2. evilzone.org/anonymity/setup-your-own-proxy-with-squidprivoxytor-on-debian-like-distros-(tutorial)/
  3. wiki.vpsget.com/index.php/Squid%2BPrivoxy%2BTor
  4. mightycomputers.wordpress.com/2012/09/10/recently-i-foun/

我想了解这是如何实现个人知识和 100% 合法使用的。

还检查了这个带有 nginx 补丁的旧 github 项目,但没有工作:

github.com/Lem/nginx-to-tor 这正是我想要达到的目的。

我主要使用 Ubuntu 14.04 和 debian 7,都是 64 位的。 当我试图强制 nginx 使用 squid 端口(例如 3128)时,我主要停留在这部分,它给出了一个错误。

如此处解释:github.com/Lem/nginx-to-tor/blob/master/frontend/nginx-http_proxy.patch

如果我使用我的浏览器直接连接到 squid,它会正常工作。

感谢所有可能帮助我的人。

最佳答案

您可以为此使用 http://www.delegate.org/delegate。 我用 /opt/dg9_9_13/bin/dg9_9_13 -v ADMIN="mail@host.tld"-P8118 SERVER=http://url.onion SOCKS=localhost:9050/-r PERMIT="*: *:*"AUTHORIZER="-dgauth{user:pass}"

关于Nginx + Squid + Privoxy + Tor 反向代理并保护连接的 ips?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35009271/

相关文章:

nginx - 单个 NGINX-Ingress Controller ,用于在单独命名空间中具有资源的子域

Golang gin-gonic 反向代理导致 panic "interface conversion: *http.timeoutWriter is not http.CloseNotifier: missing method CloseNotify"

windows - 设置代理服务器的步骤

nginx - Nginx 是否有等效的页面速度?

http - 如何通过代理转发 http 2 协议(protocol)版本?

nginx - php5-fpm崩溃

javascript - URL 参数代理脚本

Python 3.51 请求导致代理错误

java - 泰鲁斯 wss ://websocket not passing through squid proxy

linux - 鱿鱼内容操纵