2020-12-13 06:25:24 +08:00
|
|
|
proxy-providers:
|
|
|
|
CNIX:
|
|
|
|
type: http
|
|
|
|
url: "这里需要替换为你的订阅链接,请保留双引号和双引号前面的空格"
|
|
|
|
path: ./cnix.yaml
|
|
|
|
interval: 7200
|
|
|
|
mixed-port: 7890
|
|
|
|
allow-lan: false
|
|
|
|
mode: rule
|
|
|
|
log-level: debug
|
|
|
|
ipv6: false
|
|
|
|
external-controller: 0.0.0.0:9090
|
|
|
|
dns:
|
|
|
|
enable: true
|
|
|
|
listen: 0.0.0.0:53
|
|
|
|
ipv6: false
|
|
|
|
default-nameserver:
|
2023-11-17 11:02:56 +08:00
|
|
|
- 223.5.5.5
|
2020-12-13 06:25:24 +08:00
|
|
|
- 114.114.114.114
|
|
|
|
nameserver:
|
2023-11-17 11:02:56 +08:00
|
|
|
- 223.5.5.5
|
2020-12-13 06:25:24 +08:00
|
|
|
- 114.114.114.114
|
|
|
|
- 119.29.29.29
|
|
|
|
- 180.76.76.76
|
|
|
|
enhanced-mode: fake-ip
|
|
|
|
fake-ip-range: 198.18.0.1/16
|
|
|
|
fake-ip-filter:
|
2023-11-17 11:02:56 +08:00
|
|
|
- "*.lan"
|
|
|
|
- "*.localdomain"
|
|
|
|
- "*.example"
|
|
|
|
- "*.invalid"
|
|
|
|
- "*.localhost"
|
|
|
|
- "*.test"
|
|
|
|
- "*.local"
|
|
|
|
- "*.home.arpa"
|
2020-12-13 06:25:24 +08:00
|
|
|
- router.asus.com
|
|
|
|
- localhost.sec.qq.com
|
|
|
|
- localhost.ptlogin2.qq.com
|
2023-11-17 11:02:56 +08:00
|
|
|
- "+.msftconnecttest.com"
|
2020-12-13 06:25:24 +08:00
|
|
|
tun:
|
|
|
|
enable: true
|
|
|
|
stack: system
|
2021-11-03 18:51:23 +08:00
|
|
|
auto-route: true
|
|
|
|
auto-detect-interface: true
|
2020-12-13 06:25:24 +08:00
|
|
|
dns-hijack:
|
|
|
|
- 114.114.114.114
|
|
|
|
- 180.76.76.76
|
|
|
|
- 119.29.29.29
|
|
|
|
- 223.5.5.5
|
|
|
|
- 8.8.8.8
|
|
|
|
- 8.8.4.4
|
|
|
|
- 1.1.1.1
|
|
|
|
- 1.0.0.1
|
|
|
|
|
|
|
|
proxy-groups:
|
|
|
|
- name: PROXY
|
|
|
|
type: select
|
|
|
|
proxies:
|
|
|
|
- CNIX
|
|
|
|
- DIRECT
|
|
|
|
- name: CNIX
|
|
|
|
type: select
|
|
|
|
use:
|
|
|
|
- CNIX
|
|
|
|
|
|
|
|
rule-providers:
|
|
|
|
reject:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/reject.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
icloud:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/icloud.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
apple:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/apple.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
google:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/google.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
proxy:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/proxy.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
direct:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/direct.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
2021-03-03 23:13:58 +08:00
|
|
|
private:
|
|
|
|
type: http
|
|
|
|
behavior: domain
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
|
2021-03-03 23:13:58 +08:00
|
|
|
path: ./ruleset/private.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
telegramcidr:
|
|
|
|
type: http
|
|
|
|
behavior: ipcidr
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
|
2021-03-03 23:13:58 +08:00
|
|
|
path: ./ruleset/telegramcidr.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
2020-12-13 06:25:24 +08:00
|
|
|
cncidr:
|
|
|
|
type: http
|
|
|
|
behavior: ipcidr
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/cncidr.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
|
|
|
lancidr:
|
|
|
|
type: http
|
|
|
|
behavior: ipcidr
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
|
2020-12-13 06:25:24 +08:00
|
|
|
path: ./ruleset/lancidr.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
2021-11-03 18:51:23 +08:00
|
|
|
applications:
|
|
|
|
type: http
|
|
|
|
behavior: classical
|
2023-11-17 11:02:56 +08:00
|
|
|
url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
|
2021-11-03 18:51:23 +08:00
|
|
|
path: ./ruleset/applications.yaml
|
|
|
|
interval: 36000
|
|
|
|
|
2020-12-13 06:25:24 +08:00
|
|
|
rules:
|
2021-11-03 18:51:23 +08:00
|
|
|
- RULE-SET,applications,DIRECT
|
2020-12-13 06:25:24 +08:00
|
|
|
- DOMAIN,clash.razord.top,DIRECT
|
|
|
|
- DOMAIN,yacd.haishan.me,DIRECT
|
2021-03-03 23:13:58 +08:00
|
|
|
- RULE-SET,private,DIRECT
|
2020-12-13 06:25:24 +08:00
|
|
|
- RULE-SET,reject,REJECT
|
|
|
|
- DOMAIN,www.icloud.com,PROXY
|
|
|
|
- DOMAIN-SUFFIX,icloud-content.com,PROXY
|
|
|
|
- RULE-SET,icloud,DIRECT
|
|
|
|
- RULE-SET,apple,PROXY
|
|
|
|
- RULE-SET,google,PROXY
|
|
|
|
- RULE-SET,proxy,PROXY
|
|
|
|
- RULE-SET,direct,DIRECT
|
2021-11-03 19:01:55 +08:00
|
|
|
- RULE-SET,lancidr,DIRECT
|
|
|
|
- RULE-SET,cncidr,DIRECT
|
2021-03-03 23:13:58 +08:00
|
|
|
- RULE-SET,telegramcidr,PROXY
|
2020-12-13 06:25:24 +08:00
|
|
|
- MATCH,PROXY
|