Skip to content
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

希望提供除 Country.mmdb 和 IP-CIDR 段的其他支持 #7

Closed
chenyiping1995 opened this issue Dec 10, 2020 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@chenyiping1995
Copy link

由于 Clash 的 Country.mmdb 并不能实现自动更新,只能手动替换;而geoip-cn.txt 又不被大部分软件直接接受,因此能否烦请作者同时提供以下格式的内容?

在此先谢过先!

Clash Rule-Provider YAML

Clash Rule-Provider 文档: https://lancellc.gitbook.io/clash/clash-config-file/rule-provider#example-of-a-rule-provider-file
样例文件:https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Providers/ChinaIp.yaml
使用方法:

rule-providers:
  ChinaIP:
    type: http
    behavior: ipcidr
    path: ./profiles/rule-providers/ChinaIp.yaml
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Providers/ChinaIp.yaml #由于Clash不支持通过代理更新,需要做镜像/CDN
    interval: 86400

rules:
  - RULE-SET,ChinaIP,DIRECT

Quantumult X Remote Filter / Clash 配置片段

样例文件:https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaIp.list
使用方法:

[filter_remote]
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaIp.list, tag=国内 IP 段, force-policy=DIRECT, update-interval=86400, opt-parser=true, enabled=true

Surge Rule Set

样例文件:https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/ChinaIP.list
使用方法:

[Rule]
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/ChinaIP.list,DIRECT
@mwhds97
Copy link

mwhds97 commented Dec 11, 2020

附议,尤其是对Clash for Android而言,急需一个ruleset代替Country.mmdb

@soffchen
Copy link

根据楼主的格式生成了一份,谢谢。

https://github.com/soffchen/GeoIP2-CN

@mwhds97
Copy link

mwhds97 commented Dec 14, 2020

根据楼主的格式生成了一份,谢谢。

https://github.com/soffchen/GeoIP2-CN

非常感谢
有个疑问,为什么你的txt文件和这里的体积相差那么大?

@Hackl0us Hackl0us added the enhancement New feature or request label Dec 16, 2020
@mangoclover
Copy link

根据楼主的格式生成了一份,谢谢。
https://github.com/soffchen/GeoIP2-CN

非常感谢
有个疑问,为什么你的txt文件和这里的体积相差那么大?

IP源不一样。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants