海阔天空-wide-area

海阔天空,随心所欲,有什么,说什么,Linux,VC,Network Programming

星期二, 十月 11, 2005

用Tor实现有效和安全的互联网访问

用Tor实现有效和安全的互联网访问

http://www.livejournal.com/~niqiu/13149.html

http://risker.org/tech/Tor/index.html

# 下载软件tor和privoxy

在各自的主页下载最新版本就可以了:
http://tor.eff.org/
http://www.privoxy.org/

# 修改privoxy的配置
在Main
Configuration里面添加一行(注意:别忘记9050后面的还有一个点):

forward-socks4a / localhost:9050 .

保存后启动privoxy,tor即可

1. 设置浏览器代理

代理设为localhost:8118 就一切OK了。

2. 测试

现在再访问一下gmail试试,看看行不行?

======
更新
======
用这个连其它网站会有点慢,我只在上google,gmail,网页快照的时候需要用到,
可以考虑写个pac文件。

function FindProxyForURL(url, host)
{
url = url.toLowerCase();
host = host.toLowerCase();

if(dnsDomainIs(host, ".google.com")) return "PROXY localhost:8118";
else if(dnsDomainIs(host, ".gmail.com")) return "PROXY
localhost:8118";
else if(isInNet(host,"66.102.7.104","255.255.255.255")) return "PROXY
localhost:8118";
else if(isInNet(host,"64.233.167.104","255.255.255.255")) return
"PROXY localhost:8118";
else if(shExpMatch(url, "*q=cache:*")) return "PROXY localhost:8118";
else return "DIRECT";

0 Comments:

发表评论

<< Home