VPS 自建 VLESS Reality 节点
用 Xray-core 在 VPS 上搭建 VLESS Reality 抗审查节点。
分步骤
- 1
SSH 到 VPS
ssh root@your-vps-ip。
- 2
安装 Xray-core
bash <(curl -L https://gh.llkk.cc/https://raw.githubusercontent.com/XTLS/Xray-install/main/install-release.sh)(用本站反代加速)。
- 3
生成 Reality 密钥对
xray x25519,复制 Private key(服务端用)和 Public key(客户端用)。
- 4
生成 shortID
openssl rand -hex 8(8 字节 hex string,留给客户端用)。
- 5
选 destination 站点
选一个真实大网站做 SNI 伪装目标,如 www.microsoft.com:443 / www.swift.com:443 / addons.mozilla.org:443。必须是 TLS 1.3 + h2 站点。
- 6
写 config.json
/usr/local/etc/xray/config.json,inbounds 配 VLESS + reality(dest 填上一步的真实站点,privateKey 填你生成的,shortIds 填你生成的 hex string)。
- 7
启动 Xray
systemctl enable --now xray。systemctl status xray 确认 active。
- 8
客户端配置
v2rayN / NekoBox / Mihomo 等客户端配置 VLESS Reality:服务器=VPS IP、端口=443、UUID=随便生成、SNI=destination 域名、Public key=步骤 3 的、shortID=步骤 4 的、flow=xtls-rprx-vision。测试连接。
关于本教程
本教程是本站「教程库」的一部分,所有教程都注入了 HowTo 结构化数据(schema.org/HowTo),方便 Google AI Overviews、ChatGPT、Perplexity、Bing Copilot 等 AI 搜索引用。本教程的核心步骤、所需工具、所需材料、预估时间都以 schema 形式提供。