Git Product home page Git Product logo

sb-for-serv00's Introduction

sb-for-Serv00

项目特点

  • 本项目用于在 Serv00 部署 Sing-box,采用的方案为 Sing-box + TLS ;

  • 无需自备域名,使用 Serv00 自带的域名实现 TLS ;

  • 同时支持 Hysteria2、Tuic5 和 Naïve 三协议;

  • JS 定时保活核心

TODO

目前由于 sing-box 的一个 bug,导致设置 Wireguard 出站时会内存错误直接闪退,无法正常使用,故目前本仓库暂不支持 IPv6。待 Sing-box 修复后,再进行更新添加 IPv6 支持。

部署

准备工作

首先你需要 1 个 Serv00 的账号。

如果你之前放行过端口,请确保你的端口不是 TCP 类型,如果放行过 TCP 端口,请将其删除。

然后是最重要的部分,生成一个 Let's Encrypt 证书:

在 Panel 中点击左侧菜单栏中的 SSL ,然后点击上方菜单栏中的 WWW websites ,点击第一个 IP Address 最右侧的 Manage 按钮,再点击上方菜单栏中的 Add certificate 按钮,Type 选择 Generate Let's Encrypt certificate, Domain任选一个即可,最后点击下方的 Add 按钮进行生成。请至少保证自己的 Serv00 账号下有一个 Let's Encrypt 的证书,否则无法使用本仓库!

友情提示,自己的域名添加 A 类型 DNS 记录指向 Serv00 的服务器后,也可以使用 Serv00 的面板内置的功能添加 Let's Encrypt 的证书,且对本仓库的运行同样有效。同时,自己的域名不受 Serv00 自带域名申请 SSL 证书时的每周数量限制。

部署 sb-for-Serv00

SSH 登录 Serv00,输入以下命令:

devil binexec on && killall -u $(whoami)

接着断开 SSH 并重新连接,输入以下命令:

bash <(curl -Ls https://raw.githubusercontent.com/k0baya/sb-for-serv00/main/entrypoint.sh)

并按照提示输入相关信息。

启动并获取配置

按照脚本提示进入 /status 的网页,并尝试刷新页面,直到进程列表中出现了包含 sing-box 字样的进程,就代表 Sb-for-Serv00 已经启动成功。此时你就可以通过访问 /list 路径查看到 Sb-for-Serv00 所提供的配置链接了。

自动启动

此次版本更新之后,Sb-for-Serv00 已经可以摆脱 Serv00 的 Crontab 启动,你可以通过访问网页对项目进行唤醒,如果你需要保活,可以使用以下公共服务对网页进行监控:

1 cron-job.org

2 UptimeRobot

同时,你也可以选择自建 Uptime-Kuma 等服务进行监控。

建议监控 /info 路径,因为该路径无需身份验证。

不要监控根路径,因为根路径为静态页面,只是该项目的伪装,无法起到保活效果。

常见问题

  1. 为什么连不上?

如果 /status 页面中 sing-box 进程正常运行,那么说明本项目运行正常,连接不上与 GFW 有关,已知 UDP 协议的连接经常会受到 GFW 的干扰。

  1. 为什么放行端口失败?

如果脚本自动放行端口失败,请手动去面板中添加三个类型为 UDP 的端口,再重新执行安装脚本。

补充中...

sb-for-serv00's People

Contributors

k0baya avatar

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.