Nginx + Squid + Privoxy + Tor to reverse proxy and protect connecting ips?
<p>I'm looking for some help about how to setup this stack:</p>

<p><strong>User => site.com => nginx => squid => privoxy => tor => site.net</strong></p>

<p>So basically, I will have nginx+squid+privoxy+tor on my vps, my domain is site.com and I would like to reverse proxy site.net.</p>

<p>The goal should be that if I have on site.com the ip 1.1.1.1, site.net should see only the IP of the tor exit nodes, not the site.com ip.</p>

<p>What Im trying to do without success is that I need to force nginx to use only the squid port, which is connected to 8 privoxy instances, which are connected to 8 tor instances, to diversify the ips connecting to site.net</p>

<p>I've tried several guides on the net including:</p>

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

<p>I would like to learn how this works for personal knowledge and 100% legal usage.</p>

<p>Also checked this old github project, with a nginx patch, but didnt worked:</p>

<p><strong>github.com/Lem/nginx-to-tor</strong>
Which is somehow what I would like to reach.</p>

<p>I used mainly Ubuntu 14.04 and debian 7, both 64bit.
I stuck mainly on the part when I try to force nginx to use the squid port (3128 as example) and it gives an error. </p>

<p>As explained here: <strong>github.com/Lem/nginx-to-tor/blob/master/frontend/nginx-http_proxy.patch</strong></p>

<p>If I use my browser to connect directly to squid, it works as it should.</p>

<p><strong>Thanks to all who might help me a bit.</strong></p>