Quantcast
Channel: 碳基体
Viewing all articles
Browse latest Browse all 75

使用privoxy与tor隐藏身份

$
0
0
前提: 有一台境外的vps

原理:
流量 <-----> http proxy(privoxy)<----- >socks proxy(tor)

第一步:安装与配置tor

apt-get install tor


vim /etc/tor/torrc

编辑

SocksPort 9050 #修改默认端口是好习惯


/etc/init.d/tor start


第二步:安装与配置privoxy
privoxy介绍 https://program-think.blogspot.com/2014/12/gfw-privoxy.html(翻墙看)

apt-get install privoxy


vim /etc/privoxy/config

编辑

listen-address 0.0.0.0:8118 修改默认端口是好习惯
forward-socks5 / 127.0.0.1:9050 .  把所有的请求都转发给本机的tor监听端口


/etc/init.d/privoxy start


第三步:使用

查看是否正常使用privacy

http://p.p/

查看是否正常使用tor

curl https://check.torproject.org -x vpsip:8118|grep Your -A 5 -B 5|more
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8277 0 8277 0 0 3822 0 --:--:-- 0:00:02 --:--:-- 3824
<h1 class="not">

Congratulations. This browser is configured to use Tor.

</h1>
<p>Your IP address appears to be: <strong>37.187.7.74</strong></p>



<p class="security">
However, it does not appear to be Tor Browser.<br />



p.s.  这种方法并不能science 上网

参考:
https://program-think.blogspot.com/2014/12/gfw-privoxy.html (非常有意思的博客)

Viewing all articles
Browse latest Browse all 75

Trending Articles