Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh tunnel via i2pd is infuriatingly unstable and i don't know why #2111

Open
i2pbanana opened this issue Oct 23, 2024 · 6 comments
Open

ssh tunnel via i2pd is infuriatingly unstable and i don't know why #2111

i2pbanana opened this issue Oct 23, 2024 · 6 comments

Comments

@i2pbanana
Copy link

i2pbanana commented Oct 23, 2024

i use ssh to create a socks proxy to a remote server via i2pd. sometimes it works, sometimes not. when it works, it will stop working after some minutes. sometimes i can manually reset it and go another round, sometimes it stops responding completely as if the server had gone offline, and i cannot access the ssh server at all through i2p, either tunnel or simple user login.

moreover, it has gotten worse the past two or three days. i was able to at least do what i needed to do even if inconvenient, but now it has become unusable to me. i see other user posted about a doss attack so maybe that explains this part.

i can access the ssh server with a tor hidden service instead, and with tor it can stay online and responsive for several hours. on the client side, i can browse i2p sites without issues. this is either a problem with i2pd on the server side, or maybe bad tunnel settings. can somebody please help me figure out? both client and server show "Network Status: OK" on the web interface.

client tunnel config:

[ssh]
type = client
address = 127.0.0.1
port = 700
inbound.length = 3
outbound.length = 3
inbound.quantity = 8
outbound.quantity = 8
inbound.backupQuantity = 2
outbound.backupQuantity = 2
destination = [redacted for security].b32.i2p
keys = ssh.dat

server tunnel config:

[ssh]
type = server
host = 127.0.0.1
port = 700
inbound.length = 3
outbound.length = 3
inbound.quantity = 8
outbound.quantity = 8
inbound.backupQuantity = 2
outbound.backupQuantity = 2
keys = ssh.dat

ssh error message on failure to connect:

key_exchange_identification: read: Connection reset by peer
Connection reset by 127.0.0.1 port 700

alternate error, less commonly:

key_exchange_identification: Connection closed by remote host
Connection reset by 127.0.0.1 port 700

@Vort
Copy link
Contributor

Vort commented Oct 23, 2024

Do you use latest version of i2pd, 2.54.0, for client and server?

i see other user posted about a doss attack so maybe that explains this part

Right, attack made network less stable.

@i2pbanana
Copy link
Author

i2pbanana commented Oct 23, 2024

Do you use latest version of i2pd, 2.54.0, for client and server?

2.54.0?! What the... Huh. No, both are on 2.45.1. What is the correct way to update? It seems my distro's package manager is lagging behind.

@Vort
Copy link
Contributor

Vort commented Oct 23, 2024

You may try looking at files in Assets section here:
https://github.com/PurpleI2P/i2pd/releases/tag/2.54.0

@i2pbanana
Copy link
Author

Ah, it's right there. Thank you! I'll report back in a few once I've updated both machines and tested.

@orignal
Copy link
Contributor

orignal commented Oct 24, 2024

inbound.backupQuantity = 2
outbound.backupQuantity = 2

What is backupQuantity? There is no such params in i2pd.

@r4sas
Copy link
Member

r4sas commented Oct 24, 2024

What is the correct way to update?

https://i2pd.readthedocs.io/en/latest/user-guide/install/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants