Files
clash_subscriptions/test/clash-config-sample.yaml
2025-09-03 17:51:44 +08:00

602 lines
17 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# port of HTTP
port: 7890 # 此项将被接管
# port of SOCKS5
socks-port: 7891 # 此项将被接管
# redir port for Linux and macOS
redir-port: 7892 # 此项将被接管
allow-lan: true # 此项将被接管为true
# Only applicable when setting allow-lan to true
# "*": bind all IP addresses
# 192.168.122.11: bind a single IPv4 address
# "[aaaa::a8aa:ff:fe09:57d8]": bind a single IPv6 address
bind-address: "*" # HTTP(S)\SOCKS5 监听地址此项将被接管为all
# Rule / Global/ Direct (default is Rule)
mode: Rule
# set log level to stdout (default is info)
# info / warning / error / debug / silent
log-level: info
# A RESTful API for clash
external-controller: 0.0.0.0:9090 # 此项将被接管
# you can put the static web resource (such as clash-dashboard) to a directory, and clash would serve in `${API}/ui`
# input is a relative path to the configuration directory or an absolute path
external-ui: "/usr/share/openclash/dashboard" # 此项将被接管
# Secret for RESTful API (Optional)
secret: "123456" # 此项将被接管
# experimental feature
experimental:
ignore-resolve-fail: true # ignore dns resolve fail, default value is true
# authentication of local SOCKS5/HTTP(S) server
authentication: # 此项将被接管
- "user1:pass1"
- "user2:pass2"
# # experimental hosts, support wildcard (e.g. *.clash.dev Even *.foo.*.example.com)
# # static domain has a higher priority than wildcard domain (foo.example.com > *.example.com)
#hosts:
#'*.clash.dev': 127.0.0.1
#'alpha.clash.dev': '::1'
dns: # 如订阅配置无包括此项的所有DNS设置OpenClash将自动添加
enable: true # set true to enable dns (default is false) # 此项将被接管为true
ipv6: true # default is false # 此项将被接管
listen: 0.0.0.0:53 # 端口为53时将被接管为7874
enhanced-mode: fake-ip # or redir-host # 此项将被接管
fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管
default-nameserver:
- 8.8.8.8
# - 1.1.1.1
# - 114.114.114.114
nameserver:
# - 8.8.8.8
- 1.1.1.1
# - 114.114.114.114
fallback:
- https://1.1.1.1/dns-query
- tls://1.1.1.1:853
- tls://8.8.8.8:853
# google ipv6 dns
- "[2001:4860:4860::8888]:53"
- "[2001:4860:4860::8844]:53"
# - https://dns.cloudflare.com/dns-query
# - tls://dns.google:853
# 101.6.6.191 China Education and Research Network Center
# - "[2001:da8::666]:53"
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
proxies:
# cloudflare worker vless
- name: "vless-US-🇺🇸"
type: vless
server: 172.67.51.250
port: 443
uuid: d5de6faa-0de0-418a-916e-bd095facfac1
udp: true
tls: true
network: ws
servername: us.sub.060007.xyz # priority over wss host
# skip-cert-verify: true
ws-opts:
path: "/?ed=2048"
headers:
Host: us.sub.060007.xyz
# cloudflare worker vless
- name: "vless-GB-🇬🇧"
type: vless
server: 172.67.165.63
port: 443
uuid: d5de6faa-0de0-418a-916e-bd095facfac1
udp: true
tls: true
network: ws
servername: us.sub.060007.xyz # priority over wss host
# skip-cert-verify: true
ws-opts:
path: "/?ed=2048"
headers:
Host: us.sub.060007.xyz
# cloudflare worker vless
- name: "vless-NL-🇳🇱"
type: vless
server: 95.164.34.170
port: 443
uuid: d5de6faa-0de0-418a-916e-bd095facfac1
udp: true
tls: true
network: ws
servername: us.sub.060007.xyz # priority over wss host
# skip-cert-verify: true
ws-opts:
path: "/?ed=2048"
headers:
Host: us.sub.060007.xyz
proxy-groups:
- name: ♻️ 自动选择
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
proxies:
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- name: 🚀 节点选择
type: select
proxies:
- ♻️ 自动选择
- DIRECT
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- name: Ⓜ️ OpenAI
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Claude
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Gemini
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 📢 GoogleVoice
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 📢 Google
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🌍 Copilot
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🌍 Bing
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🌍 OneDrive
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Microsoft
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🍎 苹果代理
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🍎 AppleTV
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🍎 iCloud
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🍎 苹果服务
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🎥 Netflix
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 🎥 YouTube
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Facebook
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Amazon
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Paypal
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Github
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: Ⓜ️ Twitter
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 📲 电报消息
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 📲 SocialMedia
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
- name: 📺 proxy_selected
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- name: 📺 Proxy
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- name: 🎯 全球直连
type: select
proxies:
- DIRECT
- 🚀 节点选择
- ♻️ 自动选择
- name: 🛑 广告拦截
type: select
proxies:
- REJECT
- DIRECT
- name: 🐟 漏网之鱼
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🎯 全球直连
- vless-US-🇺🇸
- vless-GB-🇬🇧
- vless-NL-🇳🇱
- DIRECT
rule-providers:
google_voice:
type: http
behavior: classical
path: ./rules_set/no_resolve/google_voice.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/google_voice.yaml
microsoft:
type: http
behavior: classical
path: ./rules_set/no_resolve/microsoft.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/microsoft.yaml
onedrive:
type: http
behavior: classical
path: ./rules_set/no_resolve/onedrive.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/onedrive.yaml
advertising:
type: http
behavior: classical
path: ./rules_set/no_resolve/advertising.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/advertising.yaml
paypal:
type: http
behavior: classical
path: ./rules_set/no_resolve/paypal.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/paypal.yaml
facebook:
type: http
behavior: classical
path: ./rules_set/no_resolve/facebook.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/facebook.yaml
claude:
type: http
behavior: classical
path: ./rules_set/no_resolve/claude.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/claude.yaml
social_media:
type: http
behavior: classical
path: ./rules_set/no_resolve/social_media.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/social_media.yaml
google:
type: http
behavior: classical
path: ./rules_set/no_resolve/google.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/google.yaml
icloud:
type: http
behavior: classical
path: ./rules_set/no_resolve/icloud.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/icloud.yaml
apple:
type: http
behavior: classical
path: ./rules_set/no_resolve/apple.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/apple.yaml
amazon:
type: http
behavior: classical
path: ./rules_set/no_resolve/amazon.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/amazon.yaml
youtube:
type: http
behavior: classical
path: ./rules_set/no_resolve/youtube.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/youtube.yaml
telegram:
type: http
behavior: classical
path: ./rules_set/no_resolve/telegram.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/telegram.yaml
github:
type: http
behavior: classical
path: ./rules_set/no_resolve/github.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/github.yaml
appletv:
type: http
behavior: classical
path: ./rules_set/no_resolve/appletv.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/appletv.yaml
bing:
type: http
behavior: classical
path: ./rules_set/no_resolve/bing.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/bing.yaml
proxy:
type: http
behavior: classical
path: ./rules_set/no_resolve/proxy.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/proxy.yaml
twitter:
type: http
behavior: classical
path: ./rules_set/no_resolve/twitter.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/twitter.yaml
openai:
type: http
behavior: classical
path: ./rules_set/no_resolve/openai.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/openai.yaml
copilot:
type: http
behavior: classical
path: ./rules_set/no_resolve/copilot.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/copilot.yaml
apple_proxy:
type: http
behavior: classical
path: ./rules_set/no_resolve/apple_proxy.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/apple_proxy.yaml
google_gemini:
type: http
behavior: classical
path: ./rules_set/no_resolve/google_gemini.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/google_gemini.yaml
netflix:
type: http
behavior: classical
path: ./rules_set/no_resolve/netflix.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/no_resolve/netflix.yaml
### custom rule by hand
proxy_selected:
type: http
behavior: classical
path: ./rules_set/proxy_selected.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/proxy_selected.yaml
proxy_random:
type: http
behavior: classical
path: ./rules_set/proxy_random.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/proxy_custom.yaml
direct:
type: http
behavior: classical
path: ./rules_set/direct.yaml
interval: 86400
url: https://raw.githubusercontent.com/darkli/research/main/rules/rules_set/direct.yaml
rules:
- RULE-SET,direct,🎯 全球直连
- RULE-SET,advertising,🛑 广告拦截
- RULE-SET,google_gemini,Ⓜ️ Gemini
- RULE-SET,openai,Ⓜ️ OpenAI
- RULE-SET,claude,Ⓜ️ Claude
- RULE-SET,copilot,🌍 Copilot
- RULE-SET,paypal,Ⓜ️ Paypal
- RULE-SET,netflix,🎥 Netflix
- RULE-SET,google_voice,📢 GoogleVoice
- RULE-SET,youtube,🎥 YouTube
- RULE-SET,google,📢 Google
- RULE-SET,apple_proxy,🍎 苹果代理
- RULE-SET,appletv,🍎 AppleTV
- RULE-SET,icloud,🍎 iCloud
- RULE-SET,apple,🍎 苹果服务
- RULE-SET,bing,🌍 Bing
- RULE-SET,onedrive,🌍 OneDrive
- RULE-SET,microsoft,Ⓜ️ Microsoft
- RULE-SET,amazon,Ⓜ️ Amazon
- RULE-SET,facebook,Ⓜ️ Facebook
- RULE-SET,github,Ⓜ️ Github
- RULE-SET,twitter,Ⓜ️ Twitter
- RULE-SET,telegram,📲 电报消息
- RULE-SET,social_media,📲 SocialMedia
- RULE-SET,proxy_selected,📺 proxy_selected
- RULE-SET,proxy,📺 Proxy
- RULE-SET,proxy_random,📺 Proxy
- GEOIP,LAN,🎯 全球直连
- GEOIP,CN,🎯 全球直连, no-resolve
- MATCH,🐟 漏网之鱼