搭建Xray – Reality
如题所示,一直没有抽身出来自建,特此记录。
-
更新系统
# CentOS yum update -y yum install curl wget -y # Ubuntu apt update -y apt install curl wget -y
-
安装 x-ui
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
-
寻找 TLS1.3/H2 的网站
# 寻找 `TLS1.3 / X25519 / H2` 的指向站点 https://www.ssllabs.com/projects/index.html # 查询目标网站是否支持 `OCSP Stapling` http://web.chacuo.net/netocspstapling
-
部署 Reality 节点
x-ui,选择 Xray 版本 1.8.0 以上,新建节点,修改三处:
- 协议选择vless
- 网络勾选reality
- 目标网站:443和可选域名,更换为TLS1.3/H2网站:443和TLS1.3/H2的网站
- 开启 BBR 加速
# 开启系统自带 BBR (我使用的自带 BBR,使用 BBR PLUS 导致主机 SSH 失联) echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p # 开启BBR PLUS wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux- NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
- 检查 IP 是否被墙
参考链接:
https://v2rayssr.com/reality.html
https://www.youtube.com/watch?v=DO1_C9YWOYY
https://www.vpsgo.com/ip-check-tools.html