更新 mihomo 内核、sing-box 内核、sing-box reF1nd 版内核、Dashboard 面板和 AdGuard Home
每天凌晨(北京时间 UTC+8)自动构建生成:
- mihomo Meta 版和 Alpha 版内核
- reF1nd-Stable 版和 reF1nd-Testing 版内核和 Android 安装包(支持提供者
providers,类似于 mihomo 内核的代理集合proxy-providers) - sing-box Stable 版和 Testing 版内核
- Dashboard 面板:Yacd-meta、metacubexd、zashboard 和 sing-box dashboard
- AdGuard Home Release 版和 Beta 版
注:
-
- 本教程中的下载链接以 CPU 架构 ARM64 为例,请注意修改链接后缀
-
- 查看 CPU 架构可连接 SSH 后执行命令
uname -ms,若执行结果是“linux aarch64”,就是搭载的 ARM64 架构
- 查看 CPU 架构可连接 SSH 后执行命令
-
- 本项目中 mihomo 内核和 sing-box 内核 Linux 端已精简
gvisor和tailscale
- 本项目中 mihomo 内核和 sing-box 内核 Linux 端已精简
-
- 本项目中 mihomo 内核、sing-box 内核和 AdGuard Home 的 Linux 端均采用 UPX 压缩方式
-
- 对下载源的说明,可点此了解
1. 导入内核(以 ShellCrash 导入内核为例)
① 首次导入
连接 SSH 后执行如下命令:
# mihomo 内核 Meta 版
curl -sS -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/mihomo/mihomo-meta-linux-arm64.upx && sc
# mihomo 内核 Alpha 版
curl -sS -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/mihomo/mihomo-alpha-linux-arm64.upx && sc
# sing-box 内核 reF1nd-Stable 版
curl -sS -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-ref1nd-stable-linux-arm64.upx && sc
# sing-box 内核 reF1nd-Testing 版
curl -sS -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-ref1nd-testing-linux-arm64.upx && sc
# sing-box 内核 Stable 版
curl -sS -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-stable-linux-arm64.upx && sc
# sing-box 内核 Testing 版
curl -sS -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-testing-linux-arm64.upx && sc此时脚本会自动“发现可用的内核文件”,选择 1 加载,后选择对应的内核
② 升级导入(ShellCrash → 9 更新/卸载 → 2 切换内核文件,内核版本不会刷新)
连接 SSH 后执行如下命令:
# mihomo 内核 Meta 版
curl -sS -o $CRASHDIR/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/mihomo/mihomo-meta-linux-arm64.upx && $CRASHDIR/start.sh restart
# mihomo 内核 Alpha 版
curl -sS -o $CRASHDIR/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/mihomo/mihomo-alpha-linux-arm64.upx && $CRASHDIR/start.sh restart
# sing-box 内核 reF1nd-Stable 版
curl -sS -o $CRASHDIR/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-ref1nd-stable-linux-arm64.upx && $CRASHDIR/start.sh restart
# sing-box 内核 reF1nd-Testing 版
curl -sS -o $CRASHDIR/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-ref1nd-testing-linux-arm64.upx && $CRASHDIR/start.sh restart
# sing-box 内核 Stable 版
curl -sS -o $CRASHDIR/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-stable-linux-arm64.upx && $CRASHDIR/start.sh restart
# sing-box 内核 Testing 版
curl -sS -o $CRASHDIR/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/sing-box/sing-box-testing-linux-arm64.upx && $CRASHDIR/start.sh restartDashboard 面板对应文件名和网址关系如下表:
| 面板名称 | 文件名 | 网址 |
|---|---|---|
| Yacd-meta | Yacd-meta.tar.gz |
https://yacd.metacubex.one |
| metacubexd | metacubexd.tar.gz |
https://metacubex.github.io/metacubexd/ |
| zashboard | zashboard.tar.gz |
https://board.zash.run.place |
| sing-box dashboard | sing-box-dashboard.tar.gz |
https://sing-box-dashboard.sagernet.org |
连接 SSH 后执行如下命令:
# Yacd-meta
curl -sS -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/Dashboard/Yacd-meta.tar.gz | tar -zx -C $CRASHDIR/ui/ && $CRASHDIR/start.sh restart
# metacubexd
curl -sS -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/Dashboard/metacubexd.tar.gz | tar -zx -C $CRASHDIR/ui/ && $CRASHDIR/start.sh restart
# zashboard
curl -sS -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/Dashboard/zashboard.tar.gz | tar -zx -C $CRASHDIR/ui/ && $CRASHDIR/start.sh restart
# sing-box dashboard
curl -sS -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/Dashboard/sing-box-dashboard.tar.gz | tar -zx -C $CRASHDIR/ui/ && $CRASHDIR/start.sh restart- 注:若使用基于 Chromium 项目开发的浏览器无法访问在线 Dashboard 面板时,以 Chrome 浏览器为例,需要设置该网址域名“允许显示不安全内容”。方法如下:
进入设置 → 隐私和安全 → 网站设置 → 更多内容设置 → 不安全内容(或者地址栏直接打开 chrome://settings/content/insecureContent 进行设置),在“允许显示不安全内容”内添加网址域名如:board.zash.run.place
① 安装 AdGuard Home
连接 SSH 后执行如下命令:
mkdir -p /data/AdGuardHome
# AdGuard Home Release 版
curl -sS -o /data/AdGuardHome/AdGuardHome -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/AdGuardHome/AdGuardHome_release_linux_arm64
# AdGuard Home Beta 版
curl -sS -o /data/AdGuardHome/AdGuardHome -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/AdGuardHome/AdGuardHome_beta_linux_arm64
chmod +x /data/AdGuardHome/AdGuardHome
cat <<'EOF' > /data/AdGuardHome/AdGuardHome.sh
#!/bin/sh /etc/rc.common
START=95
STOP=01
USE_PROCD=1
WORK_DIR="/data/AdGuardHome"
CONFIG_FILE="$WORK_DIR/AdGuardHome.yaml"
start_service() {
echo "AdGuard Home 正在启动..."
procd_open_instance
procd_set_param command "$WORK_DIR/AdGuardHome" -s run
procd_append_param command -c "$CONFIG_FILE"
procd_append_param command -w "$WORK_DIR"
procd_set_param pidfile /var/run/AdGuardHome.pid
procd_close_instance
echo "AdGuard Home 启动成功!"
}
stop_service() {
echo "AdGuard Home 正在停止..."
sleep 3
echo "AdGuard Home 停止成功!"
}
EOF
cp -f /data/AdGuardHome/AdGuardHome.sh /etc/init.d/AdGuardHome
chmod +x /etc/init.d/AdGuardHome && /etc/init.d/AdGuardHome start
# 将所有发往 53 端口的流量重定向到本地的 5353 端口
iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 5353
iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
ip6tables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 5353
ip6tables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
# 添加开机启动
cat <<EOF >> /data/auto_ssh/auto_ssh.sh
sleep 20s
cp -f /data/AdGuardHome/AdGuardHome.sh /etc/init.d/AdGuardHome
chmod +x /etc/init.d/AdGuardHome && /etc/init.d/AdGuardHome start
iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 5353
iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
ip6tables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 5353
ip6tables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
EOF② 升级 AdGuard Home
连接 SSH 后执行如下命令:
# AdGuard Home Release 版
curl -sS -o /data/AdGuardHome/AdGuardHome -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/AdGuardHome/AdGuardHome_release_linux_arm64
# AdGuard Home Beta 版
curl -sS -o /data/AdGuardHome/AdGuardHome -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/AdGuardHome/AdGuardHome_beta_linux_arm64
/data/AdGuardHome/AdGuardHome -s restart可在 ShellCrash 里添加定时更新 mihomo 内核、sing-box 内核、zashboard 和 AdGuard Home 的任务
- 进入 ShellCrash → 9) 更新与支持 → 2) 切换/更新内核文件 → 6) 使用自定义内核 → 9) 自定义内核链接,输入导入内核命令里的链接并回车,后“请确认该自定义内核的类型”
- 连接 SSH 后执行
vi $CRASHDIR/configs/task/task.user,按一下 Ins 键(Insert 键),粘贴如下内容:
201#curl -sS -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/Dashboard/zashboard.tar.gz | tar -zx -C $CRASHDIR/ui/ && $CRASHDIR/start.sh restart >/dev/null 2>&1#更新zashboard
202#curl -sS -o /data/AdGuardHome/AdGuardHome -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/download/AdGuardHome/AdGuardHome_beta_linux_arm64 && /data/AdGuardHome/AdGuardHome -s restart >/dev/null 2>&1#更新AdGuardHome- 按一下 Esc 键(退出键),输入英文冒号
:,继续输入wq并回车 - 执行
sc,进入 ShellCrash → 5 配置自动任务 → 1 添加自动任务,选择“8) 自动更新内核”和末尾处添加的定时任务,输入对应的数字并回车后可设置执行条件
Bitz Net(仅次于一线机场,推荐打折时购买)