安装tor,privoxy
sudoapt-getinstalltor
sudoapt-getinstallprivoxy
sudogedit/etc/privoxy/config
修改privoxy配置文件,加入下面这句话(注意:后面有点)
forward-socks4a/localhost:9050.
启动tor和privoxy
sudo/etc/init.d/torstart
sudo/etc/init.d/privoxystart
用下面命令检查9050端口
$netstat-a|grep9050
应该看到下面这样信息
tcp00localhost:9050*:*LISTEN
表示tor正常工作。
安装firefoxTorbutton扩展,重起Firefox就可以看到底部状态栏会出现Tor的激活按钮,激活它就可以访问受限站点。
其它软件设置
127.0.0.1:8118
socks5127.0.0.1:9050
即可。
测试中遇到一个小问题,原来看过一个ubuntu优化技巧,把/etc/hosts文件中的第一句
#127.0.0.1localhostguoshuang-laptop
给注释掉了。而firefoxtor插件在切换firefox配置的时候使用的就是localhost而不是127.0.0.1,所以导致badgateway错误。去掉前面的注释#即可。
阅读(334) | 评论(0) | 转发(0) |