Direct模式的奇怪错误 #582
Answered
by
mengdegege
PaleNeutron
asked this question in
Q&A
Direct模式的奇怪错误
#582
-
我把国内的app以process name形式定义了rule, 规则是DIRECT 但是实际上这些app的表现并没有变好反而更糟了,在log中能看到如下错误,为什么明明是DIRECT却会报错
这些app的网络并没有完全阻断,但是表现为非常卡。 其中rule-set为: payload:
# nga
- PROCESS-NAME,gov.anzong.androidnga
# qq
- PROCESS-NAME,com.tencent.mobileqq
# wechat
- PROCESS-NAME,com.tencent.mm
# bilibili
- PROCESS-NAME,tv.danmaku.bili
# citics
- PROCESS-NAME,com.citics.union
# games
- PROCESS-NAME,com.netease.yyslscn
- PROCESS-NAME,com.miHoYo.Yuanshen
- PROCESS-NAME,com.miHoYo.Nap 涉及rule-set的配置为 dns:
nameserver-policy:
'rule-set:androidApp': 'system'
rule-providers:
androidApp:
type: http
behavior: classical
url: 'xxxx.yaml'
path: ./ruleset/androidApp.yaml
interval: 86400
rules:
- RULE-SET,androidApp,DIRECT |
Beta Was this translation helpful? Give feedback.
Answered by
mengdegege
Aug 5, 2025
Replies: 1 comment 2 replies
-
dns policy里面应该只能接受domain类型的规则, 可以这么写,但是会自动忽略set里面的非domain类型的规则的. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
PaleNeutron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dns policy里面应该只能接受domain类型的规则, 可以这么写,但是会自动忽略set里面的非domain类型的规则的.
但如果nameserver配置正确,应该也不是解析的问题, 查了下这个目标ip是国内的IP. 可以排查一下是不是IPv6通信异常.
另外, 在Android上, 如果确定是要直连的app,可以直接在客户端界面上设置按应用分流, 不需要引入内核再用规则去分.