优化tor的速度



经常需要翻墙。gladder速度比较快,但是稳定性差。tor稳定性好,但速度太慢。今天终于不堪忍受gladder的再一次死掉,又重新拾起了tor。tor是一个安全性很好的匿名浏览的工具,但用于平常的翻墙浏览来说有点overkill的意思。

如下优化配置了一下tor,感觉速度大有提高(至少打开一个页面的等待时间不会超过3秒了)。

首先找到torrc文件,ubuntu 下的位置在/etc/tor/torrc, windows下的据说可以在Vidalia的选项对话框里找到。编辑之,加入如下几行:

# Set the Tor Circuit Build time to find faster tor servers, increments of seconds
#这个默认是60秒,如果觉得2秒太短的话可以适当增加
CircuitBuildTimeout 2
# connections while Tor is not in use.
KeepalivePeriod 60

# Force Tor to consider whether to build a new circuit every NUM seconds.
NewCircuitPeriod 15

# Set How many entry guards we should we keep at a time
NumEntryGuards 8

重启tor(ubuntu下是/etc/init.d/tor restart),就大工告成了。


另外,foxyproxy是tor的好搭档,可以设置需要使用tor的url匹配列表,把常用的需要翻墙的url加入,便可以省去切换使用/不使用代理的麻烦。

No Comments 2009-06-22 20:51:24 by wrb302

Comments:

You can leave a comment on this post if you login