部分代理工具的个人自定义分流规则集以及自用的配置模板
各个代理工具的规则集参考于 ACL4SSR/ios_rule_script 并根据自己的需求修改,没有什么花里胡哨的需求,只是一些简单的需求,规则与配置提供参考,请根据自己的情况修改。如果你的需求和我大致相同,可以直接参考我的配置文件。
Tip
以下为我的需求:
Google走美国,Netflix默认走新加坡且可选其他节点,Copilot走代理且可选直连,OpenAI走代理且可选其他节点,Apple走直连且可选其他节点,Microsoft走直连且可选其他节点,国内网站/ip/流媒体走直连,其余走代理。
代理工具 | 配置文件 | 规则集 | 备注 |
---|---|---|---|
Clash Meta | clash.yaml | ./Clash/ | ✓ |
Quantumult X | quantumultx.conf | ./QuantumultX/ | ✓ |
Sing-Box | sing-box.json | ./Sing-Box/ | 配置文件仅限PuerNya内核 |
Shadowrocket | 未计划 | 未计划 | 不怎么用,有空再搞 |
- Clash Meta (Verge/Nyanpasu/...)
- Quantumult X
- Sing-Box
- Shadowrocket
Clash Meta(Verge/Nyanpasu) | Quantumult X |
---|---|
Tip
建议根据自己情况进行修改
配置设置中输入配置文件链接(二选一)
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/clash.yaml
https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/clash.yaml
点击导入
找到该页面,点击下载配置,输入链接(二选一)
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/quantumultx.conf
https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/quantumultx.conf
导入配置
导入配置,输入链接(二选一)
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/sing-box.json
https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/sing-box.json
在导入的配置文件中替换你的订阅地址
在节点资源中输入你的订阅地址进行导入
通过远程导入分流规则,远程规则链接请看 Rules Source,以下为不同代理工具中的导入方法
Clash Meta(Verge/Nyanpasu)只能源代码导入
Quantumult X可以在规则资源中通过GUI交互导入,也可以在配置文件源代码中导入
Sing-Box目前应该也只能从源代码导入
以下为源代码导入
- Clash Meta
#仅为参考,请根据自己需求修改
# 规则集
rule-providers:
# 代理
google:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Google.yaml"
path: ./myConfig/ruleset/proxy/google.yaml
interval: 86400
netflix:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Netflix.yaml"
path: ./myConfig/ruleset/proxy/netflix.yaml
interval: 86400
copilot:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Copilot.yaml"
path: ./myConfig/ruleset/proxy/copilot.yaml
interval: 86400
openai:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/OpenAI.yaml"
path: ./myConfig/ruleset/proxy/openai.yaml
interval: 86400
# 直连
china:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/DIRECT/China.yaml"
path: ./myConfig/ruleset/direct/china.yaml
interval: 86400
apple:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/DIRECT/Apple.yaml"
path: ./myConfig/ruleset/direct/apple.yaml
interval: 86400
microsoft:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/DIRECT/Microsoft.yaml"
path: ./myConfig/ruleset/direct/microsoft.yaml
interval: 86400
# 广告拦截
reject:
type: http
behavior: classical
url: "https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/REJECT/ADBlock.yaml"
path: ./myConfig/ruleset/reject/rejectAD.yaml
interval: 86400
#......之后有需要再加
- Quantumult X
#仅为参考,请根据自己需求修改
# 规则集
[filter_remote]
#广告拦截
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/REJECT/ADBlock.yaml, tag=❌️ 广告来源, force-policy=广告拦截, update-interval=172800, opt-parser=false, enabled=true
#代理
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/Google.yaml, tag=🛸 谷歌服务, force-policy=Google, update-interval=172800, opt-parser=false, enabled=true
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/Netflix.yaml, tag=📺 奈飞视频, force-policy=Netflix, update-interval=172800, opt-parser=false, enabled=true
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/Copilot.yaml, tag=💬 Copilot, force-policy=Copilot, update-interval=172800, opt-parser=false, enabled=true
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/OpenAI.yaml, tag=🤖 OpenAI, force-policy=OpenAI, update-interval=172800, opt-parser=false, enabled=true
#直连
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/DIRECT/Apple.yaml, tag=🍎 苹果服务, force-policy=Apple, update-interval=172800, opt-parser=false, enabled=true
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/DIRECT/Microsoft.yaml, tag=🪟 微软服务, force-policy=Microsoft, update-interval=172800, opt-parser=false, enabled=true
https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/DIRECT/China.yaml, tag=🇨🇳 国内地址, force-policy=国内直连, update-interval=172800, opt-parser=false, enabled=true
- Sing-Box
//仅为参考,请根据自己需求修改
// 规则集
"rule_set": [
// 广告拦截
{
"tag": "reject",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/reject/adblock.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/REJECT/ADBlock.json"
}
// 代理
{
"tag": "google",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/proxy/google.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/PROXY/Google.json"
},
{
"tag": "netflix",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/proxy/netflix.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/PROXY/Netflix.json"
},
{
"tag": "copilot",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/proxy/copilot.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/PROXY/Copilot.json"
},
{
"tag": "openai",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/proxy/openai.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/PROXY/OpenAI.json"
},
// 直连
{
"tag": "china",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/direct/china.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/DIRECT/China.json"
},
{
"tag": "apple",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/direct/apple.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/DIRECT/Apple.json"
},
{
"tag": "microsoft",
"type": "remote",
"format": "source",
"path": "./myConfig/ruleset/direct/microsoft.json",
"url": "https://gcore.jsdelivr.net/gh/cmontage/clashrules-cm@main/Sing-Box/DIRECT/Microsoft.json"
},
],
👆 Clash Meta
-
DIRECT - 直连
国内:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/DIRECT/China.yaml
微软:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/DIRECT/Microsoft.yaml
Apple:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/DIRECT/Apple.yaml -
PROXY - 代理
GFW:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/PROXY/GFW.yaml
Game:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/PROXY/Game.yaml
Google:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/PROXY/Google.yaml
Netflix:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/PROXY/Netflix.yaml
Copilot:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/PROXY/Copilot.yaml
OpenAI:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/PROXY/OpenAI.yaml -
REJECT - 屏蔽广告
广告:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Clash/REJECT/ADBlock.yaml
-
DIRECT - 直连
国内直连:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/DIRECT/China.yaml
微软:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/DIRECT/Microsoft.yaml
Apple:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/DIRECT/Apple.yaml -
PROXY - 代理
GFW-被墙:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/GFW.yaml
Game:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Game.yaml
Google:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Google.yaml
Netflix:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Netflix.yaml
Copilot:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/Copilot.yaml
OpenAI:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/PROXY/OpenAI.yaml -
REJECT - 屏蔽广告
广告:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Clash/REJECT/ADBlock.yaml
👆 Quantumult X
-
DIRECT - 直连
国内:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/DIRECT/China.yaml
微软:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/DIRECT/Microsoft.yaml
Apple:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/DIRECT/Apple.yaml -
PROXY - 代理
Google:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/PROXY/Google.yaml
Netflix:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/PROXY/Netflix.yaml
Copilot:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/PROXY/Copilot.yaml
OpenAI:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/PROXY/OpenAI.yaml -
REJECT - 屏蔽广告
广告:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/QuantumultX/REJECT/ADBlock.yaml
-
DIRECT - 直连
国内直连:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/DIRECT/China.yaml
微软:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/DIRECT/Microsoft.yaml
Apple:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/DIRECT/Apple.yaml -
PROXY - 代理
Google:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/Google.yaml
Netflix:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/Netflix.yaml
Copilot:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/Copilot.yaml
OpenAI:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/PROXY/OpenAI.yaml -
REJECT - 屏蔽广告
广告:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/QuantumultX/REJECT/ADBlock.yaml
👆 Sing-Box
-
DIRECT - 直连
国内:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/DIRECT/China.json
微软:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/DIRECT/Microsoft.json
Apple:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/DIRECT/Apple.json -
PROXY - 代理
GFW:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/PROXY/GFW.json
Google:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/PROXY/Google.json
PayPal:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/PROXY/PayPal.json
Netflix:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/PROXY/Netflix.json
Copilot:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/PROXY/Copilot.json
OpenAI:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/PROXY/OpenAI.json -
REJECT - 屏蔽广告
广告:https://raw.githubusercontent.com/cmontage/proxyrules-cm/main/Sing-Box/REJECT/ADBlock.json
-
DIRECT - 直连
国内直连:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/DIRECT/China.json
微软:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/DIRECT/Microsoft.json
Apple:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/DIRECT/Apple.json -
PROXY - 代理
GFW-被墙:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/PROXY/GFW.json
Google:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/PROXY/Google.json
PayPal:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/PROXY/PayPal.json
Netflix:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/PROXY/Netflix.json
Copilot:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/PROXY/Copilot.json
OpenAI:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/PROXY/OpenAI.json -
REJECT - 屏蔽广告
广告:https://gcore.jsdelivr.net/gh/cmontage/proxyrules-cm@main/Sing-Box/REJECT/ADBlock.json
Warning
叠甲:
分流规则是实现不同的网站走不同的节点或策略组的规则文本,其数据均收集自互联网公开信息。
本仓库中涉及的软件与本项目没有任何直接或间接的关系。本项目仅对代理分流规则进行描述于搬运,不代表支持去使用任何软件。使用任何第三方硬件、软件,所造成的一切后果由使用的个人或组织承担,与本项目无关。
本仓库中所有内容只供学习和研究使用,基于该仓库源代码进行的任何修改,为其他个人或组织的自发行为,与本项目没有任何直接或间接的关系,所造成的一切后果亦与本项目无关。
— ACL4SSR