162 lines
3.6 KiB
YAML
162 lines
3.6 KiB
YAML
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,国外 |