Giter Site home page Giter Site logo

xray's Introduction

介绍

最好用的 Xray 一键安装脚本 & 管理脚本

特点

  • 快速安装
  • 无敌好用
  • 零学习成本
  • 自动化 TLS
  • 简化所有流程
  • 屏蔽 BT
  • 屏蔽** IP
  • 使用 API 操作
  • 兼容 Xray 命令
  • 强大的快捷参数
  • 支持所有常用协议
  • 一键添加 VLESS-REALITY (默认)
  • 一键添加 Shadowsocks 2022
  • 一键添加 VMess-(TCP/mKCP/QUIC)
  • 一键添加 VMess-(WS/H2/gRPC)-TLS
  • 一键添加 VLESS-(WS/H2/gRPC)-TLS
  • 一键添加 Trojan-(WS/H2/gRPC)-TLS
  • 一键添加 VMess-(TCP/mKCP/QUIC) 动态端口
  • 一键启用 BBR
  • 一键更改伪装网站
  • 一键更改 (端口/UUID/密码/域名/路径/加密方式/SNI/动态端口/等...)
  • 还有更多...

设计理念

设计理念为:高效率,超快速,极易用

脚本基于作者的自身使用需求,以 多配置同时运行 为核心设计

并且专门优化了,添加、更改、查看、删除、这四项常用功能

你只需要一条命令即可完成 添加、更改、查看、删除、等操作

例如,添加一个配置仅需不到 1 秒!瞬间完成添加!其他操作亦是如此!

脚本的参数非常高效率并且超级易用,请掌握参数的使用

文档

安装及使用:https://233boy.com/xray/xray-script/

帮助

使用:xray help

Xray script v1.0 by 233boy
Usage: xray [options]... [args]...

基本:
   v, version                                      显示当前版本
   ip                                              返回当前主机的 IP
   pbk                                             同等于 xray x25519
   get-port                                        返回一个可用的端口
   ss2022                                          返回一个可用于 Shadowsocks 2022 的密码

一般:
   a, add [protocol] [args... | auto]              添加配置
   c, change [name] [option] [args... | auto]      更改配置
   d, del [name]                                   删除配置**
   i, info [name]                                  查看配置
   qr [name]                                       二维码信息
   url [name]                                      URL 信息
   log                                             查看日志
   logerr                                          查看错误日志

更改:
   dp, dynamicport [name] [start | auto] [end]     更改动态端口
   full [name] [...]                               更改多个参数
   id [name] [uuid | auto]                         更改 UUID
   host [name] [domain]                            更改域名
   port [name] [port | auto]                       更改端口
   path [name] [path | auto]                       更改路径
   passwd [name] [password | auto]                 更改密码
   key [name] [Private key | atuo] [Public key]    更改密钥
   type [name] [type | auto]                       更改伪装类型
   method [name] [method | auto]                   更改加密方式
   sni [name] [ ip | domain]                       更改 serverName
   seed [name] [seed | auto]                       更改 mKCP seed
   new [name] [...]                                更改协议
   web [name] [domain]                             更改伪装网站

进阶:
   dd, ddel [name...]                              删除多个配置**
   fix [name]                                      修复一个配置
   fix-all                                         修复全部配置
   fix-caddyfile                                   修复 Caddyfile
   fix-config.json                                 修复 config.json

管理:
   un, uninstall                                   卸载
   u, update [core | sh | caddy] [ver]             更新
   U, update.sh                                    更新脚本
   s, status                                       运行状态
   start, stop, restart [caddy]                    启动, 停止, 重启
   t, test                                         测试运行
   reinstall                                       重装脚本

测试:
   client, genc [name]                             显示用于客户端 JSON, 仅供参考
   debug [name]                                    显示一些 debug 信息, 仅供参考
   gen [...]                                       同等于 add, 但只显示 JSON 内容, 不创建文件, 测试使用
   no-auto-tls [...]                               同等于 add, 但禁止自动配置 TLS, 可用于 *TLS 相关协议
   xapi [...]                                      同等于 xray api, 但 API 后端使用当前运行的 Xray 服务

其他:
   bbr                                             启用 BBR, 如果支持
   bin [...]                                       运行 Xray 命令, 例如: xray bin help
   api, x25519, tls, run, uuid  [...]              兼容 Xray 命令
   h, help                                         显示此帮助界面

谨慎使用 del, ddel, 此选项会直接删除配置; 无需确认
反馈问题) https://github.com/233boy/xray/issues
文档(doc) https://233boy.com/xray/xray-script/

xray's People

Contributors

233boy 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

xray's Issues

修复 /usr/local/bin/xray: Permission denied

如果你更新脚本后出现这个 /usr/local/bin/xray: Permission denied

修复:

chmod +x /usr/local/bin/xray

原因

😂 这是因为更新脚本的时候忘记加执行权限了,后面的版本已经加上了。

安装依赖包 > unzip qrencode失败

12:33:56) 下载 Xray 脚本 > https://github.com/233boy/xray/releases/latest/download/code.zip
12:33:56) 安装依赖包 > unzip qrencode
12:34:01) 安装依赖包失败
12:34:01) 哦豁..
12:34:01) 安装过程出现错误...

root@heallen:~ # uname -a
Linux heallen 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux
root@heallen:~ # cat /etc/debian_version
9.13
root@heallen:~ # cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

全新ubuntu22安装添加配置时错误,xray x25519: unknown command

生成的配置中公钥是空的,请问如何解决之?

请输入端口:22222
使用: 22222
xray x25519: unknown command
Run 'xray help' for usage.
-------------- VLESS-XTLS-uTLS-REALITY-22222.json -------------
协议 (protocol) = vless
地址 (address) = ...
端口 (port) = 22222
用户ID (id) = 00c332f0-990c-4cf7-9a5e-67cd6d6b2e47
流控 (flow) = xtls-rprx-vision
传输层安全 (TLS) = reality
SNI (serverName) = aws.amazon.com
指纹 (Fingerprint) = ios
公钥 (Public key) =
------------- 链接 (URL) -------------
vless://00c332f0-990c-4cf7-9a5e-67cd6d6b2e47@ip:22222?encryption=none&security=reality&flow=xtls-rprx-vision&type=tcp&sni=aws.amazon.com&pbk=&fp=ios#233boy-reality-ip
------------- END -------------

caddy 運行正常,但不會自動幫域名創建let's encrypt 證書

如題,運行正常沒有中斷,但不會自動創建let's encrypt證書,導致ws+tls無法連接,重新創建也不行,之前創建的還可以正常使用
/etc/caddy/233boy 裡面有domain.conf和domain.conf.add
/root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory 裡面有以前創建的證書,但沒有新增的

自带了acme?

xray add vws vvpn.qyzhao.cn
按上面命令配置的话,acme可以自动申请证书?
三个月到期会自动更换嘛?

xray,如果做匿名服务

.
.

众大神们好,请问一下,下面图片中的那个 匿名服务 是怎么弄的,我目前上用的协议是 Trojan-WS-TLS

有知道的大神,请指点一二.谢谢
.
.

114915

caddy经常停止

谷歌云,经常超时,上去VPS一看caddy又停了,手动重启后恢复

默认的VMEss无法连通

不知为何原因,在Xray上创建ss的aes-256-gcm可以连通,但是VMEss的话无论是默认配置还是更改过协议都连通不了,这是为什么呢?

带ipv6的机器启动时未监听ipv4端口

创建配置后
显示的address是ipv4的地址
但是使用netstat查看端口占用时,其中只显示了tcp6和udp6的端口占用
未监听ipv4的端口
请大佬们帮忙看一下

image

netstat

安装后无法翻墙

完成安装后,可以访问国内网站,但不能访问谷歌,试过openwrt的ssr+和vssr插件,都不行,用的是默认生成的配置,请问这是什么问题?

ss 使用 2022-blake3 系列协议无法连接

ss 使用 2022-blake3 系列协议无法连接
会提示

app/proxyman/inbound: connection ends > shadowsocks: serve TCP from xxx.xxx.xxx.xxx:xxx: bad timestamp: received 1693984899, diff 156s

link timeout

Installed the script and was able to use it before. But now I can't link. Even after changing the machine, it still doesn't work. Don't know how to solve it. Seems like a core issue? But nothing works at the moment. The firewall is also normal. Can't figure it out. Can anyone help explain it.

一些使用建议

路由关闭IPv6,优选IPv4 DNS,我这里用114,基本可以跑满宽带,即使是晚高峰。如果使用IPv6记得优选Cloudflare IPv6。
屏幕截图 2024-01-10 190318

ChatGPT网站不能正常打开,浏览器报403

使用centos和ubuntu都尝试过,安装xray脚本后,gpt打不开,尝试过之前提的删除privite ip那段json,但也没效果。

安装x-ui面板(sing-web)连接则可以正常打开gpt,所以确定不是机房、VPS或客户端问题。但是这个面板的速度不如233大神的脚本,

具体问题为可以进入GPT界面,但左侧显示Unable to load history,

查看network可以看到请求出问题:
https://chat.openai.com/backend-api/accounts/check/v4-2023-04-27
Request Method:
GET
Status Code:
403
Remote Address:
127.0.0.1:10809

Request URL:
https://chat.openai.com/backend-api/conversations?offset=0&limit=28&order=updated
Request Method:
GET
Status Code:
403
Remote Address:
127.0.0.1:10809
Referrer Policy:
same-origin

xray add ws 启动caddy失败

执行 xray add ws
启动时报错,报错如下

Error: loading initial config: loading new config: starting caddy administration endpoint: listen tcp 69.171.67.22:2019: bind: cannot assign requested address

系统debian 12

建议调整reality默认指纹

您好,脚本一键安装后reality指纹是ios,但好像没有调整的选项。指纹是ios其实会有点奇怪吧,毕竟它只有手机端。如果将默认指纹调整为chrome是否会更好?谢谢

配置后无法连接

shadowrocket 无法连接,测试全部超时
使用了多种配置都无效

看到配置有个IP地址和VPS地址不符,正常是这样吗

xray: command not found

脚本安装好了 也能正常链接

但是 再次进去系统
想添加配置就这样了

xray: command not found

安装依赖包失败请看

被安装依赖包失败这个问题搞得烦死了,但是我的测试环境怎么样都不会有这个错误啊啊啊阿

解决方法可选如下:

一,手动安装 jq,不适用 ARM,推荐使用此方法

wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /usr/bin/jq; chmod +x /usr/bin/jq

二, 换系统,换到 Ubuntu 22

三,更改更新源为官方源,这里的官方指的 Debian 或者 Ubuntu

可否新增配置备注功能

例如:我新增了3个配置
截图_20240120132514
能否在对应线路后面显示备注,实在记不清哪个配置在哪台设备了。
我就是1号配置http代理,sorarr之类的影视软件通过http出国
2号配置电脑用
3号配置手机用
哪天增减下配置协议都忘了- -

是否不支持纯ipv6的机子

在纯v6的机子上安装成功,显示
使用协议: VMess-TCP
-------------- VMess-TCP-55860.json -------------
协议 (protocol) = vmess
地址 (address) = 45.129.10.256
································································································
明显解析成v4了,也不通

错误! 此系统缺少 (systemd), 请尝试执行: /usr/bin/yum update -y;/usr/bin/yum install systemd -y 来修复此错误.

[root@server ~]# bash <(curl -sL https://git.io/v2ray.sh)

错误! 此系统缺少 (systemd), 请尝试执行: /usr/bin/yum update -y;/usr/bin/yum install systemd -y 来修复此错误.

[root@server ~]# /usr/bin/yum update -y;/usr/bin/yum install systemd -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.aliyun.com
  • epel: epel.mirror.angkasa.id
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    ookla_speedtest-cli/x86_64/signature | 833 B 00:00:00
    ookla_speedtest-cli/x86_64/signature | 1.8 kB 00:00:00 !!!
    ookla_speedtest-cli-source/signature | 833 B 00:00:00
    ookla_speedtest-cli-source/signature | 951 B 00:00:00 !!!
    No packages marked for update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
  • base: mirrors.aliyun.com
  • epel: epel.mirror.angkasa.id
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    Package systemd-219-78.el7_9.7.x86_64 already installed and latest version
    Nothing to do

明显systemd存在

CentOS Linux release 7.9.2009 (Core)

使用 Cloudflare 中转 Xray 流量问题求助

按照233boy大佬的教程一步步设置完成了,但是代理不生效是什么情况,安装了xray,启用ws;
协议 (protocol) = vmess
地址 (address) = a.xxxxx.site
端口 (port) = 443
用户ID (id) = 30847xxxxxxxa465d7
传输协议 (network) = ws
伪装域名 (host) = a.xxxxx.site
路径 (path) = /3084xxxxxxxx465d7
传输层安全 (TLS) = tls

CF也开启过了SSL的完全模式:您的 SSL/TLS 加密模式为 完全

clash客户端配置如下:
{ name: 'vpn', type: vmess, server: a.xxxxxx.site, port: 443, uuid: 3084xxxxxxx65d7, alterId: 0, cipher: auto, tls: true, skip-cert-verify: false, network: ws, ws-opts: {path: /3084xxxxxxx65d7, headers: {Host: a.xxxxxxx.site}}}

请问是哪里出了问题?

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.