mixed-port: 7893
# 允许局域网的连接
allow-lan: true
# 规则模式：Rule（规则） / Global（全局代理）/ Direct（全局直连）
# mode: rule
mode: Rule
# 设置日志输出级别 (默认级别：silent，即不输出任何内容，以避免因日志内容过大而导致程序内存溢出）。
# 5 个级别：silent / info / warning / error / debug。级别越高日志输出量越大，越倾向于调试，若需要请自行开启。
log-level: debug
# Clash 的 RESTful API
external-controller: "127.0.0.1:9090"
# RESTful API 的口令
secret: ""
# 您可以将静态网页资源（如 clash-dashboard）放置在一个目录中，clash 将会服务于 `RESTful API/ui`
# 参数应填写配置目录的相对路径或绝对路径。
# external-ui: folder
# DNS 设置
dns:
  nameserver:
    - 114.114.114.114
    - 119.29.29.29
    - https://doh.pub/dns-query
    - https://dns.alidns.com/dns-query
  fallback:
    - https://dns.cloudflare.com/dns-query
    - "[2001:da8::666]:53"
    - https://public.dns.iij.jp/dns-query
    - https://jp.tiar.app/dns-query
    - https://jp.tiarap.org/dns-query
    - tls://dot.tiar.app
  enable: true
  ipv6: false
  # enhanced-mode: redir-host
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  listen: 0.0.0.0:53
  fake-ip-filter:
    - "*.lan"
  default-nameserver:
    - 114.114.114.114
    - 119.29.29.29
    - "[2001:da8::666]:53"

tun:
  enable: false
  stack: system
  # stack: gvisor
  dns-hijack:
    - 198.18.0.2:53 # when `fake-ip-range` is 198.18.0.1/16, should hijack 198.18.0.2:53
  auto-route: true # auto set global route for Windows
  # It is recommended to use `interface-name`
  auto-detect-interface: true # auto detect interface, conflict with `interface-name`

# 服务器节点订阅
# proxy-providers:
#   sspool:
#     type: http
#     url: "xxx"
#     interval: 3600
#     path: ./proxy/sspool.yaml
#     health-check:
#       enable: true
#       interval: 600
#       url: http://www.gstatic.com/generate_204



proxy-groups:
  - name: proxy
    type: select
    proxies:
      - REJECT
      - DIRECT



rule-providers:
rules:
  - MATCH,proxy
