多平台代理规则仓库,支持:
- Surge
- Quantumult X(QuanX)
- Egern
- sing-box
- mihomo
特点:
- 统一维护,多端输出
- 每日自动同步发布
- 支持自定义规则
- 提供 Domain / IP 两类规则
更新时间:每日 08:00 UTC
通用地址模板:
Surge Domain https://raw.githubusercontent.com/KuGouGo/Rules/surge/domain/{name}.list
Surge IP https://raw.githubusercontent.com/KuGouGo/Rules/surge/ip/{name}.list
QuanX Domain https://raw.githubusercontent.com/KuGouGo/Rules/quanx/domain/{name}.list
QuanX IP https://raw.githubusercontent.com/KuGouGo/Rules/quanx/ip/{name}.list
Egern Domain https://raw.githubusercontent.com/KuGouGo/Rules/egern/domain/{name}.yaml
Egern IP https://raw.githubusercontent.com/KuGouGo/Rules/egern/ip/{name}.yaml
sing-box Domain https://raw.githubusercontent.com/KuGouGo/Rules/sing-box/domain/{name}.srs
sing-box IP https://raw.githubusercontent.com/KuGouGo/Rules/sing-box/ip/{name}.srs
mihomo Domain https://raw.githubusercontent.com/KuGouGo/Rules/mihomo/domain/{name}.mrs
mihomo IP https://raw.githubusercontent.com/KuGouGo/Rules/mihomo/ip/{name}.mrs
说明:
{name}替换为规则名,例如:cn、google、telegram- 通常建议 Domain + IP 搭配使用
- Domain 优先,IP 作为补充
分支索引:
[Rule]
RULE-SET,https://raw.githubusercontent.com/KuGouGo/Rules/surge/domain/cn.list,DIRECT
RULE-SET,https://raw.githubusercontent.com/KuGouGo/Rules/surge/ip/cn.list,DIRECT
RULE-SET,https://raw.githubusercontent.com/KuGouGo/Rules/surge/domain/google.list,PROXY
RULE-SET,https://raw.githubusercontent.com/KuGouGo/Rules/surge/ip/google.list,PROXY[filter_remote]
https://raw.githubusercontent.com/KuGouGo/Rules/quanx/domain/cn.list, tag=CN-DOMAIN, force-policy=direct, enabled=true
https://raw.githubusercontent.com/KuGouGo/Rules/quanx/ip/cn.list, tag=CN-IP, force-policy=direct, enabled=true
https://raw.githubusercontent.com/KuGouGo/Rules/quanx/domain/google.list, tag=GOOGLE-DOMAIN, force-policy=proxy, enabled=true
https://raw.githubusercontent.com/KuGouGo/Rules/quanx/ip/google.list, tag=GOOGLE-IP, force-policy=proxy, enabled=true{
"route": {
"rule_set": [
{
"tag": "cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/KuGouGo/Rules/sing-box/domain/cn.srs"
},
{
"tag": "cn-ip",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/KuGouGo/Rules/sing-box/ip/cn.srs"
}
]
}
}rule-providers:
cn:
type: http
behavior: domain
format: mrs
url: "https://raw.githubusercontent.com/KuGouGo/Rules/mihomo/domain/cn.mrs"
interval: 86400
cn-ip:
type: http
behavior: ipcidr
format: mrs
url: "https://raw.githubusercontent.com/KuGouGo/Rules/mihomo/ip/cn.mrs"
interval: 86400Domain https://raw.githubusercontent.com/KuGouGo/Rules/egern/domain/cn.yaml
IP https://raw.githubusercontent.com/KuGouGo/Rules/egern/ip/cn.yaml
常用 Domain:
cngoogleappletelegramgithubopenaicloudflareyoutubenetflixspotifydisney
广告规则:
awavenue-ads
常用 IP:
cngoogletelegramcloudflarecloudfrontawsfastlygithubapplenetflixspotifydisney
推荐起步组合:
- 国内直连:
cn - 国外常用:
googletelegramgithubopenai - 苹果:
apple - CDN 补充:
cloudflare
自定义 Domain:
sources/custom/domain/{name}.list
示例:
DOMAIN,api.example.com
DOMAIN-SUFFIX,example.com
DOMAIN-KEYWORD,keyword
自定义 IP:
sources/custom/ip/{name}.list
示例:
IP-CIDR,1.2.3.0/24
IP-CIDR6,2403:300::/32
注意:
- 名称不要与现有规则组重名
DOMAIN_SUFFIX与DOMAIN-SUFFIX等价- 构建时会自动标准化大小写与格式
README.md 项目说明
.github/workflows/build.yml 自动构建与发布流程
scripts/ 构建、同步、校验脚本
sources/custom/ 自定义规则源
自动化流程:
核心脚本:
- scripts/sync-upstream.sh
- scripts/build-custom.sh
- scripts/restore-artifacts.sh
- scripts/guard-artifacts.sh
- scripts/normalize-ip-source.py
- scripts/export-domain-rules.py
上游来源: