You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
easyxray:简单、安全的 Xray 服务器管理工具 / A simple and safe Xray server manager
#7258
One command sets up the certificate, Xray, a camouflage site, the firewall and BBR. After that, users, protocols, subscriptions and WARP routing are managed through a Chinese menu or the command line.
特点 / Highlights
修改前自动校验,失败自动回滚:所有配置由一个状态文件统一生成,每次修改先经过 xray run -test 和 nginx -t,新配置启动失败时自动恢复上一份。 Validated changes with automatic rollback: all configs are generated from a single state file. Every change is checked with xray run -test and nginx -t, and the previous config is restored if the new one fails to start.
不运行第三方脚本或二进制:证书使用系统源里的 certbot,Xray 从官方 Release 下载并校验 SHA256,WARP 直接调用 Cloudflare 的注册接口。 No third-party scripts or binaries: certificates come from the distro's certbot, Xray is downloaded from the official release and verified against its SHA256 digest, and WARP is registered directly through Cloudflare's API.
Xray 不以 root 运行:使用专用用户,只授予绑定低端口和创建 WARP 网卡两项权限。 Xray does not run as root: it uses a dedicated user with only two capabilities, binding low ports and creating the WARP interface.
少暴露端口、独立密钥:推荐安装只开启两个协议;Reality 密钥、shortId、路径和混淆密码都在安装时随机生成。 Fewer exposed ports, unique keys: the recommended install enables only two protocols, and Reality keys, shortIds, paths and obfuscation passwords are generated per server.
The recommended install sets up Reality-Vision and Hysteria2; you can also install all five. Reality falls back to a site on the local Nginx that uses your own domain.
安装 / Install
需要 Debian 12+ 或 Ubuntu 22.04+,以及一个解析到服务器的域名。
Requires Debian 12+ or Ubuntu 22.04+ and a domain pointing to the server.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
庆祝时隔半年后发布稳定版,开源一个我自己用的服务器端管理脚本工具
easyxray:简单、安全的 Xray 服务器管理工具 / A simple and safe Xray server manager
https://github.com/driftray/easyxray
大家好,分享一个我写的 Xray-core 服务器管理脚本,希望对需要自建节点的朋友有用。
Hi everyone, I'd like to share an Xray-core server management script I wrote. I hope it's useful for anyone running their own server.
它做什么 / What it does
一条命令完成证书申请、Xray 安装、伪装站点、防火墙和 BBR,之后用中文菜单或命令行管理用户、协议、订阅和 WARP 分流。
One command sets up the certificate, Xray, a camouflage site, the firewall and BBR. After that, users, protocols, subscriptions and WARP routing are managed through a Chinese menu or the command line.
特点 / Highlights
修改前自动校验,失败自动回滚:所有配置由一个状态文件统一生成,每次修改先经过
xray run -test和nginx -t,新配置启动失败时自动恢复上一份。Validated changes with automatic rollback: all configs are generated from a single state file. Every change is checked with
xray run -testandnginx -t, and the previous config is restored if the new one fails to start.不运行第三方脚本或二进制:证书使用系统源里的 certbot,Xray 从官方 Release 下载并校验 SHA256,WARP 直接调用 Cloudflare 的注册接口。
No third-party scripts or binaries: certificates come from the distro's certbot, Xray is downloaded from the official release and verified against its SHA256 digest, and WARP is registered directly through Cloudflare's API.
Xray 不以 root 运行:使用专用用户,只授予绑定低端口和创建 WARP 网卡两项权限。
Xray does not run as root: it uses a dedicated user with only two capabilities, binding low ports and creating the WARP interface.
少暴露端口、独立密钥:推荐安装只开启两个协议;Reality 密钥、shortId、路径和混淆密码都在安装时随机生成。
Fewer exposed ports, unique keys: the recommended install enables only two protocols, and Reality keys, shortIds, paths and obfuscation passwords are generated per server.
支持的协议 / Protocols
推荐安装 Reality-Vision 和 Hysteria2,也可以一次安装全部 5 个。Reality 的回落目标是本机 Nginx 上的自有域名站点。
The recommended install sets up Reality-Vision and Hysteria2; you can also install all five. Reality falls back to a site on the local Nginx that uses your own domain.
安装 / Install
需要 Debian 12+ 或 Ubuntu 22.04+,以及一个解析到服务器的域名。
Requires Debian 12+ or Ubuntu 22.04+ and a domain pointing to the server.
说明 / Notes
目前是 v0.1.0,已在 Ubuntu 24.04 上完整测试过。欢迎提 Issue 反馈问题和建议。
This is v0.1.0 and has been fully tested on Ubuntu 24.04. Issues and suggestions are welcome.
项目采用 GPL-3.0 许可证。感谢 Xray-core 团队的工作。
Licensed under GPL-3.0. Thanks to the Xray-core team for their work.
All reactions