zh
Xray VPS托管:VLESS+Reality协议配置指南
Xray是从V2Ray派生的高性能代理框架,引入了革命性的Reality协议。与传统的WebSocket+TLS方案不同,Reality无需购买域名和申请TLS证书,通过「借用」真实网站的TLS指纹,使代理流量在TLS层面与真实HTTPS流量完全一致,是目前抗GFW检测能力最强的协议之一。
Need this done for your project?
We implement, you ship. Async, documented, done in days.
安装Xray核心
使用官方安装脚本部署Xray:
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
安装后,服务文件位于「/usr/local/bin/xray」,配置目录为「/usr/local/etc/xray/」。
生成Reality所需的密钥对:
xray x25519
输出「Private key」和「Public key」,在配置文件中分别对应「privateKey」和「publicKey」字段。同时生成shortId:
openssl rand -hex 8
记录以上三个值,这是Reality协议的核心认证凭据。VLESS+Reality服务端配置
创建「/usr/local/etc/xray/config.json」,「dest」字段选择一个高知名度、支持TLSv1.3的境外网站(如microsoft.com:443):
{
"inbounds": [{
"port": 443,
"protocol": "vless",
"settings": {
"clients": [{
"id": "YOUR-UUID",
"flow": "xtls-rprx-vision"
}],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "microsoft.com:443",
"serverNames": ["microsoft.com"],
"privateKey": "YOUR_PRIVATE_KEY",
"shortIds": ["YOUR_SHORT_ID"]
}
}
}],
"outbounds": [{"protocol": "freedom"}]
}
systemctl enable --now xray
Reality协议在握手阶段向防火墙呈现真实的microsoft.com TLS证书,无法与真实HTTPS流量区分。客户端配置与分享链接生成
Xray客户端推荐:v2rayN(Windows)、v2rayU(macOS)、v2rayNG(Android)、Shadowrocket或NekoBox(iOS)。
手动配置参数:
- 协议:VLESS
- 地址:VPS公网IP
- 端口:443
- UUID:你的UUID
- Flow:xtls-rprx-vision
- 传输:TCP
- 安全:reality
- PublicKey:服务端生成的公钥
- ShortId:你的shortId
- ServerName:microsoft.com
使用vless://链接格式分享配置,避免明文传递:
vless://UUID@VPS_IP:443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=microsoft.com&fp=chrome&pbk=PUBLIC_KEY&sid=SHORT_ID&type=tcp#Anubiz-Reality
大多数现代客户端支持直接导入此格式的链接或二维码。Related Services
Why Anubiz Host
100% async — no calls, no meetings
Delivered in days, not weeks
Full documentation included
Production-grade from day one
Security-first approach
Post-delivery support included
Ready to get started?
Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.