Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]希望能增加更多实用功能 #36

Closed
QAQ5555 opened this issue Feb 18, 2024 · 34 comments
Closed

[Feature]希望能增加更多实用功能 #36

QAQ5555 opened this issue Feb 18, 2024 · 34 comments

Comments

@QAQ5555
Copy link

QAQ5555 commented Feb 18, 2024

*节点信息输出
脚本输出节点信息改为选择输出格式为url亦或json格式,亦可按照客户端分类而不是一次输出所有

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

以下的建议更接近机场面板管理方式

多用户支持与多端口
多用户支持:脚本新增多用户系统,允许添加多个用户
同端口与不同端口:提供配置选项,允许为每个用户指定独立的端口,或配置多用户共享同一端口。共享端口时,软件需要能够根据连接的认证信息来区分不同的用户。

流量计算
分用户流量计算:通过uuid跟踪和记录每个用户的流量使用情况。亦或使用xray或者wg建立的网卡统计

#支持订阅和Token鉴权
订阅服务:提供一个动态更新配置的机制,允许用户通过特定的URL订阅其配置信息。
订阅链接Token鉴权:实现一种机制,要求用户在连接时提供有效的Token作为认证方式。

#支持多个vps联动操作
在主vps操作脚本后下发到其他vps而无需一台一台操作,主vps可以不作为节点使用,可以将订阅服务建立在主vps上

@fscarmen
Copy link
Owner

*节点信息输出
脚本输出节点信息改为选择输出格式为url亦或json格式,亦可按照客户端分类而不是一次输出所有

输出 url 或者 json ,这个应该是按客户端的要求来输出的哦,而且即使是 url ,不同的客户端 url 都有可能不同,像小火箭与 v2rayN 的 url 就不能通用,特别是遇到 ipv6 only 的服务器,对地址的要求有的是 IPv6,有的是 [IPv6] ,有的是 [[IPv6]]。

按客户端分类显示,甚至按节点类型分流,这里又需要增加1到2个多选交互,让用户选择要的输出,我以我是用户的来看,多交互就麻烦了一些,还不如输出所有,喜欢哪些找哪些样不太好。

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

隧道变更了,或者重启了,临时隧道是实时获取,会跟着更新的

