yichya / luci-app-xray

(Almost) full feature Xray client for OpenWrt
Mozilla Public License 2.0
593 stars 488 forks source link

编译安装2.1.2透明代理规则与直通无效 #327

Closed JKSTAFF closed 11 months ago

JKSTAFF commented 1 year ago

使用官方OPENWRT 23.05分支集成编译luci-app-xray最新版本,有一正常透明代理的编译集成1.52版本的官方21.02作对照,以排除xray服务端和客户端的设置问题。VPS部署方式为vless+grpc+web组合,可用性经过验证。
打开transparent和sniffer,fast DNS为223.5.5.5,geosite:cn直通,secure DNS 8.8.8.8,geosite:geolocation-!cn代理。

访问google.com无法打开。日志如下:

daemon.info xray[27903]: 2023/08/12 14:30:40 [Warning] core: Xray 1.8.3 started
daemon.info xray[27903]: 2023/08/12 14:30:47 127.0.0.1:37595 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:47 127.0.0.1:52556 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:47 127.0.0.1:42812 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:47 127.0.0.1:54535 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:47 DNS accepted udp:8.8.8.8:53 [dns_conf_inbound -> tcp_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:47 DNS accepted udp:223.5.5.5:53 [dns_conf_inbound -> direct]
daemon.info xray[27903]: 2023/08/12 14:30:47 UDP:223.5.5.5:53 got answer: VPS的域名 -> [VPS的IP] 25.12459ms
daemon.info xray[27903]: 2023/08/12 14:30:48 127.0.0.1:54248 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:48 127.0.0.1:47429 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:48 127.0.0.1:47478 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:48 127.0.0.1:45477 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:48 127.0.0.1:38348 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:49 UDP:223.5.5.5:53 got answer: www.gstatic.com -> [203.208.50.98, 203.208.50.98] 24.82084ms
daemon.info xray[27903]: 2023/08/12 14:30:51 DNS accepted udp:119.29.29.29:53 [dns_conf_inbound -> direct]
daemon.info xray[27903]: 2023/08/12 14:30:52 127.0.0.1:54535 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:52 127.0.0.1:42812 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:52 127.0.0.1:52556 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:52 127.0.0.1:37595 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:53 UDP:223.5.5.5:53 got answer: VPS的域名 -> [VPS的ip] 24.258264ms
daemon.info xray[27903]: 2023/08/12 14:30:54 127.0.0.1:54248 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:54 127.0.0.1:38348 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:54 127.0.0.1:47478 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:54 127.0.0.1:47429 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:30:54 [Warning] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/grpc: failed to dial gRPC > transport/internet/grpc: Cannot dial gRPC > rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp VPS的ip:443: i/o timeout"] > common/retry: all retry attempts failed

访问baidu.com无法打开。日志如下:

baidu.com -> [110.242.68.66, 39.156.66.10] 23.661869ms
daemon.info xray[27903]: 2023/08/12 14:37:37 127.0.0.1:42787 accepted udp:119.29.29.29:53 [dns_server_inbound_5302 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:37:37 127.0.0.1:34642 accepted udp:119.29.29.29:53 [dns_server_inbound_5301 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:37:42 127.0.0.1:42787 accepted udp:119.29.29.29:53 [dns_server_inbound_5303 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:37:43 127.0.0.1:34642 accepted udp:119.29.29.29:53 [dns_server_inbound_5302 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:37:48 127.0.0.1:34642 accepted udp:119.29.29.29:53 [dns_server_inbound_5303 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:06 UDP:223.5.5.5:53 cache HIT: VPS的域名 -> [VPS的ip]
daemon.info xray[27903]: 2023/08/12 14:38:10 127.0.0.1:41420 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:10 127.0.0.1:44101 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:13 127.0.0.1:54813 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:14 127.0.0.1:55205 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:15 127.0.0.1:42604 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:16 127.0.0.1:49457 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:17 127.0.0.1:35750 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
daemon.info xray[27903]: 2023/08/12 14:38:30 127.0.0.1:34346 accepted udp:119.29.29.29:53 [dns_server_inbound_5300 -> dns_server_outbound]
Sat Aug 12 22:38:30 2023 user.info mwan3track[2363]: Check (ping) failed for target "1.1.1.1" on interface wan (br-wan). Current score: 10
Sat Aug 12 22:38:34 2023 user.info mwan3track[2363]: Check (ping) failed for target "208.67.222.222" on interface wan (br-wan). Current score: 10
yichya commented 1 year ago

不开 sniffer 正常不