Repository navigation
Replies: 1 comment
easyxray 更新:v0.1.0 → v0.4.2 / Update: v0.1.0 → v0.4.2https://github.com/driftray/easyxray 一条命令安装 / One-command install 现在用一个入口脚本安装和管理:先检查系统、端口和网络,再从 Release 下载程序包并校验 SHA256。已经安装过的机器,再运行同一条命令会直接进入管理菜单。 A single entry script now handles both install and management. It checks the system, ports and network first, then downloads the release package and verifies its SHA256. On a machine that already has it installed, the same command opens the management menu. wget -N https://raw.githubusercontent.com/driftray/easyxray/main/install.sh && bash install.sh新功能 / What's new
测试与客户端 / Testing and clients 已在 Ubuntu 24.04 和 26.04 上完整测试。推荐客户端为 Shadowrocket 和 v2rayN。由于 Xray 26.9.8 起 Reality 要求 X25519MLKEM768,Clash(mihomo)和 sing-box 内核的客户端暂时连不上 Reality 节点,可以改用 Hysteria2、XHTTP-TLS 或 VLESS-TLS-Vision。 Fully tested on Ubuntu 24.04 and 26.04. Recommended clients are Shadowrocket and v2rayN. Since Xray 26.9.8, Reality requires X25519MLKEM768, so clients built on Clash (mihomo) or sing-box can't connect to Reality nodes for now. Use Hysteria2, XHTTP-TLS or VLESS-TLS-Vision instead. 欢迎提 Issue 反馈。 / Issues and feedback are welcome. |
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