From 428502e0a18115e8bcda8638b73fb1623574bcaa Mon Sep 17 00:00:00 2001 From: starsswp Date: Thu, 12 Mar 2026 17:13:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20config.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..411acf5 --- /dev/null +++ b/config.yaml @@ -0,0 +1,162 @@ +mixed-port: 7890 +allow-lan: true +mode: rule +log-level: info +ipv6: true + +# external-controller: 127.0.0.1:9090 + +# DNS +dns: + enable: true + ipv6: false + enhanced-mode: fake-ip + fake-ip-range: 198.18.0.1/16 + nameserver: + - 223.5.5.5 + - 119.29.29.29 + fallback: + - 8.8.8.8 + - 1.1.1.1 + +# 代理订阅 +proxy-providers: + xboard: + type: http + url: "https://xboard.kkyun.de/sub/0b7762eee92935bd40d61be7b7f50550?flag=v2rayn" + interval: 3600 + path: ./proxies/xboard.yaml + health-check: + enable: true + interval: 600 + url: https://cp.cloudflare.com/generate_204 + +# 代理组 +proxy-groups: + + - name: 节点选择 + type: select + proxies: + - 自动选择 + - 手动选择 + - DIRECT + + - name: 自动选择 + type: url-test + use: + - xboard + url: https://cp.cloudflare.com/generate_204 + interval: 300 + + - name: 手动选择 + type: select + use: + - xboard + + - name: 国内 + type: select + proxies: + - DIRECT + - 节点选择 + + - name: 国外 + type: select + proxies: + - 节点选择 + - 自动选择 + + - name: 广告拦截 + type: select + proxies: + - REJECT + - DIRECT + +# 规则订阅 +rule-providers: + + reject: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt + path: ./ruleset/reject.yaml + interval: 86400 + + icloud: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt + path: ./ruleset/icloud.yaml + interval: 86400 + + apple: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt + path: ./ruleset/apple.yaml + interval: 86400 + + google: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt + path: ./ruleset/google.yaml + interval: 86400 + + proxy: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt + path: ./ruleset/proxy.yaml + interval: 86400 + + direct: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt + path: ./ruleset/direct.yaml + interval: 86400 + + private: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt + path: ./ruleset/private.yaml + interval: 86400 + + gfw: + type: http + behavior: domain + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt + path: ./ruleset/gfw.yaml + interval: 86400 + + cncidr: + type: http + behavior: ipcidr + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt + path: ./ruleset/cncidr.yaml + interval: 86400 + + telegramcidr: + type: http + behavior: ipcidr + url: https://hubproxy.blyun.de/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt + path: ./ruleset/telegramcidr.yaml + interval: 86400 + +# 分流规则 +rules: + + - RULE-SET,reject,广告拦截 + - RULE-SET,private,DIRECT + - RULE-SET,icloud,DIRECT + - RULE-SET,apple,DIRECT + - RULE-SET,google,国外 + - RULE-SET,proxy,国外 + - RULE-SET,gfw,国外 + - RULE-SET,direct,国内 + + - RULE-SET,telegramcidr,国外 + - RULE-SET,cncidr,国内 + + - MATCH,国外 \ No newline at end of file