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.88k stars 3.98k forks source link

Cannot connect in reality mode #3912

Closed eaglesharkmayonnaise closed 1 month ago

eaglesharkmayonnaise commented 1 month ago

Integrity requirements

Description

This is the server log. Sorry I can't provide other information now.

Xray 24.9.19 (Xray, Penetrates Everything.) Custom (go1.23.1 linux/amd64)
A unified platform for anti-censorship.
2024/10/15 18:09:14 [Info] infra/conf/serial: Reading config: &{Name:/config.json Format:json}
REALITY remoteAddr: ip.70:40433
REALITY remoteAddr: ip.70:40433  hs.c.AuthKey[:16]: [187 179 138 213 191 115 114 238 73 73 91 248 44 178 66 219] AEAD: *aes.gcmAsm
REALITY remoteAddr: ip.70:40433  hs.c.ClientVer: [1 8 24]
REALITY remoteAddr: ip.70:40433  hs.c.ClientTime: 2024-10-15 18:13:08 +0800 CST
REALITY remoteAddr: ip.70:40433  hs.c.ClientShortId: [0 0 0 0 0 0 0 0]
REALITY remoteAddr: ip.70:40433  hs.c.conn == conn: true
REALITY remoteAddr: ip.70:40434  hs.c.AuthKey[:16]: [166 201 47 152 150 138 177 250 96 90 13 148 106 83 92 63]   AEAD: *aes.gcmAsm
REALITY remoteAddr: ip.70:40434  hs.c.ClientVer: [1 8 24]
REALITY remoteAddr: ip.70:40434  hs.c.ClientTime: 2024-10-15 18:13:08 +0800 CST
REALITY remoteAddr: ip.70:40434  hs.c.ClientShortId: [0 0 0 0 0 0 0 0]
REALITY remoteAddr: ip.70:40434  hs.c.conn == conn: true
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 4096     Server Hello: 127
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 3969     Change Cipher Spec: 6
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 3963     Encrypted Extensions: 51
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 3912     Certificate: 4759
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 4096     Server Hello: 127
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 3969     Change Cipher Spec: 6
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 3963     Encrypted Extensions: 51
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 3912     Certificate: 4759
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 5119     Certificate: 4759
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 360      Certificate Verify: 286
REALITY remoteAddr: ip.70:40434  len(s2cSaved): 74       Finished: 74
REALITY remoteAddr: ip.70:40434  hs.handshake() err: <nil>
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 5119     Certificate: 4759
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 360      Certificate Verify: 286
REALITY remoteAddr: ip.70:40433  len(s2cSaved): 74       Finished: 74
REALITY remoteAddr: ip.70:40433  hs.handshake() err: <nil>
REALITY remoteAddr: ip.70:40434  hs.readClientFinished() err: <nil>
REALITY remoteAddr: ip.70:40434  hs.c.handshakeStatus: true
REALITY remoteAddr: ip.70:40433  hs.readClientFinished() err: <nil>
REALITY remoteAddr: ip.70:40433  hs.c.handshakeStatus: true
REALITY remoteAddr: ip.70:40440
REALITY remoteAddr: ip.70:40438
REALITY remoteAddr: ip.70:40438  hs.c.AuthKey[:16]: [237 62 218 158 139 44 207 21 112 221 246 210 96 102 217 205]        AEAD: *aes.gcmAsm
REALITY remoteAddr: ip.70:40438  hs.c.ClientVer: [1 8 24]
REALITY remoteAddr: ip.70:40438  hs.c.ClientTime: 2024-10-15 18:13:08 +0800 CST
REALITY remoteAddr: ip.70:40438  hs.c.ClientShortId: [0 0 0 0 0 0 0 0]
REALITY remoteAddr: ip.70:40438  hs.c.conn == conn: true
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 4096     Server Hello: 127
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 3969     Change Cipher Spec: 6
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 3963     Encrypted Extensions: 51
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 3912     Certificate: 4759
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 5119     Certificate: 4759
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 360      Certificate Verify: 286
REALITY remoteAddr: ip.70:40438  len(s2cSaved): 74       Finished: 74
REALITY remoteAddr: ip.70:40438  hs.handshake() err: <nil>
REALITY remoteAddr: ip.70:40440  hs.c.AuthKey[:16]: [21 47 13 49 35 224 105 9 63 122 242 109 101 82 196 222]     AEAD: *aes.gcmAsm
REALITY remoteAddr: ip.70:40440  hs.c.ClientVer: [1 8 24]
REALITY remoteAddr: ip.70:40440  hs.c.ClientTime: 2024-10-15 18:13:08 +0800 CST
REALITY remoteAddr: ip.70:40440  hs.c.ClientShortId: [0 0 0 0 0 0 0 0]
REALITY remoteAddr: ip.70:40440  hs.c.conn == conn: true
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 4096     Server Hello: 127
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 3969     Change Cipher Spec: 6
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 3963     Encrypted Extensions: 51
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 3912     Certificate: 4759
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 5119     Certificate: 4759
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 360      Certificate Verify: 286
REALITY remoteAddr: ip.70:40440  len(s2cSaved): 74       Finished: 74
REALITY remoteAddr: ip.70:40440  hs.handshake() err: <nil>
REALITY remoteAddr: ip.70:40440  hs.readClientFinished() err: <nil>
REALITY remoteAddr: ip.70:40440  hs.c.handshakeStatus: true
REALITY remoteAddr: ip.70:40438  hs.readClientFinished() err: <nil>
REALITY remoteAddr: ip.70:40438  hs.c.handshakeStatus: true

