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

i2pd go through proxy #2107

Open
bingmatv opened this issue Oct 12, 2024 · 8 comments
Open

i2pd go through proxy #2107

bingmatv opened this issue Oct 12, 2024 · 8 comments

Comments

@bingmatv
Copy link

How to let i2pd go through a proxy, maybe socks5 proxy? The question is not to set my web browser to go through i2pd, but to let i2pd go through proxy.

@Vort
Copy link
Contributor

Vort commented Oct 12, 2024

@orignal
Copy link
Contributor

orignal commented Oct 12, 2024

maybe socks5 proxy

Maybe Tor specifically?

@bingmatv
Copy link
Author

Maybe Tor specifically?

Some other programs also use socks5, e.g, shadowsocks, oilelpqt, V2Ray.

@bingmatv
Copy link
Author

With ntcp2.proxy probably. https://i2pd.readthedocs.io/en/latest/user-guide/configuration/#ntcp2

Does it require the socks5 proxy support UDP fragments? I'm unsure how socks5 forwards UDP. I tried my self-made proxy to understand socks5 protocol, since I'm unsure how to correctly forward UDP so my self-made proxy failed to forward I2P traffic. But it seems that TCP streams are correctly forwarded, only UDP doesn't work.

@Vort
Copy link
Contributor

Vort commented Oct 12, 2024

NTCP2 uses TCP, while SSU2 uses UDP.
For UDP support you may try ssu2.proxy option instead.
However, I do not see why it may be needed.
If NTCP2 works fine, it is totally enough for proper functioning of i2pd.

@orignal
Copy link
Contributor

orignal commented Oct 12, 2024

Some other programs also use socks5, e.g, shadowsocks, oilelpqt, V2Ray.

For shadowsocks you can also configure SSU2 through a proxy. Tell me what you need and I will provide a config example.

@bingmatv
Copy link
Author

I'm curious about Page 8 of socks5 RFC, it has FRAG (fragment) field, DST.ADDR and DST.PORT for address and port. If the socks5 server accepted a UDP ASSOCIATE command with fragments, the FRAG counts from 1 and ends at 127. When FRAG is still between 1 and 127, either DST.ADDR or DST.PORT has been changed, should the client reset FRAG to 1? Or just accumulate FRAG again for any different DST.ADDR and DST.PORT?

@orignal
Copy link
Contributor

orignal commented Oct 14, 2024

i2pd always sets zero to this field

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

3 participants