Coder Social home page Coder Social logo

franzkafkayu / x-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vaxilu/x-ui

7.7K 69.0 1.5K 15.67 MB

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.

License: GNU General Public License v3.0

Dockerfile 0.02% Go 4.34% Shell 4.18% Less 0.01% CSS 0.28% JavaScript 86.22% HTML 4.95%
x-ui xray v2ray shadowsocks trojan vmess xray-core vless xtls telegram-bot grpc shadowsocks2022 xtls-rprx-vision reality proxy vpn

x-ui's Introduction

X-UI

简体中文|ENGLISH

声明:该项目仅供个人学习、交流,请遵守当地法律法规,勿用于非法用途;请勿用于生产环境
声明:该项目已闭源,介意者请勿使用;如您需要开源代码,请附上您的Github Profile邮箱联系

支持单端口多用户、多协议的 xray 面板,究极缝合怪
通过免费的Telegram bot方便快捷地进行监控、管理你的代理服务
xtls-rprx-visionreality快速入手请看这里
欢迎大家使用并反馈意见或提交Pr,帮助项目更好的改善
如果您觉得本项目对您有所帮助,不妨给个star:star2:支持我
或者你恰巧有购买服务器的需求,可以通过文末的赞助部分支持我~

文档目录

功能介绍

  • 系统状态监控
  • 支持单端口多用户、多协议,网页可视化操作
  • 支持的协议:vmess、vless、trojan、shadowsocks、shadowsocks 2022、dokodemo-door、socks、http
  • 支持配置更多传输配置:http、tcp、ws、grpc、kcp、quic
  • 流量统计,限制流量,限制到期时间,一键重置与设备监控
  • 可自定义 xray 配置模板
  • 支持 https 访问面板(自备域名 + ssl 证书)
  • 支持一键SSL证书申请且自动续签
  • Telegram bot通知、控制功能
  • 更多高级配置项,详见面板

💡具体使用、配置细节以及问题排查请点击这里:point_right:WIKI👈
Specific Usages、Configurations and Debug please refer to WIKI

一键安装

在安装前请确保你的系统支持bash环境,且系统网络正常

⚡从原版升级也可使用该命令,数据不会丢失⚡

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

For English Users,please use the following command to install English supported version:

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install_en.sh)

如需安装指定的版本,可以在上述命令中指定版本号,如指定版本为0.3.4.4,安装命令如下:

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh) 0.3.4.4   

效果预览

面板使用:

点击查看效果预览

image
image

Bot使用:

点击查看效果预览

image

流量提醒:

点击查看效果预览

image

SSH提醒:

点击查看效果预览

image

限额提醒:

点击查看效果预览

image

到期提醒:

点击查看效果预览

image

登录提醒:

点击查看效果预览

image
image

用户速览:

点击查看效果预览

image

用户查询:

点击查看效果预览

image

快捷方式

安装成功后,通过键入x-ui进入控制选项菜单,目前菜单内容:

  x-ui 面板管理脚本
  0. 退出脚本
————————————————
  1. 安装 x-ui
  2. 更新 x-ui
  3. 卸载 x-ui
————————————————
  4. 重置用户名密码
  5. 重置面板设置
  6. 设置面板端口
  7. 查看当前面板设置
————————————————
  8. 启动 x-ui
  9. 停止 x-ui
  10. 重启 x-ui
  11. 查看 x-ui 状态
  12. 查看 x-ui 日志
————————————————
  13. 设置 x-ui 开机自启
  14. 取消 x-ui 开机自启
————————————————
  15. 一键安装 bbr (最新内核)
  16. 一键申请SSL证书(acme申请)
 
面板状态: 已运行
是否开机自启: 是
xray 状态: 运行

请输入选择 [0-16]: 

配置要求

内存

  • 128MB minimal/256MB+ recommend

OS

  • CentOS 7+
  • Ubuntu 16+
  • Debian 8+

