zhboner / realm

A network relay tool
MIT License
1.54k stars 285 forks source link

编译了一下arm版,能运行,没报错,但转不出去 #66

Closed fyhong closed 2 years ago

fyhong commented 2 years ago

admin@R6400-9F37:/tmp# ./realm -l 0.0.0.0:2087 -r 127.0.0.1:69 --log-level debug nofile limit: soft=1024, hard=1024 log: level=debug, output=stdout dns: mode=ipv4_and_ipv6, protocol=tcp+udp, min-ttl=0, max-ttl=86400, cache-size=32, servers=system inited: 0.0.0.0:2087 -> [127.0.0.1:69]; options: send-proxy=false, send-proxy-version=2, accept-proxy=false, accept-proxy-timeout=5s; connect-timeout=5s, associate-timeout=30s;

[2022-05-17][17:21:39][realm_core::tcp::socket][DEBUG][tcp]127.0.0.1:69 resolved as 127.0.0.1:69 [2022-05-17][17:21:39][realm_core::tcp::socket][DEBUG][tcp]connect to 127.0.0.1:69 as 127.0.0.1:69 [2022-05-17][17:21:39][realm_core::tcp::middle][INFO][tcp]152.70.244.100:60560 => 127.0.0.1:69 as 127.0.0.1:69 [2022-05-17][17:21:39][realm_core::tcp::middle][DEBUG][tcp]forward error: Invalid argument (os error 22), ignored [2022-05-17][17:21:39][realm_core::tcp][DEBUG][tcp]152.70.244.100:60560 => 127.0.0.1:69, finish

fyhong commented 2 years ago

转本地不行,转外部IP也不行。 admin@R6400-9F37:/tmp# ./realm -l 0.0.0.0:2087 -r hk3.tvhk.top:22 --log-level debug nofile limit: soft=1024, hard=1024 log: level=debug, output=stdout dns: mode=ipv4_and_ipv6, protocol=tcp+udp, min-ttl=0, max-ttl=86400, cache-size=32, servers=system inited: 0.0.0.0:2087 -> [hk3.tvhk.top:22]; options: send-proxy=false, send-proxy-version=2, accept-proxy=false, accept-proxy-timeout=5s; connect-timeout=5s, associate-timeout=30s; [2022-05-17][17:24:23][trust_dns_proto::xfer::dns_handle][DEBUG]querying: hk3.tvhk.top A [2022-05-17][17:24:23][trust_dns_resolver::name_server::name_server_pool][DEBUG]sending request: [Query { name: Name("hk3.tvhk.top"), query_type: A, query_class: IN }] [2022-05-17][17:24:23][trust_dns_resolver::name_server::name_server][DEBUG]reconnecting: NameServerConfig { socket_addr: 127.0.0.1:53, protocol: Udp, tls_dns_name: None, trust_nx_responses: false, bind_addr: None } [2022-05-17][17:24:23][trust_dns_proto::xfer][DEBUG]enqueueing message: [Query { name: Name("hk3.tvhk.top"), query_type: A, query_class: IN }] [2022-05-17][17:24:23][trust_dns_proto::udp::udp_stream][DEBUG]created socket successfully [2022-05-17][17:24:23][trust_dns_proto::udp::udp_client_stream][DEBUG]received message id: 57710 [2022-05-17][17:24:23][trust_dns_resolver::error][DEBUG]Response:57710:RD,RA:NoError:1/0/0 [2022-05-17][17:24:23][trust_dns_resolver::error][DEBUG]Response:57710:RD,RA:NoError:1/0/0 [2022-05-17][17:24:23][realm_core::tcp::socket][DEBUG][tcp]hk3.tvhk.top:22 resolved as 47.242.29.111:22 [2022-05-17][17:24:23][realm_core::tcp::socket][DEBUG][tcp]connect to hk3.tvhk.top:22 as 47.242.29.111:22 [2022-05-17][17:24:23][realm_core::tcp::middle][INFO][tcp]14.126.207.216:64333 => hk3.tvhk.top:22 as 47.242.29.111:22 [2022-05-17][17:24:23][realm_core::tcp::middle][DEBUG][tcp]forward error: Invalid argument (os error 22), ignored [2022-05-17][17:24:23][realm_core::tcp][DEBUG][tcp]14.126.207.216:64333 => hk3.tvhk.top:22, finish

fyhong commented 2 years ago

根据这个说的,我重新编译2.1.4版版本,一切正常了. 新版不行 https://github.com/zhboner/realm/issues/63