Last active
September 3, 2024 10:55
-
-
Save ifyour/cc124b7cef522ebfb548a2eba2538b94 to your computer and use it in GitHub Desktop.
Clash 自定义规则,适用于 Subconverter 的订阅服务。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mode: rule | |
log-level: info | |
dns: | |
enable: true | |
ipv6: false | |
# 启动服务器,用于解析提供的 nameserver,只能用 IP | |
# default-nameserver: | |
# - 223.5.5.5 | |
# - 119.29.29.29 | |
enhanced-mode: fake-ip | |
fake-ip-range: 198.18.0.1/16 | |
use-hosts: true | |
nameserver: | |
- 119.29.29.29 | |
- 114.114.114.114 | |
fallback: | |
- "https://1.1.1.1/dns-query" | |
- "https://dns.cloudflare.com/dns-query" | |
- "https://dns.alidns.com/dns-query" | |
# 853 默认被禁 | |
# - "tls://8.8.4.4:853" | |
# - tls://dns.mingming.dev:853 | |
# 满足下列条件时,使用 Fallback 服务器 | |
# fallback-filter: | |
# geoip: true # 如果来自中国则使用,此处关闭 | |
# geoip-code: US | |
# ipcidr: | |
# - 240.0.0.0/4 # 如果返回的范围是 240.0.0.0 ~ 240.255.255.255 则使用 | |
# - 0.0.0.0/32 # 如果返回的 0.0.0.0 则使用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[custom] | |
# custom rulesets | |
ruleset=🚀 节点选择,https://gist.githubusercontent.com/ifyour/cc124b7cef522ebfb548a2eba2538b94/raw/proxy.list | |
ruleset=🎯 全球直连,https://gist.githubusercontent.com/ifyour/cc124b7cef522ebfb548a2eba2538b94/raw/direct.list | |
ruleset=🛑 全球拦截,https://gist.githubusercontent.com/ifyour/cc124b7cef522ebfb548a2eba2538b94/raw/reject.list | |
ruleset=🛑 全球拦截,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list | |
ruleset=🛑 全球拦截,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanProgramAD.list | |
ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Microsoft.list | |
ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Telegram.list | |
ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyMedia.list | |
ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyLite.list | |
ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/SteamCN.list | |
ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/LocalAreaNetwork.list | |
ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/UnBan.list | |
ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaDomain.list | |
ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaCompanyIp.list | |
ruleset=🎯 全球直连,[]GEOIP,CN | |
ruleset=🐟 漏网之鱼,[]FINAL | |
custom_proxy_group=🚀 节点选择`select`[]DIRECT`.* | |
custom_proxy_group=🎯 全球直连`select`[]DIRECT`[]🚀 节点选择 | |
custom_proxy_group=🛑 全球拦截`select`[]REJECT`[]DIRECT | |
custom_proxy_group=🐟 漏网之鱼`select`[]🚀 节点选择`[]🎯 全球直连 | |
enable_rule_generator=true | |
overwrite_original_rules=true | |
clash_rule_base=https://gist.githubusercontent.com/ifyour/cc124b7cef522ebfb548a2eba2538b94/raw/base.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN-SUFFIX,ip138.com | |
DOMAIN-SUFFIX,xhscdn.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN-SUFFIX,mingming.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用法
目前各大机场提供的订阅服务,都是使用的 tindy2013/subconverter 的转换服务。该服务支持使用参数
config
覆盖已有配置,直接在你的订阅地址后面拼接以下地址即可使用上述规则:域名命中规则
DOMAIN-SUFFIX
DOMAIN
DOMAIN-KEYWORD
其它资源