变更记录

  • 2023.07.18:随机生成Reality dest与serverNames,去除微软域名;细化sniffing配置
  • 2023.06.10:开启TLS时自动复用面板证书与域名;增加证书热重载设定;优化设备限制功能
  • 2023.04.09:支持Reality;支持新的telegram bot控制指令
  • 2023.03.05:支持用户到期时间限制;随机用户名、密码与端口生成
  • 2023.02.09:支持单端口内用户流量限制与统计;支持VLESS utls配置与分享链接导出
  • 2022.12.07:添加设备并发限制;细化tls配置,支持minVersion、maxVersion与cipherSuites选择
  • 2022.11.14:添加xtls-rprx-vision流控选项;定时自动更新geo与清除日志
  • 2022.10.23:实现全英文支持;增加批量导出分享链接功能;优化页面细节与Telegram通知
  • 2022.08.11:实现Vmess/Vless/Trojan单端口多用户;增加CPU使用超限提醒
  • 2022.07.28:增加acme standalone模式申请证书;增加x-ui自动保活机制;优化编译选项以适配更多系统
  • 2022.07.24:增加自动生成面板根路径,节点流量自动重置功能,设备IP接入变化通知功能
  • 2022.07.21:增加节点IP接入变化提醒,Web面板增加停止/重启xray功能,优化部分翻译
  • 2022.07.11:增加节点到期提醒、流量预警策略,增加Telegram bot节点复制、获取分享链接等
  • 2022.07.03:重构Telegram bot功能,指令控制不再需要键盘输入;增加Trojan底层传输配置
  • 2022.06.19:增加Shadowsocs2022新的Cipher,增加节点搜索、一键清除流量功能
  • 2022.05.14:增加Telegram bot Command控制功能,支持关闭/开启/删除节点等
  • 2022.04.25:增加SSH登录提醒、面板登录提醒
  • 2022.04.23:增加更多Telegram bot提醒功能
  • 2022.04.16:增加面板设置Telegram bot功能
  • 2022.04.12:优化Telegram Bot通知提醒
  • 2022.04.06:优化安装/更新流程,增加证书签发功能,添加Telegram bot机器人推送功能

Telegram

订阅频道
讨论群组

致谢

广告赞助

如果你觉得本项目对你有用,而且你也恰巧有这方面的需求,你也可以选择通过我的购买链接赞助我

如果你希望购买一些现成的代理服务,可选择下述代理服务

Stargazers over time

Stargazers over time

x-ui's People

Contributors

enwaiax avatar franzkafkayu avatar gswxxn avatar jukrb0x avatar pidan-heidashuai avatar tacrazymage avatar vaxilu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

x-ui's Issues

一进入面板设置就变“404 page not found”

一键安装的。
chrome 浏览器一进入面板设置就变“404 page not found”
重新安装也不能解决。
更换安装路径才能回复正常。但是继续一进入面板设置 浏览器有提示文字飘出,太快没看清接着就变“404 page not found”

xray和面板均无法正常运行启动

系统信息:Arm64,Ubuntu20.04
uname

问题描述:使用一键脚本运行后,正常输入账号密码及端口,然后脚本显示面板和xray状态都是未运行。rm x-ui/ /usr/local/x-ui/ /usr/bin/x-ui -rf 删除相关目录后,用手动安装模式也是一样的状态。
PS:使用原作者一键脚本可以正常运行,但没有bot提醒功能。顺便再问下作者,关于面板提醒这方面的功能,考虑接入bark推送

最新版有bug

使用一键命令安装最新版,打开设置界面时会出现白屏
image

Shadowsocks 2022

permission ask, does shadowsocks 2022 support websocket tls / none tls?

telegram通知配置错误导致面板启动失败

telegram通知配置正常使用的情况下,修改了错误的Token和ChatId后,即使“启用电报机器人”选项是关闭情况下,面板也无法启动

