Skip to content

Commit 54499c1

Browse files
committed
优化 sing-boxr 内核协议嗅探和 DNS 劫持配置;修改 geodata 文件链接;修改错误
1 parent 9d7c7c3 commit 54499c1

4 files changed

Lines changed: 11 additions & 11 deletions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ tags: [sing-box, sing-boxr, Android, ruleset, rule_set, 分享]
127127
"route": {
128128
"default_domain_resolver": { "server": "dns_direct" },
129129
"rules": [
130-
{ "action": "sniff" },
131-
{ "protocol": [ "dns" ], "action": "hijack-dns" },
130+
{ "rule_set": [ "telegramip" ], "domain": [ "Mijia Cloud" ], "invert": true, "action": "sniff" },
131+
{ "type": "logical", "mode": "or", "rules": [ { "protocol": [ "dns" ] }, { "port": 53 } ], "action": "hijack-dns" },
132132
{ "clash_mode": [ "Direct" ], "outbound": "DIRECT" },
133133
{ "clash_mode": [ "Global" ], "outbound": "GLOBAL" },
134134
{ "rule_set": [ "private" ], "outbound": "私有网络" },

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ sc
152152
连接 SSH 后执行如下命令:
153153

154154
```shell
155-
curl -o $CRASHDIR/GeoSite.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geosite-all.dat
155+
curl -o $CRASHDIR/GeoSite.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geosite.dat
156156
curl -o $CRASHDIR/GeoIP.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geoip-lite.dat
157157
curl -o $CRASHDIR/Country.mmdb -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/Country-lite.mmdb
158158
curl -o $CRASHDIR/cn_ip.txt -L https://cdn.jsdelivr.net/gh/DustinWin/geoip@ips/cn_ipv4.txt
@@ -188,10 +188,10 @@ dns:
188188
fake-ip-filter-mode: rule
189189
fake-ip-filter:
190190
- GEOSITE,trackerslist,real-ip
191-
- RULE-SET,microsoft-cn,real-ip
192-
- RULE-SET,apple-cn,real-ip
193-
- RULE-SET,google-cn,real-ip
194-
- RULE-SET,games-cn,real-ip
191+
- GEOSITE,microsoft-cn,real-ip
192+
- GEOSITE,apple-cn,real-ip
193+
- GEOSITE,google-cn,real-ip
194+
- GEOSITE,games-cn,real-ip
195195
- GEOSITE,proxy,fake-ip
196196
- GEOSITE,private,real-ip
197197
- GEOSITE,cn,real-ip

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ curl -o /tmp/CrashCore.upx -L https://ghfast.top/https://github.com/DustinWin/pr
2222
连接 SSH 后执行如下命令:
2323

2424
```shell
25-
curl -o $CRASHDIR/GeoSite.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geosite-all.dat
25+
curl -o $CRASHDIR/GeoSite.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geosite.dat
2626
curl -o $CRASHDIR/Country.mmdb -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/Country-lite.mmdb
2727
```
2828

2929
## 三、 添加定时任务
3030
1. 连接 SSH 后执行命令 `vi $CRASHDIR/task/task.user`,按一下 Ins 键(Insert 键),粘贴如下内容:
3131
- 注:须重启 ShellCrash 服务后生效
3232
```shell
33-
201#curl -o $CRASHDIR/GeoSite.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geosite-all.dat && curl -o $CRASHDIR/Country.mmdb -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/Country-lite.mmdb >/dev/null 2>&1#更新geodata路由规则文件
33+
201#curl -o $CRASHDIR/GeoSite.dat -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/geosite.dat && curl -o $CRASHDIR/Country.mmdb -L https://cdn.jsdelivr.net/gh/DustinWin/ruleset_geodata@mihomo-geodata/Country-lite.mmdb >/dev/null 2>&1#更新geodata路由规则文件
3434
202#curl -o $CRASHDIR/cn_ip.txt -L https://ghfast.top/https://github.com/DustinWin/geoip/releases/download/ips/cn_ipv4.txt && curl -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文件
3535
```
3636
2. 按一下 Esc 键(退出键),输入英文冒号 `:`,继续输入 `wq` 并回车

_posts/2024-08-22-share-windows-singboxr-ruleset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ tags: [sing-box, sing-boxr, Windows, ruleset, rule_set, 分享]
127127
"route": {
128128
"default_domain_resolver": { "server": "dns_direct" },
129129
"rules": [
130-
{ "action": "sniff" },
131-
{ "protocol": [ "dns" ], "action": "hijack-dns" },
130+
{ "rule_set": [ "telegramip" ], "invert": true, "action": "sniff" },
131+
{ "type": "logical", "mode": "or", "rules": [ { "protocol": [ "dns" ] }, { "port": 53 } ], "action": "hijack-dns" },
132132
{ "clash_mode": [ "Direct" ], "outbound": "DIRECT" },
133133
{ "clash_mode": [ "Global" ], "outbound": "GLOBAL" },
134134
{ "rule_set": [ "private" ], "outbound": "私有网络" },

0 commit comments

Comments
 (0)