XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
25.48k stars 3.94k forks source link

使用REALITY,服务端为sing-box程序,客户端为Xray-core时,打开网页偶发报错 #1713

Closed chika0801 closed 1 year ago

chika0801 commented 1 year ago

sing-box 版本:1.2-beta5,作为服务端core,配置示例

Xray-box 版本:https://github.com/XTLS/Xray-core/actions/runs/4274762029 ,作客户端core,使用v2rayN,配置示例

Chrome使用http代理进入v2rayN,打开网页,随机出现如下图现象

1

此时不用点刷新,约1秒后网页可自己再次刷新出来。手动点刷新也能刷出网页。如果这网站遇到了1次,下次再打开这网站,可能复现,也可能不会再复现。

客户端如果用sing-box,此现象消失。

chika0801 commented 1 year ago

以访问javdb.com为例,v2rayN 客户端日志如下


2023/02/26 22:53:22 [Info] [2946530748] proxy/http: request to Method [CONNECT] Host [javdb.com:443] with URL [//javdb.com:443]
2023/02/26 22:53:22 [Info] [2946530748] app/dispatcher: sniffed domain: javdb.com
2023/02/26 22:53:22 127.0.0.1:8298 accepted //javdb.com:443 [proxy]
2023/02/26 22:53:22 [Info] [2946530748] app/dispatcher: taking detour [proxy] for [tcp:javdb.com:443]
2023/02/26 22:53:22 [Info] [2946530748] transport/internet/tcp: dialing TCP to tcp:[VPS的IP]:443
2023/02/26 22:53:22 [Debug] transport/internet: dialing to tcp:[VPS的IP]:443
REALITY localAddr: 192.168.10.10:8299   hello.sessionId[:16]: [1 7 5 0 99 251 114 98 213 57 1 103 234 200 244 178]
REALITY localAddr: 192.168.10.10:8299   hello.sessionId: [54 108 7 96 51 193 244 118 240 2 87 225 123 20 108 174 137 92 115 80 156 167 233 227 75 159 165 150 214 220 247 136]
REALITY localAddr: 192.168.10.10:8299   uConn.AuthKey: [91 174 223 245 152 65 97 86 44 126 71 104 114 220 7 234 207 223 45 224 5 202 250 10 219 172 10 141 138 235 156 243]
REALITY localAddr: 192.168.10.10:8299   uConn.Verified: true
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/outbound: tunneling request to tcp:javdb.com:443 via [VPS的IP]:443
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: XtlsFilterTls found tls client hello! 517
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: XtlsPadding 517 628 0
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: Xtls Unpadding new block0 16 content 4585 padding 0 0
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: XtlsFilterTls found tls 1.3! 2351 TLS_AES_128_GCM_SHA256
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: XtlsPadding 64 1033 0
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: XtlsPadding 98 954 2
2023/02/26 22:53:22 [Info] [2946530748] proxy/vless/encoding: XtlsWrite writeV 0 1057 0
2023/02/26 22:53:23 [Info] [433664245] app/proxyman/inbound: connection ends > proxy/http: connection ends > context canceled
2023/02/26 22:53:23 [Info] [919506186] app/proxyman/inbound: connection ends > proxy/http: connection ends > context canceled
2023/02/26 22:53:23 [Info] [2809403031] app/proxyman/inbound: connection ends > proxy/http: connection ends > context canceled
2023/02/26 22:53:24 [Info] [2946530748] app/proxyman/inbound: connection ends > proxy/http: connection ends > context canceled
2023/02/26 22:53:25 [Info] [955447909] proxy/http: request to Method [CONNECT] Host [javdb.com:443] with URL [//javdb.com:443]
2023/02/26 22:53:25 [Info] [955447909] app/dispatcher: sniffed domain: javdb.com
2023/02/26 22:53:25 127.0.0.1:8302 accepted //javdb.com:443 [proxy]
2023/02/26 22:53:25 [Info] [955447909] app/dispatcher: taking detour [proxy] for [tcp:javdb.com:443]
2023/02/26 22:53:25 [Info] [955447909] transport/internet/tcp: dialing TCP to tcp:[VPS的IP]:443
2023/02/26 22:53:25 [Debug] transport/internet: dialing to tcp:[VPS的IP]:443
REALITY localAddr: 192.168.10.10:8303   hello.sessionId[:16]: [1 7 5 0 99 251 114 102 213 57 1 103 234 200 244 178]
REALITY localAddr: 192.168.10.10:8303   hello.sessionId: [189 169 76 34 18 47 17 62 29 11 179 94 102 242 204 114 124 151 34 75 45 138 197 99 155 250 118 58 140 254 157 148]
REALITY localAddr: 192.168.10.10:8303   uConn.AuthKey: [213 62 130 179 108 25 53 178 174 144 194 7 119 104 38 108 133 3 154 225 61 255 56 225 248 90 119 109 148 199 216 129]
REALITY localAddr: 192.168.10.10:8303   uConn.Verified: true
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/outbound: tunneling request to tcp:javdb.com:443 via [VPS的IP]:443
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: XtlsFilterTls found tls client hello! 517
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: XtlsPadding 517 517 0
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: Xtls Unpadding new block0 16 content 4585 padding 0 0
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: XtlsFilterTls found tls 1.3! 2351 TLS_AES_128_GCM_SHA256
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: XtlsPadding 64 1251 0
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: Xtls Unpadding new block0 0 content 512 padding 751 2
2023/02/26 22:53:26 [Info] [955447909] proxy/vless/encoding: XtlsRead readV
chika0801 commented 1 year ago

服务端为sing-box日志如下

+0800 2023-02-26 22:53:23 INFO [1584925022] inbound/vless[vless-in]: inbound connection from [客户端的IP]:8299
+0800 2023-02-26 22:53:23 DEBUG [1584925022] dns: lookup domain www.lovelive-anime.jp
+0800 2023-02-26 22:53:23 DEBUG [1584925022] dns: lookup succeed for www.lovelive-anime.jp: 18.155.202.25 18.155.202.107 18.155.202.94 18.155.202.72
+0800 2023-02-26 22:53:23 INFO [215660051] inbound/vless[vless-in]: [0] inbound connection to javdb.com:443
+0800 2023-02-26 22:53:23 DEBUG [215660051] router: sniffed protocol: tls, domain: javdb.com
+0800 2023-02-26 22:53:23 DEBUG [215660051] dns: lookup domain javdb.com
+0800 2023-02-26 22:53:23 INFO [215660051] dns: lookup succeed for javdb.com: 172.67.195.92 104.21.49.230
+0800 2023-02-26 22:53:23 DEBUG [215660051] dns: resolved [172.67.195.92 104.21.49.230]
+0800 2023-02-26 22:53:23 INFO [215660051] outbound/direct[direct]: outbound connection to javdb.com:443
+0800 2023-02-26 22:53:24 DEBUG [1584925022] inbound/vless[vless-in]: connection closed: process connection from [客户端的IP]:8299: upload: EOF | download: EOF
+0800 2023-02-26 22:53:24 DEBUG [1506577067] inbound/vless[vless-in]: connection closed: process connection from [客户端的IP]:8297: upload: EOF | download: EOF
+0800 2023-02-26 22:53:27 INFO [2067921948] inbound/vless[vless-in]: inbound connection from [客户端的IP]:8303
+0800 2023-02-26 22:53:27 DEBUG [2067921948] dns: lookup domain www.lovelive-anime.jp
+0800 2023-02-26 22:53:27 DEBUG [2067921948] dns: lookup succeed for www.lovelive-anime.jp: 18.155.202.25 18.155.202.107 18.155.202.94 18.155.202.72
+0800 2023-02-26 22:53:27 INFO [972021577] inbound/vless[vless-in]: [0] inbound connection to javdb.com:443
+0800 2023-02-26 22:53:27 DEBUG [972021577] router: sniffed protocol: tls, domain: javdb.com
+0800 2023-02-26 22:53:27 DEBUG [972021577] dns: lookup domain javdb.com
+0800 2023-02-26 22:53:27 INFO [972021577] dns: lookup succeed for javdb.com: 172.67.195.92 104.21.49.230
+0800 2023-02-26 22:53:27 DEBUG [972021577] dns: resolved [172.67.195.92 104.21.49.230]
+0800 2023-02-26 22:53:27 INFO [972021577] outbound/direct[direct]: outbound connection to javdb.com:443
RPRX commented 1 year ago

你不觉得这个 issue 应当发到 sing-box 的 issue 区吗

Fangliding commented 1 year ago

@RPRX 答案是两边都发

chika0801 commented 1 year ago

~你不觉得这个 issue 应当发到 sing-box 的 issue 区吗~

客户端如果用sing-box 此现象消失。我发sing-box区吧

RPRX commented 1 year ago

双端均为 Xray-core 时没有此问题,那么就是其它实现的问题,发到这里有啥用

chika0801 commented 1 year ago

双端均为 Xray-core 时没有此问题,那么就是其它实现的问题,发到这里有啥用

两端均为 xray-core 无此现象。:smile:

ZhuangJiayu commented 1 year ago

这个访问示例网址很秀啊