ubuntu $ argox -n 
......
      {
        "type":"trojan",
......
          "headers": {
            "Host": "donna-overall-presentation-conclusions.trycloudflare.com"
          },
......

ubuntu $ argox -a; argox -a; argox -n
Removed /etc/systemd/system/multi-user.target.wants/argo.service.

 Argo 关闭 成功


Created symlink /etc/systemd/system/multi-user.target.wants/argo.service → /etc/systemd/system/argo.service.

 Argo 开启 成功

......
      {
        "type":"trojan",
......
          "headers": {
            "Host": "avg-military-adobe-enjoy.trycloudflare.com"
          },
......

以下的建议更接近机场面板管理方式

没有用机场,对这块完全不了解;如果是机场技术人员或者机场主,应该有更好的技术方案,而不会使用本脚本,好像 x-ui 能实现你说的功能。

@QAQ5555
Copy link
Author

QAQ5555 commented Feb 18, 2024

我还以为重启临时隧道会失效呢,那看来是我本地网络的问题,节点重启后cdn节点就会连不上,然后我去看youtube说是临时隧道会失效
纯个人用户,但是我想部署多个节点,v2和sspanel没搞懂怎么搭建,又不能docker搭面板,而且据我所知还没有面板支持argo的吧,x-ui也是单节点使用的
我是想和朋友用的,想区分一下和统计流量,但是我不会弄

@fscarmen
Copy link
Owner

我还以为重启临时隧道会失效呢,那看来是我本地网络的问题,节点重启后cdn节点就会连不上,然后我去看youtube说是临时隧道会失效

会重新更换个新的临时域名,原来的的确是不能用了,但会自动换新的,用 argox -n 看一下就行,安装后也有提示通过 url 能查看最新的

image

纯个人用户,但是我想部署多个节点,v2和sspanel没搞懂怎么搭建,又不能docker搭面板,而且据我所知还没有面板支持argo的吧,x-ui也是单节点使用的

Sorry,我完全没有接触过 sspanel,而 x-ui 也极少用,所以暂时没有计划支持了。

@QAQ5555
Copy link
Author

QAQ5555 commented Feb 24, 2024

可以研究下这个
https://github.com/mack-a/v2ray-agent
该脚本有订阅功能且支持主vps从其他vps拉取链接组合成一个订阅(抄抄代码,因为该脚本未支持argo隧道)

其他订阅功能的开源代码
https://github.com/tindy2013/subconverter
用于链接的转换和订阅,有些面板集成这个代替自己写订阅功能
https://github.com/stilleshan/dockerfiles/tree/main/sub
这是短链加订阅转换

@fscarmen
Copy link
Owner

fscarmen commented Feb 24, 2024

可以研究下这个
https://github.com/mack-a/v2ray-agent 该脚本有订阅功能且支持主vps从其他vps拉取链接组合成一个订阅(抄抄代码,因为该脚本未支持argo隧道)

我已经安装这个了八合一,也了解了大体的实现方式,订阅模块做得很棒,但抱歉出于下列原因仍然不会支持。

  1. 项目定位:本项目面向自用用户,以轻量为主,依赖越少越好。在资源占用上,已经比一般的项目多了个Argo,实在不想再安装更多的依赖,如 jq , binutils ,qrencode , lsb-release , nginx,semanage ,acme.sh 等,这些通通不要,也不需要域名。而实现订阅,需要 Nginx 反代本地的配置文件到公网。

  2. Argo适用环境:Argo ( Cloudflare Tunnel ) 设计出来是为了实现内网穿透,专治不能向公网暴露端口的 VPS 或者容器平台,如果考虑在这样的环境下还要能访问到,那必须把 Argo 再反代 nginx,通过 Argo 的固定域名访问订阅,但又带来另一个新问题,这样临时隧道又支持不了。

  3. 客户端支持:本项目输出的节点支持 v2rayN / nekobox / Shadowsocks / clash mihomo / sing-box ,在此项目上如再结合其他模块,那我必须及时紧跟各客户端的升级和高级使用了,我也没有这样的能力,这也是我最早设计时,没有把 clash 和 sing-box 的完整配置输出的原因,否则到时一大堆 XXX 服务器 YYY 节点在 ZZZ 客户端使用不了的 Issue了,还有什么dns泄露,token 导致节点被盗。同时还有 Sing-box 也不断更新,旧的配置在新版本内核下有可能使用不了尴尬。

  4. 精力问题:八合一项目多人维护一个项目,又卖产品又有捐赠。反观我是一人维护N个项目,产品三无,无广告,无捐赠,无大 LOGO,加之日常还有工作和有时间都想玩玩新的东西,所以实在没有精力再处理这块。

最后感谢你对本项目的支持和非常好的建议。

@fscarmen
Copy link
Owner

其他订阅功能的开源代码
https://github.com/tindy2013/subconverter
用于链接的转换和订阅,有些面板集成这个代替自己写订阅功能
https://github.com/stilleshan/dockerfiles/tree/main/sub
这是短链加订阅转换

这两个项目,我下周看看是否适合集成至本项目。

@QAQ5555
Copy link
Author

QAQ5555 commented Feb 26, 2024

可以采用github私人库存储节点信息,免去订阅服务域名和端口暴露问题

@fscarmen
Copy link
Owner

fscarmen commented Feb 26, 2024

可以采用github私人库存储节点信息,免去订阅服务域名和端口暴露问题

按我理解,github 私库要用 git 依赖 + 一系列指令git clone / git add . / git commit -m / git push 才能把节点文件上传,而 gist 可以,不过每次文件变化又带来地址的变化,有没有相关的项目,放私库来实现的?
clash 的 proxy-providers 也不支持私库!需要公网能访问到的url才行啊

@fscarmen
Copy link
Owner

可以采用github私人库存储节点信息,免去订阅服务域名和端口暴露问题

按我理解,github / gitlab 私库要用 git 依赖 + 一系列指令git clone / git add . / git commit -m / git push 才能把节点文件上传,这个都不是问题,脚本能处理。
我在考虑以下三件事:

  1. 要在vps本地记录 github / gitlab 具有库管理的权限的 Token 同时,不知道安全性用户如何看待。
  2. 多个 vps 共用一个私库还是一个vps对应一个私库,按我理解,应该是前者会好点,通过文件名作匹配,否则安装一次要建一个私库也很难管理。
  3. 放在 gist 的话也需要 token 上传,每次文件变化又带来地址的变化?

这样看来,八合一的 nginx 方案还好一些。

@fscarmen
Copy link
Owner

今晚试了一下,适合做在 Sba 的脚本,稍后更新。

@fscarmen
Copy link
Owner

fscarmen commented Mar 1, 2024

已经在 sba ( sing-box + argo ) 项目加了订阅功能,你可以使用了

bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sba/main/sba.sh)
*******************************************
┌────────────────┐  ┌────────────────┐
│                │  │                │
│     V2rayN     │  │    NekoBox     │
│                │  │                │
└────────────────┘  └────────────────┘
----------------------------
vless://509325ce-badd-4492-8be3-7e1138a6ee3e@148.113.6.17:342?security=reality&sni=addons.mozilla.org&fp=chrome&pbk=ADpi5SVXSQeVw5rQ6Zghi4fmlu3UAGr5NysTxgusEWo&type=tcp&encryption=none#ubuntu%20vless-reality-vision

vless://509325ce-badd-4492-8be3-7e1138a6ee3e@cn.azhz.eu.org:443?encryption=none&security=tls&sni=spam-centered-recorders-length.trycloudflare.com&type=ws&host=spam-centered-recorders-length.trycloudflare.com&path=%2Fsba-vl#ubuntu-Vl

vmess://eyAidiI6ICIyIiwgInBzIjogInVidW50dS1WbSIsICJhZGQiOiAiY24uYXpoei5ldS5vcmciLCAicG9ydCI6ICI0NDMiLCAiaWQiOiAiNTA5MzI1Y2UtYmFkZC00NDkyLThiZTMtN2UxMTM4YTZlZTNlIiwgImFpZCI6ICIwIiwgInNjeSI6ICJub25lIiwgIm5ldCI6ICJ3cyIsICJ0eXBlIjogIm5vbmUiLCAiaG9zdCI6ICJzcGFtLWNlbnRlcmVkLXJlY29yZGVycy1sZW5ndGgudHJ5Y2xvdWRmbGFyZS5jb20iLCAicGF0aCI6ICIvc2JhLXZtIiwgInRscyI6ICJ0bHMiLCAic25pIjogInNwYW0tY2VudGVyZWQtcmVjb3JkZXJzLWxlbmd0aC50cnljbG91ZGZsYXJlLmNvbSIsICJhbHBuIjogIiIgfQ==

trojan://509325ce-badd-4492-8be3-7e1138a6ee3e@cn.azhz.eu.org:443?security=tls&sni=spam-centered-recorders-length.trycloudflare.com&type=ws&host=spam-centered-recorders-length.trycloudflare.com&path=%2Fsba-tr#ubuntu-Tr

+++++ 可开启多路复用 +++++

*******************************************
┌────────────────┐
│                │
│  Shadowrocket  │
│                │
└────────────────┘
----------------------------
vless://YXV0bzo1MDkzMjVjZS1iYWRkLTQ0OTItOGJlMy03ZTExMzhhNmVlM2VAMTQ4LjExMy42LjE3OjM0Mg==?remarks=ubuntu%20vless-reality-vision&obfs=none&tls=1&peer=addons.mozilla.org&mux=1&pbk=ADpi5SVXSQeVw5rQ6Zghi4fmlu3UAGr5NysTxgusEWo

vless://YXV0bzo1MDkzMjVjZS1iYWRkLTQ0OTItOGJlMy03ZTExMzhhNmVlM2VAY24uYXpoei5ldS5vcmc6NDQz?remarks=ubuntu-Vl&obfsParam=spam-centered-recorders-length.trycloudflare.com&path=/sba-vl?ed=2048&obfs=websocket&tls=1&peer=spam-centered-recorders-length.trycloudflare.com&mux=1

vmess://bm9uZTo1MDkzMjVjZS1iYWRkLTQ0OTItOGJlMy03ZTExMzhhNmVlM2VAY24uYXpoei5ldS5vcmc6NDQz?remarks=ubuntu-Vm&obfsParam=spam-centered-recorders-length.trycloudflare.com&path=/sba-vm?ed=2048&obfs=websocket&tls=1&peer=spam-centered-recorders-length.trycloudflare.com&mux=1&alterId=0

trojan://509325ce-badd-4492-8be3-7e1138a6ee3e@cn.azhz.eu.org:443?peer=spam-centered-recorders-length.trycloudflare.com&mux=1&plugin=obfs-local;obfs=websocket;obfs-host=spam-centered-recorders-length.trycloudflare.com;obfs-uri=/sba-tr?ed=2048#ubuntu-Tr

*******************************************
┌────────────────┐
│                │
│   Clash Meta   │
│                │
└────────────────┘
----------------------------
  - {name: "ubuntu vless-reality-vision", type: vless, server: 148.113.6.17, port: 342, uuid: 509325ce-badd-4492-8be3-7e1138a6ee3e, network: tcp, udp: true, tls: true, servername: addons.mozilla.org, client-fingerprint: chrome, reality-opts: {public-key: ADpi5SVXSQeVw5rQ6Zghi4fmlu3UAGr5NysTxgusEWo, short-id: ""}, smux: { enabled: true, protocol: 'h2mux', padding: true, max-connections: '8', min-streams: '16', statistic: true, only-tcp: false } }

  - {name: "ubuntu-Vl", type: vless, server: cn.azhz.eu.org, port: 443, uuid: 509325ce-badd-4492-8be3-7e1138a6ee3e, tls: true, servername: spam-centered-recorders-length.trycloudflare.com, skip-cert-verify: false, network: ws, ws-opts: { path: "/sba-vl?ed=2048", max-early-data: 2048, early-data-header-name: Sec-WebSocket-Protocol, headers: { Host: spam-centered-recorders-length.trycloudflare.com}}, udp: true, smux: { enabled: true, protocol: 'h2mux', padding: true, max-connections: '8', min-streams: '16', statistic: true, only-tcp: false } }

  - {name: "ubuntu-Vm", type: vmess, server: cn.azhz.eu.org, port: 443, uuid: 509325ce-badd-4492-8be3-7e1138a6ee3e, alterId: 0, cipher: none, tls: true, skip-cert-verify: true, network: ws, ws-opts: { path: "/sba-vm?ed=2048", max-early-data: 2048, early-data-header-name: Sec-WebSocket-Protocol, headers: {Host: spam-centered-recorders-length.trycloudflare.com}}, udp: true, smux: { enabled: true, protocol: 'h2mux', padding: true, max-connections: '8', min-streams: '16', statistic: true, only-tcp: false } }

  - {name: "ubuntu-Tr", type: trojan, server: cn.azhz.eu.org, port: 443, password: 509325ce-badd-4492-8be3-7e1138a6ee3e, udp: true, tls: true, sni: spam-centered-recorders-length.trycloudflare.com, skip-cert-verify: false, network: ws, ws-opts: { path: "/sba-tr?ed=2048", max-early-data: 2048, early-data-header-name: Sec-WebSocket-Protocol, headers: { Host: spam-centered-recorders-length.trycloudflare.com } }, smux: { enabled: true, protocol: 'h2mux', padding: true, max-connections: '8', min-streams: '16', statistic: true, only-tcp: false } }

*******************************************
┌────────────────┐
│                │
│    Sing-box    │
│                │
└────────────────┘
----------------------------
{
  "outbounds":[
      {
        "type":"vless",
        "tag":"ubuntu vless-reality-vision",
        "server":"148.113.6.17",
        "server_port":342,
        "uuid":"509325ce-badd-4492-8be3-7e1138a6ee3e",
        "flow":"",
        "packet_encoding":"xudp",
        "tls":{
            "enabled":true,
            "server_name":"addons.mozilla.org",
            "utls":{
                "enabled":true,
                "fingerprint":"chrome"
            },
            "reality":{
                "enabled":true,
                "public_key":"ADpi5SVXSQeVw5rQ6Zghi4fmlu3UAGr5NysTxgusEWo",
                "short_id":""
            }
        },
        "multiplex":{
            "enabled":true,
            "protocol":"h2mux",
            "max_connections":16,
            "padding": true
        }
      },
      {
        "type": "vless",
        "tag": "ubuntu-Vl",
        "server":"cn.azhz.eu.org",
        "server_port":443,
        "uuid":"509325ce-badd-4492-8be3-7e1138a6ee3e",
        "tls": {
          "enabled":true,
          "server_name":"spam-centered-recorders-length.trycloudflare.com",
          "utls": {
            "enabled":true,
            "fingerprint":"chrome"
          }
        },
        "transport": {
          "type":"ws",
          "path":"/sba-vl",
          "headers": {
            "Host": "spam-centered-recorders-length.trycloudflare.com"
          },
          "max_early_data":2408,
          "early_data_header_name":"Sec-WebSocket-Protocol"
        },
        "multiplex": {
          "enabled":true,
          "protocol":"h2mux",
          "max_streams":16,
          "padding": true
        }
      },
      {
        "type": "vmess",
        "tag": "ubuntu-Vm",
        "server":"cn.azhz.eu.org",
        "server_port":443,
        "uuid":"509325ce-badd-4492-8be3-7e1138a6ee3e",
        "tls": {
          "enabled":true,
          "server_name":"spam-centered-recorders-length.trycloudflare.com",
          "utls": {
            "enabled":true,
            "fingerprint":"chrome"
          }
        },
        "transport": {
          "type":"ws",
          "path":"/sba-vm",
          "headers": {
            "Host": "spam-centered-recorders-length.trycloudflare.com"
          },
          "max_early_data":2408,
          "early_data_header_name":"Sec-WebSocket-Protocol"
        },
        "multiplex": {
          "enabled":true,
          "protocol":"h2mux",
          "max_streams":16,
          "padding": true
        }
      },
      {
        "type":"trojan",
        "tag":"ubuntu-Tr",
        "server": "cn.azhz.eu.org",
        "server_port": 443,
        "password": "509325ce-badd-4492-8be3-7e1138a6ee3e",
        "tls": {
          "enabled":true,
          "server_name":"spam-centered-recorders-length.trycloudflare.com",
          "utls": {
            "enabled":true,
            "fingerprint":"chrome"
          }
        },
        "transport": {
            "type":"ws",
            "path":"/sba-tr",
            "headers": {
              "Host": "spam-centered-recorders-length.trycloudflare.com"
            },
            "max_early_data":2408,
            "early_data_header_name":"Sec-WebSocket-Protocol"
          },
        "multiplex": {
          "enabled":true,
          "protocol":"h2mux",
          "max_connections": 16,
          "padding": true
        }
      }
  ]
}

 完整模板可参照:
 https://t.me/ztvps/67
 https://github.com/chika0801/sing-box-examples/tree/main/Tun

*******************************************

Index:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/

QR code:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/qr

V2rayN / Nekoray 订阅:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/base64
█ ▄▄▄▄▄ █▀ █▀▀▄▄▀▀█▄▄ ▄▄▄█▄▀▀ █ ▄▄▄▄▄ █
█ █   █ █▀ ▄ █▀▀▀▀▀▄██▄▀█ ▀▀▄▄█ █   █ █
█ █▄▄▄█ █▀█ █▄██▀▀█▄▄▄ ▀▄▀█▀▀▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█▄█ █ ▀▄█ ▀▄▀ █▄█ █▄█▄▄▄▄▄▄▄█
█    ▄█▄   ▄█▄▄▀▄▄  ▀▀██ ▄ ▄▄  █ █ ▀ ██
█ ▀▀██▄▄▀▄██ ▄▄▄ ▄███ ▀▄▀▄▄▄▄██▄ █ ▄▀▄█
█▀▀ ▄▄█▄▀▄▀ ▄ ▄▄▄▄▄▄ █▀▄▀▄▄▄▄ ▄▄▀▄▄ ▀▄█
█ ▄█ █ ▄██▀▀▀ █   █▀█ ▀▀█▄▄     ▀█▀▄▄ █
█▄█▄▄▀▀▄▀▀▀▄▄ ▄▄▄▀▄▄▀▀█▄▀▄▄ ▄▀▄▄ ▄▄ ▀▄█
█ ▀█▀█▀▄█▄▄▄█▄█ ▄ █▀▀▄▀ ███▄ ▀▄ ▀ █▄▄ █
█  ▀█▀▀▄▄ ▀ ▀▀▄▀▄▄ ▄▀▀█▄▀█ ▄▄▀█▄▀▄▀▄ ▄█
█ ▄ ▀  ▄  ▄▀▀▄▄▀  █▄█   ▀███▄█ ▀ ██▄▄ █
█▀  ▀ ▀▄▀   ▀▀▄▄██▄▄▀▄██ ▄ █▄  ▄▀▄▀▄ ▄█
█ █▀▀  ▄ ▀ ████ ▄▄▄ ▀█▀ █▄▄▄▄ █▄▄▄▄█▄ █
█▄█▄▄█▄▄▄  ▀▀▄ █▄▄  ▀▄▀▀ ▄▄ ▀ ▄▄▄  ▄███
█ ▄▄▄▄▄ █▄▄█▀▀▄   ██▀▄  ▀▀█▄█ █▄█ ██  █
█ █   █ █ ▄▄▀█▄▄▄▀ ▄▀▄▀▀▀▄▄ ▄   ▄ ▄ ▄▄█
█ █▄▄▄█ █ ▀▄█▀▄█▄██ █▄ ██▀▄█ ▀▀▀ █▀█▄ █
█▄▄▄▄▄▄▄█▄▄██▄▄▄▄█▄█▄▄██▄█▄▄██▄▄▄▄▄▄▄▄█

Clash 订阅:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/clash

sing-box for pc 订阅:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/sing-box-pc

sing-box for cellphone 订阅:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/sing-box-phone

Shadowrocket 订阅:
https://spam-centered-recorders-length.trycloudflare.com/509325ce-badd-4492-8be3-7e1138a6ee3e/proxies
█ ▄▄▄▄▄ █▄▀▀▄▄▀▀█ ▄▄▀█ ███▀▄█▀█ ▄▄▄▄▄ █
█ █   █ ███▄█  ██▄▀▄▄▀ ▄█  █ ▀█ █   █ █
█ █▄▄▄█ ██▄▀▄▀█▄██ ▄▄█▄█▀▀█ ███ █▄▄▄█ █
█▄▄▄▄▄▄▄█ █ ▀▄▀▄█▄█ █ █ █▄▀▄▀▄█▄▄▄▄▄▄▄█
█  █  ▀▄▀█ ▄▄ ██ ▀   █▀  ▄▀  █▀▄▀▀██▀▄█
█▀ ▄ ▀ ▄▀ █▄▄ ▄█▄  ██▀█ ▄▄▄█ ▀ ▄ ▄▄ ▄▄█
█▄ ▀█▄█▄ ▄▄██ ▀▀ ██▄█ ██ ▄▀▀ ▀█▄▄▀ ▀ ▄█
█▄▀▄▀▀ ▄▄███▀▀▄▄▄██▀▄▄█▄█▄█▄▄█   ▀█▀▄ █
███▀▀▀▀▄██▄▀▄█▄█ █▀▄▀ ▀ ▄▄▄▀ █▀▄ █ ▄▄▄█
█▀▄▀▄▀█▄  ▄▀▄█ █ ▀▄▀▄▀█▀▄█ ▀▄ █ ▄█▀██ █
█  ▄ █▄▄▄▀▀▄▀▄██ ▀ ▄ █▀▀▀█▀  ▄█▄  █▀ ▄█
█ ▀▀ ▄▄▄█▄▀█ ▀▄ ▄▄ ▄█▀▄▄▄██▄ ▀█▀ ▄▀ ▀ █
█ █ ▄  ▄▄▀█ ▀▄▀▀▀▄█▄▄▀▀▄▀▄█  ▀▀▄▄▀██▀▄█
█ ▄▀▄██▄▄██▀█ ▄▄ ▀▄  ▀███▄█  ██▄█   ▄ █
█▄███▄▄▄▄▀ ▀██ ▄  █ ▀████▄▄▀█ ▄▄▄ ▄  ██
█ ▄▄▄▄▄ ██ ▀ █▀█▄▀▄█▄▀▄▀ ▀ ▀▀ █▄█ ▀▄█▄█
█ █   █ █ ▀█ ▄█▄ ▄ ▄  █▄▀▄█▄ ▄  ▄▄ █▄▄█
█ █▄▄▄█ █▀ █▄ █▄ ▀  ██▄▀ ▀▄▄▄█▄▀ ▄█▀▀ █
█▄▄▄▄▄▄▄█▄█▄▄███▄▄█████▄█████▄█▄██▄██▄█


*******************************************

 临时隧道域名可以从以下网站获取: http://148.113.6.17:3014/quicktunnel 

 脚本当天运行次数: 176,累计运行次数: 68409 
image

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 2, 2024

sba在运行好像出问题了

脚本版本:1.0.5 功能新增:增加 V2rayN / Nekobox / Clash / sing-box / Shadowrocket 订阅,https:////<base64 | clash | sing-box-pc | sing-box-phone | proxies | qr>, 所有订阅的索引: https:////,需要重新安装 系统信息: 当前操作系统:Alpine Linux v3.18 内核:6.5.11-8-pve 处理器架构: 虚拟化:lxckvm Argo: 关闭 Sing-box: 未安装 Nginx: 关闭

1 . 查看节点信息 (sb -n) 2 . 开启 Argo (sb -a) 3 . 开启 Sing-box (sb -s) 4 . 更换 Argo 隧道 (sb -t) 5 . 同步 Argo 和 Sing-box 至最新版本 (sb -v) 6 . 升级内核、安装BBR、DD脚本 (sb -b) 7 . 卸载 (sb -u) 8 . 安装 Sing-box 协议全家桶脚本 [https://github.com/fscarmen/sing-box] 9 . 安装 ArgoX 脚本 (argo + xray) [https://github.com/fscarmen/argox] 10. 安装 TCP brutal 0 . 退出
请选择: 5/dev/fd/62: line 1280: /etc/sba/cloudflared: Not a directory
ARGO 本地版本: 最新版本: 2024.2.1
升级请按 [y],默认不升级: y
/dev/fd/62: line 1285: /etc/sba/sing-box: Not a directory
Sing-box 本地版本: 最新版本: 1.9.0-beta.7
升级请按 [y],默认不升级: y
--2024-03-02 17:22:24-- https://cdn2.cloudflare.now.cc/https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64Resolving cdn2.cloudflare.now.cc (cdn2.cloudflare.now.cc)... 2606:4700:3036::ac43:9c2c, 2606:4700:3033::6815:30ca, 104.21.48.202, ...Connecting to cdn2.cloudflare.now.cc (cdn2.cloudflare.now.cc)|2606:4700:3036::ac43:9c2c|:443... connected.HTTP request sent, awaiting response... 302 FoundCookie coming from cdn2.cloudflare.now.cc attempted to set domain to github.comCookie coming from cdn2.cloudflare.now.cc attempted to set domain to github.comLocation: /https://github.com/cloudflare/cloudflared/releases/download/2024.2.1/cloudflared-linux-amd64 [following]--2024-03-02 17:22:24-- https://cdn2.cloudflare.now.cc/https://github.com/cloudflare/cloudflared/releases/download/2024.2.1/cloudflared-linux-amd64Reusing existing connection to [cdn2.cloudflare.now.cc]:443.HTTP request sent, awaiting response... 200 OKLength: 36490199 (35M) [application/octet-stream]Saving to: '/tmp/sba/cloudflared'
/tmp/sba/clo 100% 34.80M 104MB/s in 0.3s
2024-03-02 17:22:25 (104 MB/s) - '/tmp/sba/cloudflared' saved [36490199/36490199]
mv: can't stat '/etc/sba/cloudflared': Not a directory
Argo 开启 成功
ERROR:systemctl:Unit sing-box.service not found.
ERROR:systemctl:Unit sing-box.service not found.
ERROR:systemctl:Unit sing-box.service not found.
Sing-box 开启 失败

@fscarmen
Copy link
Owner

fscarmen commented Mar 2, 2024 via email

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 2, 2024

sba卸载不掉啊,说sba未安装

@fscarmen
Copy link
Owner

fscarmen commented Mar 2, 2024

先御argox,可能有冲突?

@fscarmen
Copy link
Owner

fscarmen commented Mar 2, 2024

sba卸载不掉啊,说sba未安装
看看

bash -x <(wget -qO- https://raw.githubusercontent.com/fscarmen/sba/main/sba.sh) -u

@fscarmen
Copy link
Owner

fscarmen commented Mar 2, 2024

argox 也已经加了订阅功能了,需要重新安装。

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 3, 2024

为什么重新安装了也不行呢

  1. 查看节点信息 (argox -n)
  2. 关闭 Argo (argox -a)
  3. 关闭 Xray (argox -x)
  4. 更换 Argo 隧道 (argox -t)
  5. 同步 Argo 和 Xray 至最新版本 (argox -v)
  6. 升级内核、安装BBR、DD脚本 (argox -b)
  7. 卸载 (argox -u)
  8. 安装 Sing-box 协议全家桶脚本 [https://github.com/fscarmen/sing-box]
  9. 安装 sba 脚本 (argo + sing-box) [https://github.com/fscarmen/sba]
  10. 退出

请选择: 1
/dev/fd/63: line 1028: /etc/argox/subscribe/proxies: No such file or directory
/dev/fd/63: line 1039: /etc/argox/subscribe/clash: No such file or directory
/dev/fd/63: line 1046: /etc/argox/subscribe/base64: No such file or directory
/dev/fd/63: line 1053: /etc/argox/subscribe/sing-box-pc: No such file or directory
/dev/fd/63: line 1054: /etc/argox/subscribe/sing-box-phone: No such file or directory
/dev/fd/63: line 1057: /etc/argox/subscribe/qr: No such file or directory
/dev/fd/63: line 1072: qrencode: command not found
/dev/fd/63: line 1072: qrencode: command not found

@fscarmen
Copy link
Owner

fscarmen commented Mar 3, 2024 via email

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 3, 2024

是的

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 3, 2024

使用github里的脚本的话是这样的
ERROR:systemctl: argo.service: Exec is not an absolute path: ExecStartPre=nginx -c /etc/argox/nginx.conf
ERROR:systemctl: argo.service: Exec command does not exist: (ExecStartPre) nginx
ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR:systemctl: The SystemD ExecXY commands must always be absolute paths by definition.
ERROR:systemctl: Oops, 1 executable paths were not found in the current environment. Refusing.
ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR:systemctl:the ExecStartPre control process exited with error code

Argo 开启 成功

Xray 开启 成功

Argo 服务未开启,不能输出节点信息。如需打开请按 [y]: y
ERROR:systemctl: argo.service: Exec is not an absolute path: ExecStartPre=nginx -c /etc/argox/nginx.conf
ERROR:systemctl: argo.service: Exec command does not exist: (ExecStartPre) nginx
ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR:systemctl: The SystemD ExecXY commands must always be absolute paths by definition.
ERROR:systemctl: Oops, 1 executable paths were not found in the current environment. Refusing.
ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR:systemctl:the ExecStartPre control process exited with error code
/dev/fd/64: line 1053: jq: command not found
/dev/fd/64: line 1054: jq: command not found
/dev/fd/64: line 1057: qrencode: command not found
/dev/fd/64: line 1057: qrencode: command not found
/dev/fd/64: line 1072: qrencode: command not found
/dev/fd/64: line 1072: qrencode: command not found

装了两次,第二次也报同样的错但是后面就输出节点信息了,但是订阅地址是https://uuid/base这样的

@fscarmen
Copy link
Owner

fscarmen commented Mar 3, 2024

是的

我之前没有 Alpine 的环境测试,刚才借了台机器来适配 Alpine ,sba 和 argox 都可以,你再安装看看。

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 3, 2024

OK,运行正常,但是我个人建议去除trojan的链接,容易检测,然后就是不清楚使用固定隧道有没有域名被墙的风险,使用固定隧道订阅,临时隧道作为节点会不会更好

@fscarmen
Copy link
Owner

fscarmen commented Mar 4, 2024

sing-box 全家桶脚本也加上订阅了。

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

这个是定时获取最新的隧道信息,自动更新订阅吗?

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 4, 2024

sing-box 全家桶脚本也加上订阅了。

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

这个是定时获取最新的隧道信息,自动更新订阅吗?

好像那时候是这个意思

但是现在订阅如果选择的是临时隧道,订阅地址就是用的临时隧道,临时隧道重启就要重新查域名,在改订阅地址再订阅太麻烦了,可以弄两个隧道,不然订阅地址只能通过临时隧道获取,又要查临时隧道地址很麻烦,不知道两个隧道会不会占用太多,我看你之前好像也有博客写了双隧道,或者选择nginx正常反代一个网站

@fscarmen
Copy link
Owner

fscarmen commented Mar 4, 2024

临时隧道有办法查,脚本结尾有提示,又临时又固定的方案我不认同,有既然固定了,还为什么要多条临时呢?要知道argo隧道也占资源的。

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 4, 2024

临时隧道有办法查,脚本结尾有提示,又临时又固定的方案我不认同,有既然固定了,还为什么要多条临时呢?要知道argo隧道也占资源的。

但是现在订阅是在临时隧道上的,查临时隧道然后又去修改订阅地址完全违背了加订阅的初衷,没有变的更方便,订阅本身就是懒得查临时隧道才弄的,而且有的动态ip的设备查隧道的地址完全用不了报400

@fscarmen
Copy link
Owner

fscarmen commented Mar 4, 2024

你是要弄两条隧道,一条固定的用于订阅,另一个临时的用于科学?
如果是的话,我仍然理解不了,为什么不直接用一条固定的既能科学,又能订阅,可以共用的,无论是 token 或者 json 方式。

@QAQ5555
Copy link
Author

QAQ5555 commented Mar 5, 2024

你是要弄两条隧道,一条固定的用于订阅,另一个临时的用于科学?
如果是的话,我仍然理解不了,为什么不直接用一条固定的既能科学,又能订阅,可以共用的,无论是 token 或者 json 方式。

但是固定隧道没必要做订阅吧,地址又不会变
或者做成订阅聚合?
固定隧道大流量会不会被墙域名呢?

@fscarmen
Copy link
Owner

fscarmen commented Mar 5, 2024

但是固定隧道没必要做订阅吧,地址又不会变

我想更多是为了分享给别人的,因为只有一条 link,还支持各位主流客户端,有的客户端还支持二维码,很方便扫。

或者做成订阅聚合?

订阅聚合应该是八合一那里先弄出来的,我自己就完全没有这样的需求,因为聚合一般在自己的 pc 里处理配置文件,像 clash
的 proxy-providers,因为除了节点,还有些 dns 、分流规则要处理 ,放在某台 vps 里感觉很不方便。

固定隧道大流量会不会被墙域名呢?

固定和临时都没有听过被墙的情况,因为你是走 cdn 的。

@fscarmen
Copy link
Owner

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

这项要放到 crontab ,确定有必要?

@QAQ5555
Copy link
Author

QAQ5555 commented Apr 8, 2024

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

这项要放到 crontab ,确定有必要?

呃,感觉不墙的话也没什么必要

@fscarmen
Copy link
Owner

fscarmen commented Apr 8, 2024

*提高可用性
隧道刷新: 自动刷新临时隧道和重启后刷新临时隧道,提高服务可用性

这项要放到 crontab ,确定有必要?

呃,感觉不墙的话也没什么必要

要墙的话,就是 trycloudflare.com 墙了,所有的临时隧道都用不了,刷新也没有用的了。

@fscarmen
Copy link
Owner

#支持多个vps联动操作
在主vps操作脚本后下发到其他vps而无需一台一台操作,主vps可以不作为节点使用,可以将订阅服务建立在主vps上

这个功能真那么好用吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants