I2P is not working on Ubuntu 20.04

I2P router issues
Post Reply
m10b
Posts: 2
Joined: 03 Dec 2021 00:17

I2P is not working on Ubuntu 20.04

Post by m10b »

I installed I2P on Ubuntu 20.04 on VMWare with the following commands:
The machine was created only for this purpose, with no previous configuration.

Code: Select all

$ sudo apt install i2pd
$ systemctl enable i2pd.service
$ systemctl start i2pd.service
This installs the i2pd version 2.29.0 (0.9.43).
And tested the firewall / service with following commands:

Code: Select all

$ sudo ufw status verbose
Status: inactive
$ ss -nlt
State                Recv-Q               Send-Q                               Local Address:Port                                Peer Address:Port               Process               
LISTEN               0                    128                                      127.0.0.1:7656                                     0.0.0.0:*       
...
I also was able to reach the website git.idk.i2p using the steps described in http://geti2p.net/en/about/browser-config .

But when running the test described in https://github.com/vasild/bitcoin/pull/4, I don't get a response.

Code: Select all

$ telnet 127.0.0.1 7656
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELLO VERSION MIN=3.1 MAX=3.1
HELLO REPLY RESULT=OK VERSION=3.1
SESSION CREATE STYLE=STREAM ID=mysession1 DESTINATION=TRANSIENT SIGNATURE_TYPE=7
<no-response>
According to the test, a response (SESSION STATUS RESULT=OK) was expected. This didn't happen. No response was received.

This error is preventing Bitcoin Core to connect to I2P network.

I also tested with the the java version from https://geti2p.net/en/download/debian in a new Ubuntu VM and the results are the same.

How can I find the reason for this error and fix it?
echelon
Posts: 261
Joined: 10 Feb 2018 13:36

Re: I2P is not working on Ubuntu 20.04

Post by echelon »

Hi

as you could reach git.idk.i2p I2P works fine.
you just seems to miss the connection of a application to I2P.

But as it looks you try out bitcoin, the latest bitcoin main client has I2P support included already, maybe look at this, as the git shows last checkin 2020, which is rather old and may not be recent enough for I2P.

https://github.com/bitcoin/bitcoin/blob ... doc/i2p.md
m10b
Posts: 2
Joined: 03 Dec 2021 00:17

Re: I2P is not working on Ubuntu 20.04

Post by m10b »

Thanks.
Bitcoin Core should work with I2P simply by following these steps:
https://bitcoin.stackexchange.com/quest ... otocol-i2p

But this is not happening. Therefore, on Bitcoin Stack Exchange, recommend me to take the following test:
https://github.com/vasild/bitcoin/pull/4

The above test is I2P only (no bitcoin client involved). It tries to create a session (style = stream and destination = transient), but the test fails.
It doesn't get the expected response.

Code: Select all

$ telnet 127.0.0.1 7656
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELLO VERSION MIN=3.1 MAX=3.1
HELLO REPLY RESULT=OK VERSION=3.1
SESSION CREATE STYLE=STREAM ID=mysession1 DESTINATION=TRANSIENT SIGNATURE_TYPE=7
<no-response>
Why is the test failing?
echelon
Posts: 261
Joined: 10 Feb 2018 13:36

Re: I2P is not working on Ubuntu 20.04

Post by echelon »

your guide is rather old, maybe something changed. But as it is i2pd, no idea, that once changbes rather often.

And you get a response from i2p on port 7656, which tells you the specs, but no idea what should listen on that port, ask i2pd.
Post Reply