r4H免费翻墙网
r4H免费翻墙网
4.6:接下来就是对Tor进行配置(离成功越来越近了,欣喜!):修改/etc/tor/torrc:r4H免费翻墙网
SocksPort 9050 SocksListenAddress 192.168.10.1:9050
4.7:添加iptables规则r4H免费翻墙网
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp sudo iptables -t nat -A PREROUTING -i eth0 -p tcp sudo iptables -t nat -A PREROUTING -i eth0 -p udp sudo iptables -t nat -A PREROUTING -i eth0 -p tcp
为了让上面的规则在开始时自动添加,执行:
# sh -c “iptables-save > /etc/iptables.ipv4.nat”
第一条命令为22端口开一个特例,这样SSH才能连上树莓派。
第二条命令为19999端口开一个特例,这样netdata才能连上树莓派。
第三条命令将所有DNS(端口号53)请求转发到配置文件torrc中的DNSPort中
第四条命令将所有TCP流量转发到配置文件torrc中的TransPort中r4H免费翻墙网
4.8:启动tor客户端进程:
# service tor start
在/var/log/tor/notices.log中查看tor启动情况,正常的是:r4H免费翻墙网
Apr 13 13:32:46.000 [notice] Bootstrapped 5%: Connecting to directory server
Apr 13 13:32:46.000 [warn] We were supposed to connect to bridge ’162.217.177.95:18869′ using pluggable transport ‘obfs4′, but we can’t find a pluggable transport proxy supporting ‘obfs4′. This can happen if you haven’t provided a ClientTransportPlugin line, or if your pluggable transport proxy stopped running.
Apr 13 13:32:47.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Apr 13 13:32:57.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Apr 13 13:32:58.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Apr 13 13:32:58.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Apr 13 13:33:22.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Apr 13 13:33:23.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Apr 13 13:33:28.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Apr 13 13:33:28.000 [notice] Bootstrapped 100%: Doner4H免费翻墙网
r4H免费翻墙网
然后任何时候reboot,树莓派会自动启动,开始连接加密节点,同时eth0口等待你的终端进行连接,我们的目的已经实现。网络出口会自动间隔几分钟就会跳动一次,表现为出口IP会不断变化,隐藏你的真实身份。这时候,你可以畅享目前为止军方都无法破解的加密服务了。r4H免费翻墙网
r4H免费翻墙网
来自http://www.freebuf.com/news/topnews/101629.htmlr4H免费翻墙网
4/4 首页 上一页 2 3 4
|