Skip to content

oldfriendme/xrayREALITY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xrayREALITY.sh

xray REALITY install script

xray REALITY协议一键安装脚本(2025-12-17)。

特点

  • 开源安全可审查。
  • 一键安装REALITY协议。
  • 支持一键卸载。
  • 支持一键更换uuid【如果旧的uuid泄露了】。
  • 支持一键重启xray。
  • 支持xray降级运行【降级为普通用户运行xray-core】。
  • 脚本简单易理解。
  • 脚本仅从官方下载xray,不依赖任何第三方,安全可靠。
  • 最新without being stolen(2024-11-9)科技。
  • 单用户运行。
  • 支持x86_64位,x86_32位,arm64架构

功能介绍

  • 集成快捷指令Command【xray.start, xray.stop, xray.restart, xray.chuuid, xray.delxray】
  • 单用户使用
  • 支持sni-filter模式,阻止指向cdn后被偷跑流量。
  • 其他协议支持。

软件安装

2025-12-17更新:

  • 1.sni-filter模式已成熟,默认启用。
  • 2.xray 更新到 v25.10.15
  • 3.脚本默认运行在非root用户,如果root用户执行,会自动降权到非root。【注意:如果非root启动,添加systemd启动会失败,需手动启动,也不能绑定<1024端口】

一键安装

wget -N https://raw.githubusercontent.com/oldfriendme/xrayREALITY/refs/heads/main/xrayREALITY.sh && bash xrayREALITY.sh
旧版本

如果系统差异导致新脚本用不了sni-filter模式,可以尝试最旧的脚本

wget -N https://raw.githubusercontents.com/oldfriendme/xrayREALITY/main/xrayREALITY-11-17.sh && bash xrayREALITY.sh

快捷指令操作

在安装完后,可使用下列指令快速操作

xray.start     #启动xray
xray.stop      #停止xray
xray.restart   #重启xray
xray.chuuid    #重新生成uuid
xray.delxray   #彻底删除xray内核及脚本
xray.help      #帮助

注意事项

Important

如果你的机器是双栈IP或者其他多IP,IP地址应该替换为实际入口IP

如IPv6为2001:4860:1234::8888,生成的订阅为:

vless://uuid@[2001:4860::8888]:443?encryption=none&security=reality&sni=...

但是入口为IPv4:1.1.8.8

应该改为

vless://uuid@1.1.8.8:443?encryption=none&security=reality&sni=...



常见问题

默认内核Xray-core v25.10.15如何更换

搜索脚本”v25.10.15“关键字,修改

没有相应架构怎么办

脚本第87行接着加


脚本使用技术与模板

2024-11-17脚本使用了最新(2024-11-9)的REALITY模板进行编写

About

xray REALITY 一键脚本,支持sni-filter模式。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages