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

Support system proxy #115

Open
ghost opened this issue Mar 4, 2023 · 2 comments
Open

Support system proxy #115

ghost opened this issue Mar 4, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2023

Details

In some countries with network restrictions, it is not possible to send ICMP packets to some machines via ping. But melnode only supports ICMP ping, and normal proxies do not support network layer protocols.

If melnode can support TCPing and inherit the system proxy (or proxy parameters), then it is possible to bypass these network restrictions.

@nullchinchilla
Copy link
Member

?? What do you mean by ICMP ping? I don't think melnode uses ICMP ping anywhere.

The melnet2 "ping" is over HTTP.

@ghost
Copy link
Author

ghost commented Mar 7, 2023

?? What do you mean by ICMP ping? I don't think melnode uses ICMP ping anywhere.

The melnet2 "ping" is over HTTP.

That's weird. If it's HTTP traffic, then proxychain4 should be able to do the proxy, but I failed when I tried.

The log:

[2023-03-07TXX:XX:XXZ WARN  melnet2::swarm] [melnode] get more routes failed from 224.0.0.1:41814: ping failed
[2023-03-07TXX:XX:XXZ WARN  melblkidx] indexing failed with error during network communication: transport-level error: connection closed before message completed, restarting

The command: proxychains4 -q melnode --index-coins --database /var/local/melnode/

The proxychains4 configuration is correct and works well with other applications. That's why I thought "ping" was using the ICMP protocol.

Well, since "ping" in melnet2 uses http, there may be some compatibility issues between proxychains4 and melnode.

Anyway, I think it's good to have the parameter "whether to use the system proxy". Or specify the proxy directly in the parameter.

@ghost ghost changed the title Support ping over tcp(TCPing) and system proxy Support system proxy Mar 7, 2023
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

1 participant