xiaorouji / openwrt-passwall

7.22k stars 2.65k forks source link

[Bug]: 单独使用节点不可以科学上网,使用“xray/sing-box分流”使用这些节点可以科学上网。 #3381

Closed nowfire2024 closed 1 month ago

nowfire2024 commented 2 months ago

描述您遇到的bug

我不知道是不是bug。但我遇到这个问题,一直无法解决。 1、我是ipv4,ipv6的双栈环境,openwrt 23.5.4并使用了mwan3负载均衡。 2、我使用一个naive节点、一个trojan-go(trojan plus)节点。如果分别将其单独设置tcp节点(udp与tcp同),google、githube测试都可以通过,但无法科学上网。 3、使用xray、sing-box分流的方式使用这些节点,可以科学上网。 4、sing-box或者xray协议下使用这个trojan-go节点,并单独设置tcp节点(udp与tcp同),又可以科学上网。 不知道设置哪里有问题。

复现此Bug的步骤

我怀疑是这些节点的客户端,无法使用双栈环境。

您想要实现的目的

可以单独使用节点上网。

日志信息

2024-08-26 07:04:04 INF: [main] server address: 127.0.0.1#2080 2024-08-26 07:04:04 INF: [main] listen address: 0.0.0.0#1041 2024-08-26 07:04:04 INF: [main] listen address: ::1#1041 2024-08-26 07:04:04 INF: [main] udp session cache capacity: 256 2024-08-26 07:04:04 INF: [main] udp session idle timeout: 60 2024-08-26 07:04:04 INF: [main] number of worker threads: 1 2024-08-26 07:04:04 INF: [main] max file descriptor limit: 65535 2024-08-26 07:04:04 INF: [main] enable tcp transparent proxy 2024-08-26 07:04:04 INF: [main] enable udp transparent proxy 2024-08-26 07:04:04 INF: [main] verbose mode (affect performance) 2024-08-26 07:04:16 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.34#39562 2024-08-26 07:04:16 INF: [tcp_tproxy_accept_cb] target socket address: 44.238.10.22#80 2024-08-26 07:04:16 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:16 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:16 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:16 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:16 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:16 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:16 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:16 INF: [tcp_stream_payload_forward_cb] recv FIN from client stream, release ctx 2024-08-26 07:04:23 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.22#52011 2024-08-26 07:04:23 INF: [tcp_tproxy_accept_cb] target socket address: 23.215.7.8#443 2024-08-26 07:04:23 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:23 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:23 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:23 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:23 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:23 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:23 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:24 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.34#60720 2024-08-26 07:04:24 INF: [tcp_tproxy_accept_cb] target socket address: 52.10.134.54#80 2024-08-26 07:04:24 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:24 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:24 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:24 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:24 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:24 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:24 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:24 INF: [tcp_stream_payload_forward_cb] recv FIN from client stream, release ctx 2024-08-26 07:04:24 INF: [udp_tproxy_recvmsg_cb] recv from 10.0.0.34#47390, nrecv:72 2024-08-26 07:04:24 INF: [udp_tproxy_recvmsg_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:24 INF: [udp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:24 INF: [udp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:24 INF: [udp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:24 INF: [udp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:24 INF: [udp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:24 ERR: [udp_socks5_recv_proxyresp_cb] response.respcode:0x7(Command not supported) != SUCCEEDED 2024-08-26 07:04:24 INF: [udp_socks5_context_timeout_cb] context will be released, reason: manual 2024-08-26 07:04:34 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.34#39566 2024-08-26 07:04:34 INF: [tcp_tproxy_accept_cb] target socket address: 44.238.10.22#80 2024-08-26 07:04:34 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:34 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:34 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:34 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:34 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:34 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:34 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:34 INF: [tcp_stream_payload_forward_cb] recv FIN from client stream, release ctx 2024-08-26 07:04:41 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.22#52020 2024-08-26 07:04:41 INF: [tcp_tproxy_accept_cb] target socket address: 204.79.197.222#443 2024-08-26 07:04:41 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:41 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:41 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:41 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:41 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:41 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:41 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:42 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.34#60724 2024-08-26 07:04:42 INF: [tcp_tproxy_accept_cb] target socket address: 52.10.134.54#80 2024-08-26 07:04:42 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:42 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:42 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:42 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:42 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:42 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:42 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:42 INF: [tcp_stream_payload_forward_cb] recv FIN from client stream, release ctx 2024-08-26 07:04:48 INF: [tcp_tproxy_accept_cb] source socket address: 10.0.0.34#39570 2024-08-26 07:04:48 INF: [tcp_tproxy_accept_cb] target socket address: 44.238.10.22#80 2024-08-26 07:04:48 INF: [tcp_tproxy_accept_cb] try to connect to 127.0.0.1#2080 ... 2024-08-26 07:04:48 INF: [tcp_socks5_connect_cb] connect to 127.0.0.1#2080 succeeded 2024-08-26 07:04:48 INF: [tcp_socks5_send_authreq_cb] send to 127.0.0.1#2080, nsend:3 2024-08-26 07:04:48 INF: [tcp_socks5_recv_authresp_cb] recv from 127.0.0.1#2080, nrecv:2 2024-08-26 07:04:48 INF: [tcp_socks5_recv_authresp_cb] send to 127.0.0.1#2080, nsend:10 2024-08-26 07:04:48 INF: [tcp_socks5_recv_proxyresp_cb] recv from 127.0.0.1#2080, nrecv:10 2024-08-26 07:04:48 INF: [tcp_socks5_recv_proxyresp_cb] tunnel is ready, start forwarding ... 2024-08-26 07:04:49 INF: [tcp_stream_payload_forward_cb] recv FIN from client stream, release ctx

截图

屏幕截图 2024-08-26 070455

系统相关信息

passwall 4.78-1 openwrt 23.05.4 amd64。 chrome 127.0.6533.122 windows 11

其他信息

No response

github-actions[bot] commented 2 months ago

Stale Issue

shaw21003 commented 2 months ago

同样问题

github-actions[bot] commented 2 months ago

Stale Issue