更新 clash_vless.yaml

This commit is contained in:
root 2025-06-03 13:39:26 +08:00
parent 5e0b2e5dd8
commit 7b66b2b414

View File

@ -7,10 +7,28 @@ log-level: info
external-controller: '0.0.0.0:9090' external-controller: '0.0.0.0:9090'
secret: '' secret: ''
ipv6: false
# 启用 geodata 模式和自定义 geoip 数据库 # 启用 geodata 模式和自定义 geoip 数据库
geodata-mode: true geodata-mode: true
geodata-loader: standard
# 自动更新 GEO
geo-auto-update: true
# 更新间隔,单位为小时
geo-update-interval: 24
# 自定 GEO 下载地址
geox-url: geox-url:
geoip: "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/geoip.dat" geoip: 'https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat/'
geosite: 'https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat/'
mmdb: 'https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb/'
asn: 'https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb/'
# 【Meta专属】TCP连接并发如果域名解析结果对应多个IP并发所有IP选择握手最快的IP进行连接
tcp-concurrent: true
# geox-url:
# geoip: "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/geoip.dat"
# 添加远端节点链接 # 添加远端节点链接
proxy-providers: proxy-providers:
@ -468,19 +486,21 @@ rules:
# 微信 # 微信
- RULE-SET,wechat,🎯 全球直连 - RULE-SET,wechat,🎯 全球直连
# 最终规则 # 最终规则
- RULE-SET,reject,REJECT
- RULE-SET,applications,🎯 全球直连 - RULE-SET,applications,🎯 全球直连
- DOMAIN,clash.razord.top,🎯 全球直连 - DOMAIN,clash.razord.top,🎯 全球直连
- DOMAIN,yacd.haishan.me,🎯 全球直连 - DOMAIN,yacd.haishan.me,🎯 全球直连
- RULE-SET,proxy,🚀 节点选择
- RULE-SET,private,🎯 全球直连 - RULE-SET,private,🎯 全球直连
- RULE-SET,direct,🎯 全球直连 - RULE-SET,direct,🎯 全球直连
- GEOIP,LAN,🎯 全球直连 - GEOIP,LAN,🎯 全球直连
- GEOIP,CN,🎯 全球直连
- GEOSITE,geolocation-cn,DIRECT - GEOSITE,geolocation-cn,DIRECT
- RULE-SET,proxy,🚀 节点选择 - GEOIP,CN,🎯 全球直连
- RULE-SET,reject,REJECT
- MATCH,🐟 漏网之鱼 - MATCH,🐟 漏网之鱼
rule-providers: rule-providers:
reject: reject:
type: http type: http
@ -548,121 +568,129 @@ rule-providers:
# DNS 服务器配置(可选;若不配置,程序内置的 DNS 服务会被关闭) # DNS 服务器配置(可选;若不配置,程序内置的 DNS 服务会被关闭)
dns: dns:
enable: true enable: true
listen: 0.0.0.0:53 listen: :53
ipv6: true # 当此选项为 false 时, AAAA 请求将返回空 ipv6: false # 当此选项为 false 时, AAAA 请求将返回空
prefer-h3: false
respect-rules: true
enhanced-mode: redir-host
# 以下填写的 DNS 服务器将会被用来解析 DNS 服务的域名 # 以下填写的 DNS 服务器将会被用来解析 DNS 服务的域名
# 仅填写 DNS 服务器的 IP 地址 # 仅填写 DNS 服务器的 IP 地址
default-nameserver: default-nameserver:
#- 114.114.114.114 - 119.29.29.29
- 1.1.1.1 - 223.6.6.6
- 8.8.8.8 # enhanced-mode: fake-ip # 或 redir-host
enhanced-mode: fake-ip # 或 redir-host # fake-ip-range: 198.18.0.1/16 # Fake IP 地址池 (CIDR 形式)
fake-ip-range: 198.18.0.1/16 # Fake IP 地址池 (CIDR 形式) # # use-hosts: true # 查询 hosts 并返回 IP 记录
# use-hosts: true # 查询 hosts 并返回 IP 记录
# 在以下列表的域名将不会被解析为 fake ip这些域名相关的解析请求将会返回它们真实的 IP 地址 # # 在以下列表的域名将不会被解析为 fake ip这些域名相关的解析请求将会返回它们真实的 IP 地址
fake-ip-filter: # fake-ip-filter:
# 以下域名列表参考自 vernesong/OpenClash 项目,并由 Hackl0us 整理补充 # # 以下域名列表参考自 vernesong/OpenClash 项目,并由 Hackl0us 整理补充
- '*.lan' # - '*.lan'
- '*.localdomain' # - '*.localdomain'
- '*.example' # - '*.example'
- '*.invalid' # - '*.invalid'
- '*.localhost' # - '*.localhost'
- '*.test' # - '*.test'
- '*.local' # - '*.local'
- '*.home.arpa' # - '*.home.arpa'
- 'time.*.com' # - 'time.*.com'
- 'time.*.gov' # - 'time.*.gov'
- 'time.*.edu.cn' # - 'time.*.edu.cn'
- 'time.*.apple.com' # - 'time.*.apple.com'
- 'time1.*.com' # - 'time1.*.com'
- 'time2.*.com' # - 'time2.*.com'
- 'time3.*.com' # - 'time3.*.com'
- 'time4.*.com' # - 'time4.*.com'
- 'time5.*.com' # - 'time5.*.com'
- 'time6.*.com' # - 'time6.*.com'
- 'time7.*.com' # - 'time7.*.com'
- 'ntp.*.com' # - 'ntp.*.com'
- 'ntp1.*.com' # - 'ntp1.*.com'
- 'ntp2.*.com' # - 'ntp2.*.com'
- 'ntp3.*.com' # - 'ntp3.*.com'
- 'ntp4.*.com' # - 'ntp4.*.com'
- 'ntp5.*.com' # - 'ntp5.*.com'
- 'ntp6.*.com' # - 'ntp6.*.com'
- 'ntp7.*.com' # - 'ntp7.*.com'
- '*.time.edu.cn' # - '*.time.edu.cn'
- '*.ntp.org.cn' # - '*.ntp.org.cn'
- '+.pool.ntp.org' # - '+.pool.ntp.org'
- 'time1.cloud.tencent.com' # - 'time1.cloud.tencent.com'
- 'music.163.com' # - 'music.163.com'
- '*.music.163.com' # - '*.music.163.com'
- '*.126.net' # - '*.126.net'
- 'musicapi.taihe.com' # - 'musicapi.taihe.com'
- 'music.taihe.com' # - 'music.taihe.com'
- 'songsearch.kugou.com' # - 'songsearch.kugou.com'
- 'trackercdn.kugou.com' # - 'trackercdn.kugou.com'
- '*.kuwo.cn' # - '*.kuwo.cn'
- 'api-jooxtt.sanook.com' # - 'api-jooxtt.sanook.com'
- 'api.joox.com' # - 'api.joox.com'
- 'joox.com' # - 'joox.com'
- 'y.qq.com' # - 'y.qq.com'
- '*.y.qq.com' # - '*.y.qq.com'
- 'streamoc.music.tc.qq.com' # - 'streamoc.music.tc.qq.com'
- 'mobileoc.music.tc.qq.com' # - 'mobileoc.music.tc.qq.com'
- 'isure.stream.qqmusic.qq.com' # - 'isure.stream.qqmusic.qq.com'
- 'dl.stream.qqmusic.qq.com' # - 'dl.stream.qqmusic.qq.com'
- 'aqqmusic.tc.qq.com' # - 'aqqmusic.tc.qq.com'
- 'amobile.music.tc.qq.com' # - 'amobile.music.tc.qq.com'
- '*.xiami.com' # - '*.xiami.com'
- '*.music.migu.cn' # - '*.music.migu.cn'
- 'music.migu.cn' # - 'music.migu.cn'
- '*.msftconnecttest.com' # - '*.msftconnecttest.com'
- '*.msftncsi.com' # - '*.msftncsi.com'
- 'msftconnecttest.com' # - 'msftconnecttest.com'
- 'msftncsi.com' # - 'msftncsi.com'
- 'localhost.ptlogin2.qq.com' # - 'localhost.ptlogin2.qq.com'
- 'localhost.sec.qq.com' # - 'localhost.sec.qq.com'
- '+.srv.nintendo.net' # - '+.srv.nintendo.net'
- '+.stun.playstation.net' # - '+.stun.playstation.net'
- 'xbox.*.microsoft.com' # - 'xbox.*.microsoft.com'
- '*.*.xboxlive.com' # - '*.*.xboxlive.com'
- '+.battlenet.com.cn' # - '+.battlenet.com.cn'
- '+.wotgame.cn' # - '+.wotgame.cn'
- '+.wggames.cn' # - '+.wggames.cn'
- '+.wowsgame.cn' # - '+.wowsgame.cn'
- '+.wargaming.net' # - '+.wargaming.net'
- 'proxy.golang.org' # - 'proxy.golang.org'
- 'stun.*.*' # - 'stun.*.*'
- 'stun.*.*.*' # - 'stun.*.*.*'
- '+.stun.*.*' # - '+.stun.*.*'
- '+.stun.*.*.*' # - '+.stun.*.*.*'
- '+.stun.*.*.*.*' # - '+.stun.*.*.*.*'
- 'heartbeat.belkin.com' # - 'heartbeat.belkin.com'
- '*.linksys.com' # - '*.linksys.com'
- '*.linksyssmartwifi.com' # - '*.linksyssmartwifi.com'
- '*.router.asus.com' # - '*.router.asus.com'
- 'mesu.apple.com' # - 'mesu.apple.com'
- 'swscan.apple.com' # - 'swscan.apple.com'
- 'swquery.apple.com' # - 'swquery.apple.com'
- 'swdownload.apple.com' # - 'swdownload.apple.com'
- 'swcdn.apple.com' # - 'swcdn.apple.com'
- 'swdist.apple.com' # - 'swdist.apple.com'
- 'lens.l.google.com' # - 'lens.l.google.com'
- 'stun.l.google.com' # - 'stun.l.google.com'
- '+.nflxvideo.net' # - '+.nflxvideo.net'
- '*.square-enix.com' # - '*.square-enix.com'
- '*.finalfantasyxiv.com' # - '*.finalfantasyxiv.com'
- '*.ffxiv.com' # - '*.ffxiv.com'
- '*.mcdn.bilivideo.cn' # - '*.mcdn.bilivideo.cn'
- WORKGROUP # - WORKGROUP
# 支持 UDP / TCP / DoT / DoH 协议的 DNS 服务,可以指明具体的连接端口号。 # 支持 UDP / TCP / DoT / DoH 协议的 DNS 服务,可以指明具体的连接端口号。
# 所有 DNS 请求将会直接发送到服务器,不经过任何代理。 # 所有 DNS 请求将会直接发送到服务器,不经过任何代理。
# Clash 会使用最先获得的解析记录回复 DNS 请求 # Clash 会使用最先获得的解析记录回复 DNS 请求
nameserver-policy:
"geosite:cn,private,geolocation-cn": [https://1.12.12.12/dns-query, https://223.5.5.5/dns-query]
nameserver: nameserver:
- https://doh.pub/dns-query - https://8.8.8.8/dns-query
- https://dns.alidns.com/dns-query - https://1.1.1.1/dns-query
proxy-server-nameserver:
- https://1.12.12.12/dns-query
- https://223.5.5.5/dns-query
# 当 fallback 参数被配置时, DNS 请求将同时发送至上方 nameserver 列表和下方 fallback 列表中配置的所有 DNS 服务器. # 当 fallback 参数被配置时, DNS 请求将同时发送至上方 nameserver 列表和下方 fallback 列表中配置的所有 DNS 服务器.
# 当解析得到的 IP 地址的地理位置不是 CN 时clash 将会选用 fallback 中 DNS 服务器的解析结果。 # 当解析得到的 IP 地址的地理位置不是 CN 时clash 将会选用 fallback 中 DNS 服务器的解析结果。
@ -679,28 +707,28 @@ dns:
# Clash 总会选用 nameserver 列表中配置 DNS 服务器解析得到的结果。 # Clash 总会选用 nameserver 列表中配置 DNS 服务器解析得到的结果。
# #
# 采取以上逻辑进行域名解析是为了对抗 DNS 投毒攻击。 # 采取以上逻辑进行域名解析是为了对抗 DNS 投毒攻击。
fallback-filter: # fallback-filter:
geoip: false # geoip: false
ipcidr: # ipcidr:
- 0.0.0.0/8 # - 0.0.0.0/8
- 10.0.0.0/8 # - 10.0.0.0/8
- 100.64.0.0/10 # - 100.64.0.0/10
- 127.0.0.0/8 # - 127.0.0.0/8
- 169.254.0.0/16 # - 169.254.0.0/16
- 172.16.0.0/12 # - 172.16.0.0/12
- 192.0.0.0/24 # - 192.0.0.0/24
- 192.0.2.0/24 # - 192.0.2.0/24
- 192.88.99.0/24 # - 192.88.99.0/24
- 192.168.0.0/16 # - 192.168.0.0/16
- 198.18.0.0/15 # - 198.18.0.0/15
- 198.51.100.0/24 # - 198.51.100.0/24
- 203.0.113.0/24 # - 203.0.113.0/24
- 224.0.0.0/4 # - 224.0.0.0/4
- 240.0.0.0/4 # - 240.0.0.0/4
- 255.255.255.255/32 # - 255.255.255.255/32
domain: # domain:
- '+.google.com' # - '+.google.com'
- '+.facebook.com' # - '+.facebook.com'
- '+.youtube.com' # - '+.youtube.com'
- '+.githubusercontent.com' # - '+.githubusercontent.com'
- '+.googlevideo.com' # - '+.googlevideo.com'