clash-rules/config.yaml
2020-12-13 06:32:26 +08:00

161 lines
3.8 KiB
YAML

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:
- 114.114.114.114
nameserver:
- tls://223.5.5.5:853
- 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:
- '*.lan'
- '*.localdomain'
- '*.example'
- '*.invalid'
- '*.localhost'
- '*.test'
- '*.local'
- '*.home.arpa'
- router.asus.com
- localhost.sec.qq.com
- localhost.ptlogin2.qq.com
- '+.msftconnecttest.com'
tun:
enable: true
stack: system
macOS-auto-route: true
macOS-auto-detect-interface: true
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
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 36000
icloud:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 36000
apple:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./ruleset/apple.yaml
interval: 36000
google:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
path: ./ruleset/google.yaml
interval: 36000
proxy:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 36000
direct:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./ruleset/direct.yaml
interval: 36000
cncidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 36000
lancidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 36000
rules:
- PROCESS-NAME,clash,DIRECT
- PROCESS-NAME,clash-darwin,DIRECT
- PROCESS-NAME,clash-windows,DIRECT
- PROCESS-NAME,clash-linux,DIRECT
- PROCESS-NAME,surge,DIRECT
- PROCESS-NAME,surge%203,DIRECT
- PROCESS-NAME,v2ray,DIRECT
- PROCESS-NAME,xray,DIRECT
- PROCESS-NAME,ss-local,DIRECT
- PROCESS-NAME,privoxy,DIRECT
- PROCESS-NAME,trojan,DIRECT
- PROCESS-NAME,trojan-go,DIRECT
- PROCESS-NAME,naive,DIRECT
- PROCESS-NAME,Thunder,DIRECT
- PROCESS-NAME,thunder.exe,DIRECT
- PROCESS-NAME,DownloadService,DIRECT
- PROCESS-NAME,qbittorrent,DIRECT
- PROCESS-NAME,qBittorrent,DIRECT
- PROCESS-NAME,Transmission,DIRECT
- PROCESS-NAME,fdm,DIRECT
- PROCESS-NAME,aria2c,DIRECT
- PROCESS-NAME,Folx,DIRECT
- PROCESS-NAME,NetTransport,DIRECT
- PROCESS-NAME,uTorrent,DIRECT
- PROCESS-NAME,WebTorrent,DIRECT
- DOMAIN,clash.razord.top,DIRECT
- DOMAIN,yacd.haishan.me,DIRECT
- 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
- GEOIP,,DIRECT,no-resolve
- GEOIP,CN,DIRECT,no-resolve
- MATCH,PROXY