How I tested Xray REALITY #1702
Replies: 6 comments 10 replies
-
谢谢你写的详细步骤,Xray-core 第一个 REALITY 的 commit,服务端代码可能会陷入死循环,已经在第二个 commit 修复,建议用最新版本 (模板和代码很快会更新,你可以等它们更新后再修改文章) |
Beta Was this translation helpful? Give feedback.
-
这个网址是个人的喜好,你可以替换成其它的 ^_^ |
Beta Was this translation helpful? Give feedback.
-
咨询一下,根据example加了一个简单的配置试了一下,reality配置上面这个dest的url是第三方的网站,如果本地浏览器https访问服务器的域名或者服务器的ip,就会显示这个第三方dest的证书?那不论是域名或ip,好像都无法匹配证书?chrome就有一个tls的告警了,是不是具有比较明显的特征? |
Beta Was this translation helpful? Give feedback.
-
Tutorial has been updated with screenshot of v2rayN: https://cscot.pages.dev/2023/03/02/Xray-REALITY-tutorial/ With thanks to @RPRX, @chika0801, @2dust, and all other contributors to this post. |
Beta Was this translation helpful? Give feedback.
-
@computerscot Thank you for the example.
Thank you |
Beta Was this translation helpful? Give feedback.
-
This parameter is briefly explained in the configuration notes though. We usually leave this parameter blank (no value written)
random and randomized has been explained before. randomized is, as I recall, a randomly generated one. I personally don't recommend using these 2. You choose the current one, such as chrome, and you're good to go. |
Beta Was this translation helpful? Give feedback.
-
Greetings. This is the procedure I used to successfully test Xray REALITY.
Beta builds of Xray-core
I used the build "THE NEXT FUTURE becomes THE REALITY NOW" from https://github.com/XTLS/Xray-core/actions/runs/4185805260.
Xray-linux-64.zip
is at https://github.com/XTLS/Xray-core/suites/11000957785/artifacts/557837209Unzip the
.zip
file, and set the execution bit onxray
:For the client I used
Xray-windows-64.zip
from https://github.com/XTLS/Xray-core/suites/11000957785/artifacts/557837230Generate parameters
On the Linux server, generate a universally unique id with
./xray uuid
. Example of output:Plug the id into both the server and the client configuration files.
Generate a public-private key pair with
./xray x25519
. Example of output:Plug the private key into the server configuration file, and the public key into the client configuration file.
Choose a shortId of up to 16 hexadecimal characters. Example:
Plug this into the server and client configuration files.
Xray configuration on the server
From https://github.com/XTLS/REALITY#readme the possible properties of
realitySettings
on the server are as follows.show
dest
xver
serverNames
privateKey
minClientVer
maxClientVer
maxTimeDiff
shortIds
I create a server configuration file
config.json
based on https://github.com/chika0801/Xray-examples/blob/main/VLESS-XTLS-uTLS-REALITY/config_server.json. In the template below, Xray listens on0.0.0.0:443
.Run Xray on the server
I ran the Xray server with the commands:
Detach from the
screen
session with Ctrl+a followed by d.Xray configuration on the client
Unzip
Downloads\Xray-windows-64.zip
.From https://github.com/XTLS/REALITY#readme the possible properties of
realitySettings
on the client are as follows.show
fingerprint
serverName
publicKey
shortId
spiderX
Based on https://github.com/chika0801/Xray-examples/blob/main/VLESS-XTLS-uTLS-REALITY/config_client.json I created a client configuration file
Downloads\Xray-windows-64\config.json
. Here is a template into which you can substitute your own values:If you use Windows Notepad as your editor, remember to save
Downloads\Xray-windows-64\config.json
without the usual.txt
on the end of its name.Run Xray on the client
Open Windows PowerShell and run the client:
Configure your browser to use the SOCKS proxy on
127.0.0.1
port10808
.Beta Was this translation helpful? Give feedback.
All reactions