Open
Description
Describe the issue
Socks5 example setup does not answer curl nor ssh as proxy
Expected behaviour
Answer after running curl --socks5-hostname 127.0.0.1:1080 https://icanhazip.com
. Instead I see curl: (28) SSL connection timeout
Stack Traces
Starting client docs-example...
2025-02-09T14:41:29.926Z INFO nym_client_core::client::base_client::non_wasm_helpers > loading existing surb database
2025-02-09T14:41:29.938Z INFO nym_client_core_surb_storage::backend::fs_backend::manager > Database migration finished!
2025-02-09T14:41:29.943Z INFO nym_client_core::client::base_client > Starting nym client
2025-02-09T14:41:29.953Z INFO nym_client_core::client::base_client > Starting statistics control...
2025-02-09T14:41:29.953Z INFO nym_client_core::client::base_client > Obtaining initial network topology
2025-02-09T14:41:31.140Z INFO nym_client_core::client::base_client > Starting topology refresher...
2025-02-09T14:41:31.140Z INFO nym_gateway_client::client > perform_initial_authentication; gateway=2hg8pU5fG6WxygEx1pqrwUDkJ8gu6GAe1LysNTfrF4jX gateway_address=wss://erikg3.daoariwas.cloud:9001/
2025-02-09T14:41:34.475Z INFO nym_client_core::client::base_client > Starting received messages buffer controller...
2025-02-09T14:41:34.481Z INFO nym_client_core::client::base_client > Starting mix traffic controller...
2025-02-09T14:41:34.481Z INFO nym_client_core::client::base_client > Starting real traffic stream...
2025-02-09T14:41:34.481Z INFO nym_client_core::client::base_client > Starting loop cover traffic stream...
2025-02-09T14:41:34.482Z INFO nym_socks5_client_core > Running with Mix packets
2025-02-09T14:41:34.482Z INFO nym_socks5_client_core > Starting socks5 listener...
2025-02-09T14:41:34.482Z INFO nym_socks5_client_core::socks::server > Listening on 127.0.0.1:1080
2025-02-09T14:41:34.482Z INFO nym_socks5_client_core > Client startup finished!
2025-02-09T14:41:34.482Z INFO nym_socks5_client_core > The address of this client is: CWSLfz3MqEsnKfsiGu51vqGCGTA9xQXdFdXZT5U6D1aX.42ZHeekikZ9kHEiorjLpEYai7tXzLqwx1RWQRBXrG1Wq@2hg8pU5fG6WxygEx1pqrwUDkJ8gu6GAe1LysNTfrF4jX
2025-02-09T14:41:34.539Z INFO nym_socks5_client_core::socks::server > Serving Connections...
2025-02-09T14:41:55.923Z INFO nym_socks5_client_core::socks::client > Starting proxy for icanhazip.com:443 (id: 4316539610619514906)
2025-02-09T14:46:55.924Z WARN nym_socks5_proxy_helpers::proxy_runner::outbound > didn't get anything from the client on 4316539610619514906 mixnet in 300s. Shutting down the proxy.
2025-02-09T14:46:58.437Z INFO nym_socks5_client_core::socks::client > Proxy for icanhazip.com:443 is finished (id: 4316539610619514906)
Steps to Reproduce
./nym-socks5-client init --id docs-example --use-reply-surbs true --provider Entztfv6Uaz2hpYHQJ6JKoaCTpDL5dja18SuQWVJAmmx.Cvhn9rBJw5Ay9wgHcbgCnVg89MPSV5s2muPV2YF1BXYu@Fo4f4SQLdoyoGkFae5TpVhRVoXCF8UiypLVGtGjujVPf
./nym-socks5-client run --id docs-example
curl --socks5-hostname 127.0.0.1:1080 https://icanhazip.com
./nym-socks5-client add-gateway --id docs-example --set-active
repeat steps 2-4 to check some other gateway. Timeout is the same result, I tried ~20 public nodes, both random and handpicked.
Which area of Nym were you using?
- Application: nym-socks5-client
- OS: Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux
- Version:
nym-socks5-client
Binary Name: nym-socks5-client
Build Timestamp: 2025-02-04T09:35:42.399220545Z
Build Version: 1.1.47
Commit SHA: 4c2bf3642e8eec0d55c7753e14429d73ac2d0e99
Commit Date: 2025-02-04T10:29:48.000000000+01:00
Commit Branch: HEAD
rustc Version: 1.84.1
rustc Channel: stable
cargo Profile: release
Additional context
Tried it both on my vps (debian) and pc (arch, nym installed with nix). Result is the same. Also on personal machine I tried ssh: ssh -o "ProxyCommand=nc -X 5 -x 127.0.0.1:1080 %h %p" vps
and got
Connection timed out during banner exchange
Connection to UNKNOWN port 65535 timed out
logs:
Starting client docs-example...
2025-02-09T14:50:35.244Z INFO nym_client_core::client::base_client::non_wasm_helpers > loading existing surb database
2025-02-09T14:50:35.255Z INFO nym_client_core_surb_storage::backend::fs_backend::manager > Database migration finished!
2025-02-09T14:50:35.264Z INFO nym_client_core::client::base_client > Starting nym client
2025-02-09T14:50:35.268Z INFO nym_client_core::client::base_client > Obtaining initial network topology
2025-02-09T14:50:40.658Z INFO nym_client_core::client::base_client > Starting topology refresher...
2025-02-09T14:50:40.658Z INFO nym_client_core::client::base_client > Starting packet statistics control...
2025-02-09T14:50:40.658Z INFO nym_gateway_client::client > perform_initial_authentication; gateway=4namLaLcqCZ6irhn9yoUpLjk5hZeRcjqoLFSS89iGmQp gateway_address=wss://patrick.tazbot.net:9001/
2025-02-09T14:50:40.658Z INFO nym_client_core::client::packet_statistics_control > Metrics server is disabled!
2025-02-09T14:50:41.727Z INFO nym_gateway_client::client > the gateway is using exactly the same (or older) protocol version as we are. We're good to continue!
2025-02-09T14:50:41.727Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.85 GiB
2025-02-09T14:50:41.731Z INFO nym_client_core::client::base_client > Starting received messages buffer controller...
2025-02-09T14:50:41.731Z INFO nym_client_core::client::base_client > Starting mix traffic controller...
2025-02-09T14:50:41.731Z INFO nym_client_core::client::base_client > Starting real traffic stream...
2025-02-09T14:50:41.732Z INFO nym_client_core::client::base_client > Starting loop cover traffic stream...
2025-02-09T14:50:41.732Z INFO nym_socks5_client_core > Running with Mix packets
2025-02-09T14:50:41.732Z INFO nym_socks5_client_core > Starting socks5 listener...
2025-02-09T14:50:41.732Z INFO nym_socks5_client_core::socks::server > Listening on 127.0.0.1:1080
2025-02-09T14:50:41.732Z INFO nym_socks5_client_core > Client startup finished!
2025-02-09T14:50:41.732Z INFO nym_socks5_client_core > The address of this client is: 6JQVBFqsFgYVV6wFLiVYLy7MMTXemjco1vV6W1gGj8qR.TyWB147xHeTSe2DJJa6KFJ61rfCcjAAdNycaEsw9djt@4namLaLcqCZ6irhn9yoUpLjk5hZeRcjqoLFSS89iGmQp
2025-02-09T14:50:41.732Z INFO nym_socks5_client_core::socks::server > Serving Connections...
2025-02-09T14:50:51.036Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.85 GiB
2025-02-09T14:50:58.842Z INFO nym_socks5_client_core::socks::client > Starting proxy for <vps ip>:22 (id: 12959175551759626190)
2025-02-09T14:51:01.023Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.85 GiB
2025-02-09T14:51:11.001Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.85 GiB
2025-02-09T14:51:21.048Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.84 GiB
2025-02-09T14:51:31.031Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.84 GiB
2025-02-09T14:51:33.855Z INFO nym_socks5_client_core::socks::client > Proxy for <vps ip>:22 is finished (id: 12959175551759626190)
2025-02-09T14:51:41.022Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.84 GiB
2025-02-09T14:51:51.020Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.84 GiB
2025-02-09T14:52:01.053Z INFO nym_gateway_client::bandwidth > remaining bandwidth: 63.84 GiB