Tor使用

1
2
3
4
5
6
7
8
9
brew install tor
cp /usr/local/etc/tor/torrc.sample /usr/local/etc/tor/torrc
brew services start tor
echo 'SOCKS5Proxy 127.0.0.1:5566' > torrc
tor -f torrc
# 傻瓜化 的配置可以 下载tor浏览器,参考:https://www.torproject.org/download/download#warning
wget https://dist.torproject.org/torbrowser//7.5.3/TorBrowser-7.5.3-osx64_zh-CN.dmg

启动日志:

May 04 18:16:57.948 [notice] Tor 0.3.1.7 (git-6babd3d9ba9318b3) running on Darwin with Libevent 2.1.8-stable, OpenSSL 1.0.2l, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
May 04 18:16:57.948 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
May 04 18:16:57.949 [notice] Read configuration file "/usr/local/etc/tor/torrc".
May 04 18:16:57.952 [notice] Opening Socks listener on 127.0.0.1:9050
May 04 18:16:57.000 [notice] Parsing GEOIP IPv4 file /usr/local/Cellar/tor/0.3.1.7/share/tor/geoip.
May 04 18:16:58.000 [notice] Parsing GEOIP IPv6 file /usr/local/Cellar/tor/0.3.1.7/share/tor/geoip6.
May 04 18:16:58.000 [notice] Bootstrapped 0%: Starting
May 04 18:16:58.000 [notice] Starting with guard context "default"
May 04 18:16:58.000 [notice] Bootstrapped 80%: Connecting to the Tor network
May 04 18:16:59.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
May 04 18:17:00.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
May 04 18:17:02.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.

启动好tor服务后,配置 socket5代理 127.0.0.1:9050 即可匿名访问网络了,具体可以访问whoer.net查看下,比如我的是:

注意: 使用tor后访问国内网站很不稳定的,不建议访问

高级配置

获取网桥

访问 https://bridges.torproject.org/bridges?transport=obfs2 获取obfs2网桥
访问 https://bridges.torproject.org/bridges?transport=obfs3 获取obfs3网桥
访问 https://bridges.torproject.org/bridges?transport=obfs4 获取obfs4网桥[推荐]
访问 https://bridges.torproject.org/bridges?transport=scramblesuit 获取scramblesuit网桥

获取网桥:
https://bridges.torproject.org/bridges?transport=obfs4

1
2
3
obfs4 192.36.31.156:58717 C96BE6BB62B5C3A16CF2AC44D7DA0ABA519FBDCF cert=BuWcPXK6XaGGiXaJo6z3LfVgXioGbCe8tHBM644m5uuX2soci9ZLQ4WE2ehzkGlx1EreAA iat-mode=0
obfs4 52.15.193.17:9443 BD0299D93D9206411A3232BBF467DC95DAF77298 cert=+nI8zcEMq/yhQ7wxFTm9IXP1bIqbJlq4wmYXOiQNzphnD4ZwzUjUpn1GkhJKSQXFR6JgEg iat-mode=0
obfs4 31.220.45.126:443 51F5957DCCA58AC686864A7A6A47B917486E3625 cert=cZFybuS2DSlRdpG9GRKS+dqF297Mp1mduHVt/N011fPXXePMqA1ckubxQdGEDj7U5kJkPw iat-mode=0

i2p

https://geti2p.net/zh-cn/download

java -jar i2pinstall_0.9.34.jar启动安装程序 installer

On most systems, I2P can be started with:

/Applications/i2p/i2prouter start

If I2P does not start, please try:

/Applications/i2p/runplain.sh

启动后,访问http://127.0.0.1:7657/ 即可