Skip to content

Commit 0256fc0

Browse files
committed
统一 ShellCrash 上 mihomo 和 sing-boxr 的域名嗅探设置
1 parent b5ac55a commit 0256fc0

7 files changed

Lines changed: 7 additions & 23 deletions

_posts/2024-08-21-share-android-mihomo-ruleset.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ profile: {store-selected: true, store-fake-ip: true}
4949

5050
sniffer:
5151
enable: true
52+
parse-pure-ip: true
5253
sniff: {HTTP: {ports: [80, 8080-8880], override-destination: true}, TLS: {ports: [443, 8443]}, QUIC: {ports: [443, 8443]}}
5354
skip-domain: ['Mijia Cloud']
5455

_posts/2024-08-21-share-shellcrash-mihomo-geodata.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ profile: {store-selected: true, store-fake-ip: true}
169169
170170
geodata-mode: true
171171
172-
sniffer:
173-
enable: true
174-
sniff: {HTTP: {ports: [80, 8080-8880], override-destination: true}, TLS: {ports: [443, 8443]}, QUIC: {ports: [443, 8443]}}
175-
skip-domain: ['Mijia Cloud']
176-
177172
hosts:
178173
dns.alidns.com: [223.5.5.5, 223.6.6.6, 2400:3200::1, 2400:3200:baba::1]
179174
doh.pub: [1.12.12.12, 1.12.12.21, 120.53.53.53]
@@ -262,8 +257,7 @@ dns:
262257
2. 进入 ShellCrash 配置脚本 → 2 功能设置 → 2 DNS 设置 → 9 修改 DNS 服务器,设置如下:
263258
<img src="/assets/img/dns/dns-null.png" alt="设置部分 2" width="60%" />
264259

265-
3. 进入 2 功能设置,不要选择 5 启用域名嗅探(因 user.yaml 文件中已添加 `dns.sniffer` 配置项)
266-
4. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[一](https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrash-mihomo-geodata/#%E4%B8%80-%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-yaml-%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE)》中生成的配置文件 .yaml 文件直链,启动服务即可
260+
3. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[一](https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrash-mihomo-geodata/#%E4%B8%80-%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-yaml-%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE)》中生成的配置文件 .yaml 文件直链,启动服务即可
267261

268262
## 七、 访问 Dashboard 面板
269263
打开 <http://miwifi.com:9999/ui/> 后,“主机”输入 `192.168.31.1`,“端口”输入 `9999`,点击“提交”即可访问 Dashboard 面板

_posts/2024-08-21-share-shellcrash-mihomo-ruleset.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ external-ui-url: "https://github.com/Zephyruso/zashboard/archive/gh-pages-cdn-fo
266266
global-client-fingerprint: chrome
267267
profile: {store-selected: true, store-fake-ip: true}
268268
269-
sniffer:
270-
enable: true
271-
sniff: {HTTP: {ports: [80, 8080-8880], override-destination: true}, TLS: {ports: [443, 8443]}, QUIC: {ports: [443, 8443]}}
272-
skip-domain: ['Mijia Cloud']
273-
274269
hosts:
275270
dns.alidns.com: [223.5.5.5, 223.6.6.6, 2400:3200::1, 2400:3200:baba::1]
276271
doh.pub: [1.12.12.12, 1.12.12.21, 120.53.53.53]
@@ -358,8 +353,7 @@ dns:
358353
2. 进入 ShellCrash 配置脚本 → 2 功能设置 → 2 DNS 设置 → 9 修改 DNS 服务器,设置如下:
359354
<img src="/assets/img/dns/dns-null.png" alt="设置部分 2" width="60%" />
360355

361-
3. 进入 2 功能设置,不要选择 5 启用域名嗅探(因 user.yaml 文件中已添加 `dns.sniffer` 配置项)
362-
4. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[一](https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrash-mihomo-ruleset/#%E4%B8%80-%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-yaml-%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE)》中生成的配置文件 .yaml 文件直链,启动服务即可
356+
3. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[一](https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrash-mihomo-ruleset/#%E4%B8%80-%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-yaml-%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE)》中生成的配置文件 .yaml 文件直链,启动服务即可
363357

364358
## 六、 访问 Dashboard 面板
365359
打开 <http://miwifi.com:9999/ui/> 后,“主机”输入 `192.168.31.1`,“端口”输入 `9999`,点击“提交”即可访问 Dashboard 面板

_posts/2024-08-21-share-shellcrashadguardhome-mihomo-ruleset.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,6 @@ external-ui-url: "https://github.com/Zephyruso/zashboard/archive/gh-pages-cdn-fo
276276
global-client-fingerprint: chrome
277277
profile: {store-selected: true, store-fake-ip: true}
278278
279-
sniffer:
280-
enable: true
281-
sniff: {HTTP: {ports: [80, 8080-8880], override-destination: true}, TLS: {ports: [443, 8443]}, QUIC: {ports: [443, 8443]}}
282-
skip-domain: ['Mijia Cloud']
283-
284279
hosts:
285280
dns.alidns.com: [223.5.5.5, 223.6.6.6, 2400:3200::1, 2400:3200:baba::1]
286281
doh.pub: [1.12.12.12, 1.12.12.21, 120.53.53.53]
@@ -371,8 +366,7 @@ dns:
371366
3. 进入 2 DNS 设置 → 9 修改 DNS 服务器,设置如下:
372367
<img src="/assets/img/dns/dns-null.png" alt="ShellCrash 设置 2" width="60%" />
373368

374-
4. 进入 2 功能设置,不要选择 5 启用域名嗅探(因 user.yaml 文件中已添加 `dns.sniffer` 配置项)
375-
5. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[一](https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrashadguardhome-mihomo-ruleset/#%E4%B8%80-%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-yaml-%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE)》中生成的配置文件 .yaml 文件直链,启动服务即可
369+
4. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[一](https://proxy-tutorials.dustinwin.us.kg/posts/share-shellcrashadguardhome-mihomo-ruleset/#%E4%B8%80-%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-yaml-%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE)》中生成的配置文件 .yaml 文件直链,启动服务即可
376370

377371
## 六、 安装 AdGuard Home
378372
连接 SSH 后执行如下命令:

_posts/2024-08-21-toolsettings-shellcrash-mihomo-geodata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ curl -o $CRASHDIR/Country.mmdb -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_
6262
4. 进入 9 更新与支持 → 4 安装本地 Dashboard 面板,选择 1 安装 zashboard 面板(也可跳过此步,直接使用《[](https://proxy-tutorials.dustinwin.us.kg/posts/toolsettings-shellcrash-mihomo-geodata/#%E4%BA%94-%E5%9C%A8%E7%BA%BF-dashboard-%E9%9D%A2%E6%9D%BF)》中的在线 Dashboard 面板)
6363
<img src="/assets/img/pin/install-dashboard.png" alt="安装面板" width="60%" />
6464

65-
5. 进入主菜单 → 2 功能设置,选择 5 启用域名嗅探(若 `$CRASHDIR/yamls/user.yaml` 配置了 `sniffer` 则跳过此步骤)
65+
5. 进入主菜单 → 2 功能设置,选择 5 启用域名嗅探
6666
6. 进入主菜单 → 4 启动设置,选择 1 允许 ShellCrash 开机启动(若重启路由器后服务没有自动运行,可“设置自启延时”为 `30` 秒)
6767
7. 进入主菜单 → 5 设置自动任务 → 1 添加自动任务,可以看到末尾就有《[](https://proxy-tutorials.dustinwin.us.kg/posts/toolsettings-shellcrash-mihomo-geodata/#%E4%B8%89-%E6%B7%BB%E5%8A%A0%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1)》中添加的定时任务,输入对应的数字并回车后可设置执行条件
6868
8. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[生成带有自定义策略组和规则的 mihomo 配置文件直链-geodata 方案](https://proxy-tutorials.dustinwin.us.kg/posts/link-mihomo-geodata)》中生成的 .yaml 配置文件直链,启动服务即可

_posts/2024-08-21-toolsettings-shellcrash-mihomo-ruleset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ curl -L https://ghfast.top/https://github.com/DustinWin/proxy-tools/releases/dow
5353
4. 进入 9 更新与支持 → 4 安装本地 Dashboard 面板,选择 1 安装 zashboard 面板(也可跳过此步,直接使用《[](https://proxy-tutorials.dustinwin.us.kg/posts/toolsettings-shellcrash-mihomo-ruleset/#%E5%9B%9B-%E5%9C%A8%E7%BA%BF-dashboard-%E9%9D%A2%E6%9D%BF)》中的在线 Dashboard 面板)
5454
<img src="/assets/img/pin/install-dashboard.png" alt="安装面板" width="60%" />
5555

56-
5. 进入主菜单 → 2 功能设置,选择 5 启用域名嗅探(若 `$CRASHDIR/yamls/user.yaml` 配置了 `sniffer` 则跳过此步骤)
56+
5. 进入主菜单 → 2 功能设置,选择 5 启用域名嗅探
5757
6. 进入主菜单 → 4 启动设置,选择 1 允许 ShellCrash 开机启动(若重启路由器后服务没有自动运行,可“设置自启延时”为 `30` 秒)
5858
7. 进入主菜单 → 5 设置自动任务 → 1 添加自动任务,可以看到末尾就有《[](https://proxy-tutorials.dustinwin.us.kg/posts/toolsettings-shellcrash-mihomo-ruleset/#%E4%BA%8C-%E6%B7%BB%E5%8A%A0%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1)》中添加的定时任务,输入对应的数字并回车后可设置执行条件
5959
8. 进入主菜单 → 6 管理配置文件 → 2 在线获取配置文件,粘贴《[生成带有自定义策略组和规则的 mihomo 配置文件直链-ruleset 方案](https://proxy-tutorials.dustinwin.us.kg/posts/link-mihomo-ruleset)》中生成的 .yaml 配置文件直链,启动服务即可

_posts/2024-12-04-share-windows-mihomo-ruleset.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ profile: {store-selected: true, store-fake-ip: true}
5252

5353
sniffer:
5454
enable: true
55+
parse-pure-ip: true
5556
sniff: {HTTP: {ports: [80, 8080-8880], override-destination: true}, TLS: {ports: [443, 8443]}, QUIC: {ports: [443, 8443]}}
5657
skip-domain: ['Mijia Cloud']
5758

0 commit comments

Comments
 (0)