Jun 20 22:04:49 xui.localdomain systemd[1]: Started x-ui Service.
Jun 20 22:04:49 xui.localdomain x-ui[489]: 2022/06/20 22:04:49 x-ui 0.3.2.11
Jun 20 22:04:50 xui.localdomain x-ui[489]: 2022/06/20 22:04:50 INFO - web server run https on [::]:443
Jun 20 22:04:50 xui.localdomain x-ui[489]: 2022/06/20 22:04:50 INFO - telegram service ready to run
Jun 20 22:04:50 xui.localdomain x-ui[489]: 2022/06/20 22:04:50 INFO - TelegramService GetTgBotToken:***************************************
Jun 20 22:04:51 xui.localdomain x-ui[489]: 2022/06/20 22:04:51 INFO - telegram service start run failed,NewBotAPI fail:Unauthorized,tgBottoken:*********************************
Jun 20 22:04:51 xui.localdomain x-ui[489]: panic: runtime error: invalid memory address or nil pointer dereference
Jun 20 22:04:51 xui.localdomain x-ui[489]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x9f855c]
Jun 20 22:04:51 xui.localdomain x-ui[489]: goroutine 59 [running]:
Jun 20 22:04:51 xui.localdomain x-ui[489]: x-ui/web/service.(*TelegramService).StartRun(0xc0002e6710)
Jun 20 22:04:51 xui.localdomain x-ui[489]: /home/runner/work/x-ui/x-ui/web/service/telegram.go:109 +0x2bc
Jun 20 22:04:51 xui.localdomain x-ui[489]: x-ui/web.(*Server).Start.func2()
Jun 20 22:04:51 xui.localdomain x-ui[489]: /home/runner/work/x-ui/x-ui/web/web.go:393 +0x25
Jun 20 22:04:51 xui.localdomain x-ui[489]: created by x-ui/web.(*Server).Start
Jun 20 22:04:51 xui.localdomain x-ui[489]: /home/runner/work/x-ui/x-ui/web/web.go:392 +0x915
Jun 20 22:04:51 xui.localdomain systemd[1]: x-ui.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 20 22:04:51 xui.localdomain systemd[1]: x-ui.service: Failed with result 'exit-code'.

面板设置返回404

点击左侧面板设置,必然出现404导致整个挂掉,目前唯一的方法是“重置面板设置”

HI,请教一个问题!

