Quantcast
Viewing all articles
Browse latest Browse all 318

i2pd • Re: Some destinations not connecting via SAM

Steps to reproduce this problem with netcat: (applicable to java i2p too, but beware of pings and timeouts, i.e just respond with PONG when it asks you)

Open two terminals.

In terminal 1, enter this command:

Code:

nc <ip-of-i2p-router> 7656
That should open a netcat session with the SAM bridge.
Now type these two SAM commands to handshake and initialize:

Code:

HELLO VERSIONSESSION CREATE STYLE=STREAM ID=testing123 DESTINATION=TRANSIENT inbound.length=2 outbound.length=2 inbound.quantity=3 outbound.quantity=3
That will create an i2p destination that we will use to contact.
Be sure not to close it until you're done following these instructions.

Then, in terminal 2, open another netcat session to the SAM bridge:

Code:

nc <ip-of-i2p-router> 7656
Then enter these SAM commands to handshake and connect to a destination that should work (namely i2p-projekt.i2p, because it has both elgamal and ecies):

Code:

HELLO VERSIONSTREAM CONNECT ID=testing123 DESTINATION=i2p-projekt.i2p
It should now tell you that it connected successfully.

Now let's do a HTTP request:

Code:

GET / HTTP/1.1
(empty newline at the end is important)
Now it should output some text about some redirection. That means it worked.

Now let's get to an ecies-only destination, such as tracker2.postman.i2p.
Close the netcat session in terminal 2, by pressing Ctrl-C.
In terminal 2, open another netcat session:

Code:

nc <ip-of-i2p-router> 7656
And try to connect to that destination:

Code:

HELLO VERSIONSTREAM CONNECT ID=testing123 DESTINATION=tracker2.postman.i2p
This is where java i2p and i2pd diverge.
Java i2p will tell you "Unsupported encryption options".
i2pd will happily say that it connected.

Next steps are i2pd-specific.

In terminal 2 (without closing its netcat session), try to actually make a request to the postman tracker!

Code:

GET / HTTP/1.1
What do we see here? It just waits... On and on.... On and on....

In some time (like a lot of time) it will eventially timeout (and will print a message in i2pd log).

But until it timed out, you can open i2pd console, then go to "SAM sessions", click the "testing123" session, then select the only destination there.
You will see at the bottom 1 stream listed (connected to 6a4kx...). This stream is the one you made to postman tracker. You will see that it will display some number sent, but 0 received.

Statistics: Posted by anikey — 05 Jan 2024 19:19



Viewing all articles
Browse latest Browse all 318

Trending Articles


FORECLOSURE OF REAL ESTATE MORTGAGE


Maganda Quotes – tagalog Quotes – Inggit Quotes


Girasoles para colorear


Presence Quotes – Positive Quotes


Long Distance Relationship Tagalog Love Quotes


INUMAN QUOTES


RE: Mutton Pies (frankie241)


Hato lada ym dei namar ka jingpyrshah jong U JJM Nichols Roy (Bah Joy) ngin...


EASY COME, EASY GO


UPDATE SC IDOL: TWO BECOME ONE


FORTUITOUS EVENT


Pokemon para colorear


Sapos para colorear


Smile Quotes


Love with Heart Breaking Quotes


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo 10.7.0 by Vimeo.com, Inc.


Vimeo 10.7.1 by Vimeo.com, Inc.


KASAMBAHAY BILL IN THE HOUSE