-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
针对 Clash 的纯 IP-CIDR 配置使用 Rule-Provider IP-CIDR Payload #135
Comments
谢谢反馈,Clash我自己不怎么使用,不太清楚里面的差异,后续改下程序实现类似DOMIAN-SET的功能。 另外请教下Shadowrocket也有DOMAIN-SET吗?这两个我都不怎么使用。 |
另附我现在在用的 Shadowrocket 配置供参考写法。
|
另外补充,Clash 也兼容纯域名的 https://github.com/Dreamacro/clash/wiki/Premium-Core-Features#domain 样例: payload:
- '.blogger.com'
- '*.*.microsoft.com'
- 'books.itunes.apple.com' |
Clash的DOMAIN和IPCIDR能混在一个文件里吗? |
Clash 的 Domain 和 IP-CIDR 混在一起的类型叫 https://github.com/Dreamacro/clash/wiki/Premium-Core-Features#classical 样例: payload:
- DOMAIN-SUFFIX,google.com
- DOMAIN-KEYWORD,google
- DOMAIN,ad.com
- SRC-IP-CIDR,192.168.1.201/32
- IP-CIDR,127.0.0.0/8
- GEOIP,CN
- DST-PORT,80
- SRC-PORT,7777 |
对Shadowrock和Clash生成的分流规则做了调整,如果还有问题欢迎继续反馈。 |
针对整个规则中只有 IP-CIDR 的配置,Clash 提供了如下格式的 payload。此功能与 Surge / Shadowrocket 上
DOMAIN-SET
与RULE-SET
相似,推测可能有性能上的差异。https://github.com/Dreamacro/clash/wiki/Premium-Core-Features#ipcidr
样例:
建议更改的规则
blackmatrix7/ios_rule_script/master/rule/Clash/ChinaIPs/ChinaIPs.yaml
blackmatrix7/ios_rule_script/release/rule/Clash/ChinaIPs/ChinaIPs.yaml
The text was updated successfully, but these errors were encountered: