12

I2p与Tor整合来访问i2p及tor站点

 1 year ago
source link: https://garywu520.github.io/2022/08/17/I2p%E4%B8%8ETor%E6%95%B4%E5%90%88%E6%9D%A5%E8%AE%BF%E9%97%AEi2p%E5%8F%8Ator%E7%AB%99%E7%82%B9/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I2p与Tor整合来访问i2p及tor站点

2022-08-17

字数统计: 600字

  |   阅读时长≈ 2分

i2pd是一项混合授权的匿名網路项目,可伸缩性强,具有自我组织与恢复能力的包切换匿名网络。

Tor 就不说了

把它们整合一起,同时访问i2p及Tor站点

1.Install and Config

#FreeBSD Install
pkg install -y i2pd

配置文件:/usr/local/etc/i2pd/i2pd.conf

#启用ipv6
ipv6 = true

#修改默认带宽,X表示不限制
bandwidth = X

#开启Floodfill算法
floodfill = true

#开启upnp(主动式端口转发)
[upnp]
enabled = true
name = I2Pd

#默认不需要修改,如果被墙了,开启此选项下面的代理,前提是代理需要自己准备就绪
[reseed]
verify = true

#地址簿(如果订阅url已经失效,则需要搜索🔍更换)
[addressbook]
defaulturl = http://shx5vqsw7usdaunyzr2qmes2fq37oumybpudrd4jjj4e4vk4uusa.b32.i2p/hosts.txt
subscriptions = http://identiguy.i2p/hosts.txt,http://linuxfarm.i2p/hosts.txt,http://notbob.i2p/hosts.txt,http://reg.i2p/export/hosts.txt,http://skank.i2p/hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt


#启用i2cp协议
[i2cp]
enabled = true

#启用BOB频道
[bob]
enabled = true

#启用本地Socks5代理
[socksproxy]
address = 172.16.10.10
port = 4447
keys = socks-proxy-keys.dat
#-------- 整合tor----------#
outproxy.enabled = true
outproxy = 127.0.0.1
outproxyport = 9050

#增加探测隧道数量,提升访问可靠性
[exploratory]
inbound.quantity = 64
outbound.quantity = 64

#Web Console
[http]
address = 172.16.10.10
port = 7070

备用Address Book Subscriptions地址:

2. 启动i2pd服务

#Set i2pd_enable to YES in /etc/rc.conf
$ service i2pd start
$ service i2pd status

3. 访问i2pd Web Console

4. 配置tor

pkg install -y tor

cat /usr/local/etc/tor/torrc

AvoidDiskWrites 1
Log notice stdout
CookieAuthentication 0
ClientOnly 1
ConnLimit 10000
SOCKSPort 9150
ControlPort 9159
hashedControlPassword 16:CF0CB4F2FE9460E1608B7E944E3A5A60A4AA6DB282D6A85C7C52749042

#Bridge
ClientTransportPlugin obfs4 exec /Users/xxx/tor/obfs4proxy managed


#排除
ExcludeNodes {cn},{hk}
StrictNodes 1

#指定Tor使用Clash Socks5前置代理
Socks5Proxy 127.0.0.1:7890

#tor不休眠
DormantOnFirstStartup 0
DormantClientTimeout 86400
DormantTimeoutDisabledByIdleStreams 1
#Set tor_enable to YES in /etc/rc.conf
$ service tor start
$ sockstat |grep 9050

5. 使用Socks5代理

  • IP:172.16.10.10
  • Port: 4447

此时,网络就可以正常访问i2p和Tor的网址,当然也可以访问正常网址,如Google等(只不过正常网站,走了Tor线路)

5. i2p测试网址


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK