Skip to content

Instantly share code, notes, and snippets.

@plowsof
Last active March 9, 2024 22:25
Show Gist options
  • Save plowsof/4c379904e04b27a9eb74995254e1fd4a to your computer and use it in GitHub Desktop.
Save plowsof/4c379904e04b27a9eb74995254e1fd4a to your computer and use it in GitHub Desktop.
i2pzero to i2pd

Install i2pd debian/ubuntu:

sudo add-apt-repository ppa:purplei2p/i2pd
sudo apt-get update
sudo apt-get install i2pd

stop i2pzero service

sudo systemctl stop i2pzero.service 
sudo systemctl disable i2pzero.service 

open monerod.conf up and set the tx-proxy port to 4447. we do not have to change the anonymous-inbound line, but note the port. mine is 8061, we will use this later.

anonymous-inbound=uqj3aphckqtjsitz7kxx5flqpwjlq5ppr3chazfued7xucv3nheq.b32.i2p,127.0.0.1:8061
tx-proxy=i2p,127.0.0.1:4447,disable_noise

confirm keys.dat file from i2p-zero is located in:

ls ~/.i2p-zero/config/tunnelTemp
seckey.ce53080d2e60e433c50e7bf06e8b043c.dat

copy this dat file to the i2pd dir

sudo cp ~/.i2p-zero/config/tunnelTemp/seckey.ce53080d2e60e433c50e7bf06e8b043c.dat /var/lib/i2pd/monero-p2p.dat
sudo chown i2pd:i2pd /var/lib/i2pd/monero-p2p.dat 

edit/add this to /etc/i2pd/tunnels.conf (change 8061):

[monero-p2p]
type = server
host = 127.0.0.1
port = 8061
keys = monero-p2p.dat

(i comment out the [IRC-ILITA] stuff because i don't know who/what that is lol)

restart i2pd

sudo /etc/init.d/i2pd restart
sudo systemctl status i2pd.service

confirm i2pd URL matches our i2pzero one (change 8061 to the port you set):

curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "8061"
uqj3aphckqtjsitz7kxx5flqpwjlq5ppr3chazfued7xucv3nheq.b32.i2p:8061

restart monerod

sudo systemctl restart monerod.service

wait several mins

monerod print_cn | grep I2P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment