
Xray VLESS+XTLS 部署教程:抗封锁能力最强的代理协议
Xray 的 VLESS+XTLS-Reality 是目前公认抗封锁能力最强的协议组合。它的核心原理是流量伪装成正常的 TLS 握手,让 GFW 难以通过特征识别判断是代理流量。 这篇文章从零开始,完整部署一套可用的配置。 前置准备 一台海外 VPS(推荐 DMIT 香港或美国节点,线路质量好) VPS 系统:Ubuntu 22.04+ 本地客户端:mihomo(原 Clash Meta) 服务端部署 安装 Xray bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install 生成 XTLS-Reality 所需密钥 xray x25519 输出类似: Private key: 你的私钥(保存好) Public key: 你的公钥(填入客户端配置) 再生成 UUID: xray uuid 服务端配置文件 /usr/local/etc/xray/config.json: { "inbounds": [ { "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "你的UUID", "flow": "xtls-rprx-vision" } ], "decryption": "none" }, "streamSettings": { "network": "tcp", "security": "reality", "realitySettings": { "show": false, "dest": "www.apple.com:443", "xver": 0, "serverNames": ["www.apple.com"], "privateKey": "你的私钥", "shortIds": [""] } }, "sniffing": { "enabled": true, "destOverride": ["http", "tls", "quic"] } } ], "outbounds": [ {"protocol": "freedom", "tag": "direct"}, {"protocol": "blackhole", "tag": "block"} ] } 关键参数说明: ...