在tor中添加网桥

by yuanyelele

Mar 04 10:53:04.805 [notice] Bootstrapped 5%: Connecting to directory server.
Mar 04 10:53:04.813 [notice] I learned some more directory information, but not enough to build a circuit: We have no network-status consensus.

如果你在tor的日志中发现上面的错误,可能的原因是ISP屏蔽了知名的tor中继。但是,还有未列在公共目录中的大量tor中继,叫做网桥。

  1. 发送主题和内容为”get bridges”的邮件至bridges@torproject.org
  2. 回复邮件中会包含三个网桥的ip:port地址
  3. /etc/tor/torrc中添加这三个地址(方法参见tor手册页中关于UseBridge和Bridge参数的说明)
  4. 重启tor服务

成功了!见日志:

Aug 31 14:44:14.088 [notice] We now have enough directory information to build circuits.
Aug 31 14:44:14.088 [notice] Bootstrapped 80%: Connecting to the Tor network.
Aug 31 14:44:14.867 [notice] Bootstrapped 85%: Finishing handshake with first hop.
Aug 31 14:44:18.480 [notice] Bootstrapped 90%: Establishing a Tor circuit.
Aug 31 14:44:28.008 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Aug 31 14:44:28.009 [notice] Bootstrapped {bfb}: Done.