Reproduction Method

na

Client config


na

Server config


na

Client log


na

Server log


na
eaglesharkmayonnaise commented 1 month ago

Now it's fine again, I didn't change anything, firewall reset the connection for a short time?

REALITY remoteAddr: ip.70:40211  hs.c.AuthKey[:16]: [145 250 224 155 180 176 235 17 71 226 226 183 170 116 110 158]      AEAD: *aes.gcmAsm
REALITY remoteAddr: ip.70:40211  hs.c.ClientVer: [1 8 24]
REALITY remoteAddr: ip.70:40211  hs.c.ClientTime: 2024-10-15 18:09:41 +0800 CST
REALITY remoteAddr: ip.70:40211  hs.c.ClientShortId: [0 0 0 0 0 0 0 0]
REALITY remoteAddr: ip.70:40211  hs.c.conn == conn: true
REALITY remoteAddr: ip.70:40211  len(s2cSaved): 5303     Server Hello: 127
REALITY remoteAddr: ip.70:40211  len(s2cSaved): 5176     Change Cipher Spec: 6
REALITY remoteAddr: ip.70:40211  len(s2cSaved): 5170     Encrypted Extensions: 51
REALITY remoteAddr: ip.70:40211  len(s2cSaved): 5119     Certificate: 4759
REALITY remoteAddr: ip.70:40211  len(s2cSaved): 360      Certificate Verify: 286
REALITY remoteAddr: ip.70:40211  len(s2cSaved): 74       Finished: 74
REALITY remoteAddr: ip.70:40211  hs.handshake() err: <nil>
REALITY remoteAddr: ip.70:40211  hs.readClientFinished() err: <nil>
REALITY remoteAddr: ip.70:40211  hs.c.handshakeStatus: true
REALITY remoteAddr: ip.70:40218
REALITY remoteAddr: ip.70:40218  hs.c.AuthKey[:16]: [36 146 95 141 12 159 196 154 107 14 98 3 239 219 5 169]     AEAD: *aes.gcmAsm
REALITY remoteAddr: ip.70:40218  hs.c.ClientVer: [1 8 24]
REALITY remoteAddr: ip.70:40218  hs.c.ClientTime: 2024-10-15 18:09:52 +0800 CST
REALITY remoteAddr: ip.70:40218  hs.c.ClientShortId: [0 0 0 0 0 0 0 0]
REALITY remoteAddr: ip.70:40218  hs.c.conn == conn: true
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 4096     Server Hello: 127
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 3969     Change Cipher Spec: 6
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 3963     Encrypted Extensions: 51
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 3912     Certificate: 4759
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 5119     Certificate: 4759
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 360      Certificate Verify: 286
REALITY remoteAddr: ip.70:40218  len(s2cSaved): 74       Finished: 74
REALITY remoteAddr: ip.70:40218  hs.handshake() err: <nil>
REALITY remoteAddr: ip.70:40218  hs.readClientFinished() err: read tcp 172.17.0.2:443->ip.70:40218: use of closed network connection
REALITY remoteAddr: ip.70:40218  hs.c.handshakeStatus: false
REALITY remoteAddr: ip.70:40218  time.Since(start): 20.005335492s        n: 0    err: EOF
REALITY remoteAddr: ip.70:40235