Updated Configuring example (markdown)
@@ -1,4 +1,4 @@
|
|||||||
This document provides an example configuring for [Alpha](https://github.com/MetaCubeX/Clash.Meta/tree/Alpha) branch.
|
这是一个使用 [Alpha](https://github.com/MetaCubeX/Clash.Meta/tree/Alpha) 分支的配置文件示例。
|
||||||
## General
|
## General
|
||||||
```yaml
|
```yaml
|
||||||
# port:7890 # HTTP(S) 代理服务器端口
|
# port:7890 # HTTP(S) 代理服务器端口
|
||||||
@@ -20,7 +20,7 @@ find-process-mode:strict
|
|||||||
|
|
||||||
mode:rule
|
mode:rule
|
||||||
|
|
||||||
#自定义 geox-url
|
#自定义 geodata url
|
||||||
geox-url:
|
geox-url:
|
||||||
geoip:"https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
|
geoip:"https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
|
||||||
geosite:"https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat"
|
geosite:"https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat"
|
||||||
@@ -75,16 +75,16 @@ tun:
|
|||||||
stack:system # gvisor / lwip
|
stack:system # gvisor / lwip
|
||||||
dns-hijack:
|
dns-hijack:
|
||||||
- 0.0.0.0:53 # 需要劫持的 DNS
|
- 0.0.0.0:53 # 需要劫持的 DNS
|
||||||
# auto-detect-interface:true # 自动识别出口网卡
|
auto-detect-interface:true # 自动识别出口网卡
|
||||||
# auto-route:true # 配置路由表
|
auto-route:true # 配置路由表
|
||||||
# mtu:9000 # 最大传输单元
|
# mtu:9000 # 最大传输单元
|
||||||
# strict_route:true # 将所有连接路由到 tun 来防止泄漏,但你的设备将无法其他设备被访问
|
# strict_route:true # 将所有连接路由到 tun 来防止泄漏,但你的设备将无法其他设备被访问
|
||||||
inet4_route_address:# 启用 auto_route 时使用自定义路由而不是默认路由
|
# inet4_route_address:# 启用 auto_route 时使用自定义路由而不是默认路由
|
||||||
- 0.0.0.0/1
|
# - 0.0.0.0/1
|
||||||
- 128.0.0.0/1
|
# - 128.0.0.0/1
|
||||||
inet6_route_address:# 启用 auto_route 时使用自定义路由而不是默认路由
|
# inet6_route_address:# 启用 auto_route 时使用自定义路由而不是默认路由
|
||||||
- "::/1"
|
# - "::/1"
|
||||||
- "8000::/1"
|
# - "8000::/1"
|
||||||
# endpoint_independent_nat:false # 启用独立于端点的 NAT
|
# endpoint_independent_nat:false # 启用独立于端点的 NAT
|
||||||
# include_uid:# UID 规则仅在 Linux 下被支持,并且需要 auto_route
|
# include_uid:# UID 规则仅在 Linux 下被支持,并且需要 auto_route
|
||||||
# - 0
|
# - 0
|
||||||
@@ -203,15 +203,16 @@ dns:
|
|||||||
# - localhost.ptlogin2.qq.com
|
# - localhost.ptlogin2.qq.com
|
||||||
|
|
||||||
# 配置查询域名使用的 DNS 服务器
|
# 配置查询域名使用的 DNS 服务器
|
||||||
|
# nameserver-policy 可以使用 geosite 分流 DNS 解析。
|
||||||
|
# 将国内域名指定为国内 DOH 进行解析,其余 DNS 使用境外 DOH 解析
|
||||||
nameserver-policy:
|
nameserver-policy:
|
||||||
# 'www.baidu.com':'114.114.114.114'
|
# 'www.baidu.com':'114.114.114.114'
|
||||||
# '+.internal.crop.com':'10.0.0.1'
|
# '+.internal.crop.com':'10.0.0.1'
|
||||||
# nameserver-policy 可以使用 geosite 分流 DNS 解析。将国内域名指定为国内 DOH 进行解析,其余 DNS 使用境外 DOH google/cf 解析
|
|
||||||
"geosite:cn":[https://doh.pub/dns-query,https://dns.alidns.com/dns-query]
|
"geosite:cn":[https://doh.pub/dns-query,https://dns.alidns.com/dns-query]
|
||||||
|
|
||||||
# DNS 主要域名配置
|
# DNS 主要域名配置
|
||||||
# 支持 UDP,TCP,DoT,DoH,DoQ
|
# 支持 UDP,TCP,DoT,DoH,DoQ
|
||||||
# 这部分为主要 DNS 配置,影响所有直连,确保使用对大陆解析精准的 DNS
|
|
||||||
nameserver:
|
nameserver:
|
||||||
- https://dns.google/dns-query
|
- https://dns.google/dns-query
|
||||||
- https://dns.cloudflare.com/dns-query
|
- https://dns.cloudflare.com/dns-query
|
||||||
|
|||||||
Reference in New Issue
Block a user