@@ -14,7 +14,7 @@ tags: [sing-box, sing-boxr, ShellCrash, AdGuard Home, ruleset, rule_set, 分享,
14144 . 此方案适用于 ShellCrash(以 ARM64 架构为例,且安装路径为 ` /data/ShellCrash ` {: .filepath})
15155 . 此方案适用于 AdGuard Home(以 ARM64 架构为例,且安装路径为 ` /data/AdGuardHome ` {: .filepath})
16166 . 此方案不建议启用 ShellCrash 配置脚本 → 2) 功能设置 → 3) 透明路由流量过滤 → 2) 过滤局域网设备,因不经过内核的设备在访问 ` 漏网之鱼 ` 域名时会遇到无法访问的情况
17- 7 . 本人将路由器设置了每天早上 6 点重启,使得《[ 六 ] ( https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrashadguardhome-singboxr-ruleset/#%E5%85%AD -%E6%B7%BB%E5%8A%A0%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1 ) 》中设置的定时任务生效
17+ 7 . 本人将路由器设置了每天早上 6 点重启,使得《[ 五 ] ( https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrashadguardhome-singboxr-ruleset/#%E4%BA%94 -%E6%B7%BB%E5%8A%A0%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1 ) 》中设置的定时任务生效
18188 . 本教程搭载 [ sing-box 内核 reF1nd-Testing 版] ( https://github.com/reF1nd/sing-box/tree/reF1nd-testing )
1919
2020## 一、 生成配置文件 .json 文件直链
360360}
361361```
362362
363- ## 四、 编辑 http_clients 文件
364- 连接 SSH 后执行命令 ` vi $CRASHDIR/jsons/http_clients.json ` ,按一下 Ins 键(Insert 键),粘贴如下内容:
365-
366- ``` json
367- { "http_clients" : [ { "tag" : " detour_proxy" , "detour" : " GLOBAL" } ] }
368- ```
369-
370- ## 五、 编辑 experimental.json 文件
363+ ## 四、 编辑 experimental.json 文件
371364连接 SSH 后执行命令 ` vi $CRASHDIR/jsons/experimental.json ` ,按一下 Ins 键(Insert 键),粘贴如下内容:
372365
373366``` json
388381}
389382```
390383
391- ## 六 、 添加定时任务
384+ ## 五 、 添加定时任务
3923851 . 连接 SSH 后执行命令 ` vi $CRASHDIR/task/task.user ` ,按一下 Ins 键(Insert 键),粘贴如下内容:
393386``` shell
394387201#curl -sS -o $CRASHDIR /cn_ip.txt -L https://ghfast.top/https://github.com/DustinWin/geoip/releases/download/ips/cn_ipv4.txt && curl -sS -o $CRASHDIR /cn_ipv6.txt -L https://ghfast.top/https://github.com/DustinWin/geoip/releases/download/ips/cn_ipv6.txt > /dev/null 2>&1 #更新CN_IP文件
3983913 . 执行 ` sc ` ,进入 ShellCrash 配置脚本 → 5) 自动任务 → 1) 添加自动任务,可以看到末尾就有添加的定时任务,输入对应的数字并回车后可设置执行条件
399392<img src =" /assets/img/share/task-adguardhome.png " alt =" 添加定时任务 " width =" 60% " />
400393
401- ## 七 、 ShellCrash 设置
394+ ## 六 、 ShellCrash 设置
4023951 . 设置可参考《[ ShellCrash 搭载 sing-boxr 内核的配置-ruleset 方案/设置部分] ( https://proxy-tutorials.dustinwin.us.kg/posts/toolsettings-shellcrash-singboxr-ruleset/#%E4%B8%89-%E8%AE%BE%E7%BD%AE%E9%83%A8%E5%88%86 ) 》,此处只列举配置的不同之处
4033962 . 进入 ShellCrash 配置脚本 → 2) 功能设置 → 2) DNS 设置 → 7 DNS 劫持端口,设置为“5353”(须完成《[ 七] ( https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrashadguardhome-singboxr-ruleset/#%E4%B8%83-%E5%AE%89%E8%A3%85-adguard-home ) 》后才可设置)
4043973 . 进入 2) DNS 设置 → 9) 修改 DNS 服务器,设置如下:
427420sed -i ' s/log dns ntp certificate experimental/log dns ntp certificate http_clients experimental/' " $CRASHDIR /starts/singbox_modify.sh"
428421sed -i ' s/log dns ntp certificate experimental/log dns ntp certificate http_clients experimental/' " $CRASHDIR /menus/override.sh"
429422```
430- ## 八 、 安装 AdGuard Home
423+ ## 七 、 安装 AdGuard Home
431424连接 SSH 后执行如下命令:
432425
433426``` shell
@@ -451,10 +444,10 @@ ip6tables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
451444EOF
452445```
453446
454- ## 九 、 AdGuard Home 设置
447+ ## 八 、 AdGuard Home 设置
455448设置可参考《[ 全网最详细的解锁 SSH ShellCrash 搭载 sing-boxr 内核搭配 AdGuard Home 安装和配置教程/AdGuard Home 配置] ( https://proxy-tutorials.dustinwin.us.kg/posts/pin-shellcrashadguardhome-singboxr/#2-adguard-home-%E9%85%8D%E7%BD%AE ) 》
456449
457- ## 十 、 访问 Dashboard 面板
450+ ## 九 、 访问 Dashboard 面板
458451打开 < http://miwifi.com:9999/ui/ > 后,“主机”输入 ` 192.168.31.1 ` ,“端口”输入 ` 9999 ` ,点击“提交”即可访问 Dashboard 面板
459452
460453> 推荐设置
0 commit comments