159 lines
3.6 KiB
YAML
159 lines
3.6 KiB
YAML
# Base64 encoded name: enh5
|
|
port: 7890
|
|
socks-port: 7891
|
|
redir-port: 7892
|
|
allow-lan: false
|
|
mode: rule
|
|
log-level: info
|
|
external-controller: '0.0.0.0:9090'
|
|
secret: ''
|
|
|
|
proxies:
|
|
- name: "🇭🇰 阿里云 Hysteria2"
|
|
type: hysteria2
|
|
server: aliyunhk.812371.xyz
|
|
port: 9249
|
|
password: 9tHTqxcJ2id7yPtsiikMIg==
|
|
sni: aliyunhk.812371.xyz
|
|
skip-cert-verify: false
|
|
alpn:
|
|
- h3
|
|
|
|
proxy-groups:
|
|
- name: '🚀 节点选择'
|
|
type: select
|
|
proxies:
|
|
- DIRECT
|
|
- '🇭🇰 阿里云 Hysteria2'
|
|
- name: 'Ⓜ️ 微软服务'
|
|
type: select
|
|
proxies:
|
|
- '🎯 全球直连'
|
|
- '🚀 节点选择'
|
|
- name: '🍎 苹果服务'
|
|
type: select
|
|
proxies:
|
|
- '🚀 节点选择'
|
|
- '🎯 全球直连'
|
|
- name: '📢 谷歌FCM'
|
|
type: select
|
|
proxies:
|
|
- '🚀 节点选择'
|
|
- '🎯 全球直连'
|
|
- name: '🎯 全球直连'
|
|
type: select
|
|
proxies:
|
|
- DIRECT
|
|
- '🚀 节点选择'
|
|
- name: '🐟 漏网之鱼'
|
|
type: select
|
|
proxies:
|
|
- '🚀 节点选择'
|
|
- '🎯 全球直连'
|
|
|
|
rules:
|
|
# 苹果服务
|
|
- GEOSITE,icloud,🍎 苹果服务
|
|
- GEOSITE,apple,🍎 苹果服务
|
|
|
|
# 谷歌服务
|
|
- GEOSITE,google,🚀 节点选择
|
|
- GEOIP,google,🚀 节点选择,no-resolve
|
|
|
|
# 微软服务
|
|
- RULE-SET,Microsoft,Ⓜ️ 微软服务
|
|
|
|
# 最终规则
|
|
- RULE-SET,applications,🎯 全球直连
|
|
- DOMAIN,clash.razord.top,🎯 全球直连
|
|
- DOMAIN,yacd.haishan.me,🎯 全球直连
|
|
- RULE-SET,private,🎯 全球直连
|
|
- RULE-SET,direct,🎯 全球直连
|
|
- GEOIP,LAN,🎯 全球直连
|
|
- GEOIP,CN,🎯 全球直连
|
|
- GEOSITE,geolocation-cn,DIRECT
|
|
- RULE-SET,proxy,🚀 节点选择
|
|
- RULE-SET,reject,REJECT
|
|
- MATCH,🐟 漏网之鱼
|
|
|
|
rule-providers:
|
|
reject:
|
|
type: http
|
|
behavior: domain
|
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
|
|
path: ./ruleset/reject.yaml
|
|
interval: 86400
|
|
|
|
proxy:
|
|
type: http
|
|
behavior: domain
|
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
|
|
path: ./ruleset/proxy.yaml
|
|
interval: 86400
|
|
|
|
direct:
|
|
type: http
|
|
behavior: domain
|
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
|
|
path: ./ruleset/direct.yaml
|
|
interval: 86400
|
|
|
|
private:
|
|
type: http
|
|
behavior: domain
|
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
|
|
path: ./ruleset/private.yaml
|
|
interval: 86400
|
|
|
|
applications:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
|
|
path: ./ruleset/applications.yaml
|
|
interval: 86400
|
|
|
|
Microsoft:
|
|
type: http
|
|
behavior: domain
|
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/microsoft.txt"
|
|
path: ./ruleset/microsoft.yaml
|
|
interval: 86400
|
|
|
|
dns:
|
|
enable: true
|
|
ipv6: false
|
|
enhanced-mode: fake-ip
|
|
fake-ip-range: 198.18.0.1/16
|
|
default-nameserver:
|
|
- 223.5.5.5
|
|
- 119.29.29.29
|
|
nameserver:
|
|
- https://doh.pub/dns-query
|
|
- https://dns.alidns.com/dns-query
|
|
|
|
fallback-filter:
|
|
geoip: false
|
|
ipcidr:
|
|
- 0.0.0.0/8
|
|
- 10.0.0.0/8
|
|
- 100.64.0.0/10
|
|
- 127.0.0.0/8
|
|
- 169.254.0.0/16
|
|
- 172.16.0.0/12
|
|
- 192.0.0.0/24
|
|
- 192.0.2.0/24
|
|
- 192.88.99.0/24
|
|
- 192.168.0.0/16
|
|
- 198.18.0.0/15
|
|
- 198.51.100.0/24
|
|
- 203.0.113.0/24
|
|
- 224.0.0.0/4
|
|
- 240.0.0.0/4
|
|
- 255.255.255.255/32
|
|
domain:
|
|
- '+.google.com'
|
|
- '+.facebook.com'
|
|
- '+.youtube.com'
|
|
- '+.githubusercontent.com'
|
|
- '+.googlevideo.com'
|