创建「/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流量区分。