VPS 使用 Xray 搭建 VLESS+Reality 节点
安装 xray bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install 生成 uuid xray uuid 输出示例:8653f110-61d8-4363-8c5c-1224fa1bc18b 生成 Reality 密钥对 # 生成 X25519 公私钥对 xray x25519 输出示例: PrivateKey: CDQnBSjLb45viCBJTVt7n5ZmImy80NW7ovdlqRPi2k Password (PublicKey): nZY-gSIXu1N6lxpxzodqf_hc08UQBEkqiLNN5hv8TQ Hash32: VXqfOosY-X1NwQTfMx7Vfd3kxlRvvxJYM5Vrac9WNJU **重要:请保存好这两个密钥!** - Private key(私钥):配置在服务器端 - Password(原 Public Key -> 公钥):配置在客户端 生成 Short ID # 生成 16 位十六进制 short_id openssl rand -hex 8 输出示例:a7c581a4431eca74 编辑 Xray 配置文件 vim /usr/local/etc/xray/config.json 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 { "log": { "loglevel": "info" }, "inbounds": [ { "tag": "VLESS-Vision-REALITY", "listen": "::", "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "8653f110-61d8-4363-8c5c-1224fa1bc18b", // 填入刚才生成的 UUID "flow": "xtls-rprx-vision" } ], "decryption": "none" }, "streamSettings": { "network": "raw", "security": "reality", "realitySettings": { "show": false, "dest": "www....