请教一个问题!
{ "inbounds": [ { "protocol": "vmess", "port": "xxxx", "listen": "127.0.0.1", "settings": { "clients": [ { "id": "UUID1", "alterId": 4, "email": "[email protected]" }, { "id": "UUID2", "alterId": 4, "email": "[email protected]" }, { "id": "UUID3", "alterId": 4, "email": "[email protected]" } ] }, "streamSettings": { "network": "ws" } } ], "outbounds": [ { "sendThrough": "1.1.1.1", "protocol": "freedom", "settings": {}, "tag": "ip1" }, { "sendThrough": "2.2.2.2", "protocol": "freedom", "settings": {}, "tag": "ip2" }, { "sendThrough": "3.3.3.3", "protocol": "freedom", "settings": {}, "tag": "ip3" } ], "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "user": [ "[email protected]" ], "outboundTag": "ip1" }, { "type": "field", "user": [ "[email protected]" ], "outboundTag": "ip2" }, { "type": "field", "user": [ "[email protected]" ], "outboundTag": "ip3" } ] }, "transport": { "wsSettings": { "path": "/xxx" } } }

方便吗?哈哈

面板设置TG通知无法保存

腾讯轻量云,试过ubuntu18.04.1和debian10.2,按照脚本自动安装后,进入面板设置tg通知无法保存设置,一直显示loading转圈,设置面板证书配置时也是loading转圈,刷新后设置项为空。已经尝试更换浏览器和清除缓存,无法解决。

新版本好像有bug?

添加了入站以后,二维码展示不出来,复制链接也复制不到。是BUG么?

Docker Image request

Hello,
your version is great, but allow me to suggest: why don't you build one that runs on docker platform?

Thank you

大佬您好,请问几个问题

请问一下,安装面板的时候用什么命令能修改好面板的根路径和证书路径?现有的只能修改帐号、密码、端口,非常不方便啊,这个是非常需要的,因为安装的时候一起修改好,然后可以把反代那些全弄好的,非常方便,可惜我不知道用什么命令能改根路径跟证书路径

还有就是在面板里面能不能弄一个设置,把域名,证书路径填上,然后建立节点的时候就自动读取,不需要建立每个节点都要去搞一下证书路径的,还有域名也是,感觉很累啊

单击“面板设置“”后网页404

系统版本:Debian 10
ssh连接显示正常,但就是在单击“面板设置”后,提升“修改设置成功”“重启面板成功”后无法进入网页
QQ截图20220824153435
QQ截图20220824153448
QQ截图20220824153458

大佬这是什么问题?

[ERR] 面板启动失败,可能是因为启动时间超过了两秒,请稍后查看日志信息
日志:May 08 16:31:00 root systemd[1]: x-ui.service: main process exited, code=exited, status=1/FAILURE
May 08 16:31:00 root systemd[1]: Unit x-ui.service entered failed state.
May 08 16:31:00 root systemd[1]: x-ui.service failed.

是否考虑可以自定义通知方式?

您好,

感谢您增加了TG机器人通知的功能,这是很棒很实用的功能!
想提出一个小小的建议,是否可以考虑做成可以自定义的方式呢?

例如:用户可以自定义采取POST或GET的方式请求、以JSON类型请求、可以自定义Header、自定义Body

这样的好处是可以很灵活地满足目前绝大部份的通知方式,包括并且不仅限于TG、wxpusher、Server酱,毕竟还有很大一部分用户不使用TG

再次感谢您的贡献,如果您认为这条建议没有价值,您可以随时关闭这条Issue

伪装网址需求

功能相当不错
由于墙也会探测服务器,急切需要面板加个伪装网址功能
当使用WS+TLS等协议时候,能支持正确路径走正常流量,不正确路径跳转去设置好的伪装网址,以免被探测识别,

请教下博主。

可否详细说下Cron任务更新geoip,尝试几次都没有反映,.我写了个 .SH文件只把github连接丢了进去,然后把/usr/bin/curl改成了SH文件地址,/usr/local/x-ui/bin/geoip.dat改成了我原先有的地址,想让他自动下载覆盖.可惜没有成功,可以教下吗,.博主大哥.在你的博客留言错误,只能来这里请教了

关于添加禁止ip访问功能的请求

利用大佬的脚本搭建好节点之后分享给其他人用,经常有人试图通过服务器破解我的后台密码。请求大佬能够添加禁止特定IP访问的功能

En语言下的本地化

下午好。是否可以将所有菜单翻译成英文(web + tg)?或者您能否提供一个存储库,以便可以通过翻译成英文来重建 x-ui 二进制文件?

增加一键重置所有节点流量的功能

任何由于自己的配置错误导致的情况,请自行解决,issues 只用于解决面板自身的 bug

如果你确定面板的功能实现有 bug,请尽可能提供更多更精确的描述信息、复现方法与复现结果等等,而不是草草一句话了事,这对于问题的解决没有帮助

提问的艺术: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md

希望增加一键重置所有节点流量的功能,以及每个月或者固定日期自动清零所有节点流量

Feature request

Add an option to forward traffic to local cloudflare wrap proxy from within the UI.

一进面板设置就自动变成:404 page not found

一键安装,装好后登录网页正常,一进入网页设置页,浏览器自动飘过一些提示。太快看不清。然后就变成“404 page not found”
重装也没发恢复。
我是卸载后换路径装才能恢复正常,可是再次进入网页设置页又变成“404 page not found”

迁移服务器的时候数据库文件是哪个,以及流量是否可以一键清空所有节点的流量呢,就像v2-ui一样

任何由于自己的配置错误导致的情况,请自行解决,issues 只用于解决面板自身的 bug

如果你确定面板的功能实现有 bug,请尽可能提供更多更精确的描述信息、复现方法与复现结果等等,而不是草草一句话了事,这对于问题的解决没有帮助

提问的艺术: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md

迁移服务器的时候数据库文件是哪个,就是我应该复制哪个文件?
以及是否可以一键清空所有节点的流量呢,就像v2-ui一样或者定期清空所有节点的流量

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.