diff --git a/Configuring-example.md b/Configuring-example.md index cf06a57..4b4c5c0 100644 --- a/Configuring-example.md +++ b/Configuring-example.md @@ -1,4 +1,35 @@ + 这是一个使用 [Alpha](https://github.com/MetaCubeX/Clash.Meta/tree/Alpha) 分支的配置文件示例,完整配置见[此处](https://github.com/MetaCubeX/Clash.Meta/blob/Alpha/docs/config.yaml)。 + + + +- [General](#general) +- [Tun](#tun) +- [ebpf](#ebpf) +- [sniffer](#sniffer) +- [tunnels](#tunnels) +- [DNS 配置](#dns-配置) +- [Proxies](#proxies) + - [vmess](#vmess) + - [Socks \& HTTP](#socks--http) + - [VLESS](#vless) + - [Snell](#snell) + - [Trojan](#trojan) + - [Hysteria](#hysteria) + - [Tuic](#tuic) + - [ShadowsocksR](#shadowsocksr) + - [Wireguard](#wireguard) +- [Proxy-groups](#proxy-groups) +- [Providers](#providers) + - [Proxy-providers](#proxy-providers) + - [Rule-providers](#rule-providers) +- [Rules](#rules) +- [Listeners](#listeners) +- [入口配置](#入口配置) + - [ss-config:](#ss-config) + - [vmess-config:](#vmess-config) + - [tuic 服务器入口](#tuic-服务器入口) + ## General ```yaml # port:7890 # HTTP(S) 代理服务器端口 @@ -134,11 +165,9 @@ sniffer: # TLS 默认如果不配置 ports 默认嗅探 443 TLS: # ports:[443, 8443] - # 默认嗅探 80 HTTP: # 需要嗅探的端口 - ports:[80, 8080-8880] # 可覆盖 sniffer.override-destination override-destination:true @@ -147,19 +176,7 @@ sniffer: ## 对嗅探结果进行跳过 # skip-domain: # - Mijia Cloud - # 需要嗅探协议 - # 已废弃,若 sniffer.sniff 配置则此项无效 - sniffing: - - tls - - http - # 强制对此域名进行嗅探 - # 仅对白名单中的端口进行嗅探,默认为 443,80 - # 已废弃,若 sniffer.sniff 配置则此项无效 - port-whitelist: - - "80" - - "443" - # - 8000-9999 ``` ## tunnels @@ -181,36 +198,30 @@ tunnels: dns: enable:false # 关闭将使用系统 DNS prefer-h3:true # 开启 DoH 支持 HTTP/3,将并发尝试 - listen:0.0.0.0:53 # 开启 DNS 服务器监听 + listen:0.0.0.0:5353 # 开启 DNS 服务器监听 # ipv6:false # false 将返回 AAAA 的空结果 # 用于解析 nameserver,fallback 以及其他 DNS 服务器配置的,DNS 服务域名 # 只能使用纯 IP 地址,可使用加密 DNS default-nameserver: - 114.114.114.114 - - 8.8.8.8 - tls://1.12.12.12:853 - tls://223.5.5.5:853 - enhanced-mode:fake-ip # or redir-host + + enhanced-mode:redir-host # or fake-ip fake-ip-range:198.18.0.1/16 # fake-ip 池设置 # use-hosts:true # 查询 hosts - # 配置不使用 fake-ip 的域名 - # fake-ip-filter: - # - '*.lan' - # - localhost.ptlogin2.qq.com - # 配置查询域名使用的 DNS 服务器 # nameserver-policy 可以使用 geosite 分流 DNS 解析。 # 将国内域名指定为国内 DOH 进行解析,其余 DNS 使用境外 DOH 解析 nameserver-policy: + "geosite:cn":[https://doh.pub/dns-query,https://dns.alidns.com/dns-query] # 'www.baidu.com':'114.114.114.114' # '+.internal.crop.com':'10.0.0.1' - "geosite:cn":[https://doh.pub/dns-query,https://dns.alidns.com/dns-query] - # DNS 主要域名配置 # 支持 UDP,TCP,DoT,DoH,DoQ nameserver: @@ -252,7 +263,7 @@ dns: # geoip-code:CN # 当 nameserver 域名的 IP 查询 geoip 库为 CN 时,不使用 fallback 中的 DNS 查询结果 # 配置强制 fallback,优先于 IP 判断,具体分类自行查看 geosite 库 # geosite: - # - gfw + # - "geolocation-!cn" # 如果不匹配 ipcidr 则使用 nameservers 中的结果 # ipcidr: # - 240.0.0.0/4 @@ -261,6 +272,48 @@ dns: # - '+.facebook.com' # - '+.youtube.com' + # 配置不使用 fake-ip 的域名 + # fake-ip-filter: + # - "+.lan" + # # QQ Loopback + # - localhost.sec.qq.com + # - localhost.ptlogin2.qq.com + # - "+.linksys.com" + # - "+.pool.ntp.org" + # # Router + # - hiwifi.com + # - leike.cc + # - miwifi.com + # - my.router + # - peiluyou.com + # - phicomm.me + # - router.ctc + # - routerlogin.com + # # Tenda router + # - tendawifi.com + # # TP-Link router + # - tplinkwifi.net + # # Windows + # - msftconnecttest.com + # - msftncsi.com + # # 中興路由器 + # - zte.home + # # Stun Services + # - "+.stun.*.*" + # - "+.stun.*.*.*" + # - "+.stun.*.*.*.*" + # - "+.stun.*.*.*.*.*" + # # Google Voices + # - "lens.l.google.com" + # # Nintendo Switch + # - "+.srv.nintendo.net" + # # PlayStation + # - "+.stun.playstation.net" + # # XBox + # - "xbox.*.*.microsoft.com" + # - "+.xboxlive.com" + # # Bilibili CDN + # - "+.mcdn.bilivideo.cn" ``` ## Proxies @@ -938,4 +991,5 @@ tuic-server: alpn: - h3 max-udp-relay-packet-size: 1500 -``` \ No newline at end of file +``` +