ShadowsocksR-Live / shadowsocksr-native

翻墙 从容穿越党国敏感日 ShadowsocksR (SSRoT) native implementation for all platforms, GFW terminator
https://github.com/ShadowsocksR-Live/shadowsocksr-native/wiki
GNU General Public License v3.0
2.74k stars 762 forks source link

Connection Error: connection timed out after completing DNS requests #237

Closed lyzhang0113 closed 1 year ago

lyzhang0113 commented 1 year ago

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-native are you using?

latest 0.9.3

What operating system are you using?

windows 11 x64 (client) + Synology DSM (server)

What did you do?

trying to connect to netease music server (or any other servers) via my remote SSR server

What did you expect to see?

normal conenction

What did you see instead?

ssr-client 2022/09/06 11:15  info  ShadowsocksR native client

ssr-client 2022/09/06 11:15  info  remote server    nas.************:7080
ssr-client 2022/09/06 11:15  info  method           aes-256-cfb
ssr-client 2022/09/06 11:15  info  password         Zl********
ssr-client 2022/09/06 11:15  info  protocol         auth_sha1_v4
ssr-client 2022/09/06 11:15  info  protocol_param   32
ssr-client 2022/09/06 11:15  info  obfs             http_simple
ssr-client 2022/09/06 11:15  info  udp relay        no

ssr-client 2022/09/06 11:15  info  listening on     0.0.0.0:1080

ssr-client 2022/09/06 11:16  info  ==== tunnel created     count   1 ====
ssr-client 2022/09/06 11:16  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2022/09/06 11:16  info  socks5 handshake normal style called
ssr-client 2022/09/06 11:16  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2022/09/06 11:16  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2022/09/06 11:16  info  tunnel_stage_s5_response_done
ssr-client 2022/09/06 11:16  info  tunnel_stage_client_first_pkg
ssr-client 2022/09/06 11:16  info  ++++ connecting  "103.126.92.132:80" ... ++++
ssr-client 2022/09/06 11:16  info  tunnel_stage_resolve_ssr_server_host_done -- Upstream hostname DNS lookup has completed.
ssr-client 2022/09/06 11:16 error  connect failed about _server_ "103.126.92.132:80": connection timed out - tunnel_stage_resolve_ssr_server_host_done -- Upstream hostname DNS lookup has completed.
ssr-client 2022/09/06 11:16  info  ---- disconnected  "103.126.92.132:80" ----
ssr-client 2022/09/06 11:16  info  ==== tunnel destroyed   count   0 ====

There is an error after it successfully looked up a DNS request.

What is your config in detail (with all sensitive info masked)?

{
    "password": "Zl********",
    "method": "aes-256-cfb",
    "protocol": "auth_sha1_v4", // "origin", // 
    "protocol_param": "32",
    "obfs": "http_simple", // "plain", // 
    "obfs_param": "",

    "udp": false,
    "idle_timeout": 300,
    "connect_timeout": 6,
    "udp_timeout": 6,

    "server_settings": {
        "listen_address": "0.0.0.0",
        "listen_port": 12475
    },

    "client_settings": {
        "server": "nas.************",
        "server_port": 7080,
        "listen_address": "0.0.0.0",
        "listen_port": 1080
    },

    "over_tls_settings": {
        "enable": false,
        "server_domain": "goodsitesample.com",
        "path": "/udg151df/",
        "root_cert_file": ""
    }
}
ssrlive commented 1 year ago

I hope you use SSRoT protocol instead of traditional SSR that is hacked by GFW.