# REALITY 从零到一极简配置手册 适用场景:VLESS + REALITY + 无回落 服务器:Debian12 ## 第一步:安装 Xray 方法1: curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh | bash -s install 方法2: #下载脚本 curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh -o install.sh #添加执行权限 chmod +x install.sh #执行安装 ./install.sh install ## 第二步:生成参数 #生成密钥对(只需一次) xray x25519 #记录 Private key 和 Public key #生成 UUID(每人一个) xray uuid #生成 shortId(每人一个) openssl rand -hex 8 ## 第三步:配置 Xray 编辑 /usr/local/etc/xray/config.json: ```json { "log": { "loglevel": "warning" }, "inbounds": [ { "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "你的UUID-1", "flow": "xtls-rprx-vision" }, { "id": "你的UUID-2", "flow": "xtls-rprx-vision" } ], "decryption": "none" }, "streamSettings": { "network": "tcp", "security": "reality", "realitySettings": { "dest": "www.bilibili.com:443", "serverNames": [ "www.bilibili.com", "tyo.hayashiei.top" ], "privateKey": "你的Private Key", "shortIds": [ "你的shortId-1", "你的shortId-2" ] } } } ], "outbounds": [ { "protocol": "freedom", "tag": "direct" } ] } ``` 关键点: • dest:伪装目标 • serverNames:必须同时包含伪装目标和你自己的域名 • shortIds 和 clients 数量对应,但无需一一配对 ## 第四步:启动 Xray systemctl enable xray systemctl restart xray systemctl status xray ## 第五步:客户端链接 将下面链接中的占位符替换成你的信息: vless://你的UUID@你的服务器IP:443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=tyo.hayashiei.top&fp=chrome&pbk=你的PublicKey&sid=你的shortId&type=tcp&headerType=none#REALITY_节点名 导入方式: 小火箭/v2rayN/Hiddify:复制链接 → 打开 App → 自动弹窗导入 手动配置:按表格填好类型、地址、端口、UUID、流控、传输、安全、SNI、公钥、shortId ## 第六步:享受成果 手机电脑同时在线 ✅ 朋友一键导入 ✅ GFW 看到你在刷 B站 ✅ 不用证书、不用续期、不用回落 ✅