{
  "log": {
    "disabled": false,
    "level": "debug",
    "timestamp": false
  },
  "experimental": {
    "cache_file": {
      "enabled": true,
      "store_fakeip": false,
      "rdrc_timeout": "1d"
    },
    "clash_api": {
      "external_controller": "127.0.0.254:9090",
      "access_control_allow_origin": [
        "*"
      ],
      "access_control_allow_private_network": true,
      "external_ui": ""
    }
  },
  "certificate": {
    "store": "mozilla"
  },
  "dns": {
    "servers": [
      {
        "tag": "local-dns",
        "type": "local"
      },
      {
        "tag": "hosts",
        "type": "hosts",
        "predefined": {
          "testingcf.jsdelivr.net": [
            "104.16.174.226",
            "2606:4700::6810:afe2"
          ]
        }
      },
      {
        "tag": "ali-dns",
        "type": "quic",
        "server": "223.6.6.6",
        "server_port": 853
      },
      {
        "tag": "cloudflare-gateway-dns",
        "type": "h3",
        "server": "108.162.198.1",
        "server_port": 443,
        "path": "/dns-query",
        "tls": {
          "enabled": true,
          "server_name": "nsvrmpsa4k.cloudflare-gateway.com"
        }
      },
      {
        "tag": "proxy-dns",
        "type": "https",
        "server": "8.8.8.8",
        "server_port": 443,
        "path": "/dns-query",
        "tls": {
          "enabled": true,
          "server_name": "dns.google",
          "alpn": [
            "h2"
          ]
        },
        "detour": "GLOBAL"
      }
    ],
    "rules": [
      {
        "action": "evaluate",
        "server": "hosts"
      },
      {
        "match_response": true,
        "ip_accept_any": true,
        "action": "respond"
      },
      {
        "domain_suffix": [
          ".cloudflare.com"
        ],
        "server": "ali-dns"
      },
      {
        "clash_mode": "Global",
        "server": "proxy-dns"
      },
      {
        "clash_mode": "Direct",
        "server": "local-dns"
      },
      {
        "rule_set": [
          "geosite-geolocation-cn"
        ],
        "server": "ali-dns",
        "client_subnet": "114.114.114.0/24"
      }
    ],
    "client_subnet": "1.1.1.0/24",
    "final": "proxy-dns"
  },
  "inbounds": [
    {
      "type": "mixed",
      "tag": "mixed-in",
      "listen": "127.0.0.254",
      "listen_port": 1080
    }
  ],
  "outbounds": [
    {
      "tag": "direct-out",
      "type": "direct"
    },
    {
      "tag": "block-out",
      "type": "block"
    },
    {
      "tag": "LOCAL",
      "type": "socks",
      "server": "127.0.0.1",
      "server_port": 1080
    },
    {
      "tag": "BeePass",
      "type": "shadowsocks",
      "server": "cxjxtnjdziinxq.xyz",
      "server_port": 8080,
      "method": "chacha20-ietf-poly1305",
      "password": "oZIoA69Q8yhcQV8ka3Pa3A",
      "tcp_fast_open": false
    },
    {
      "type": "selector",
      "tag": "GLOBAL",
      "outbounds": [
        "BeePass"
      ]
    }
  ],
  "endpoints": [],
  "http_clients": [
    {
      "tag": "quic",
      "version": 3,
      "disable_version_fallback": true,
      "idle_timeout": "15s",
      "domain_resolver": "hosts"
    }
  ],
  "route": {
    "rules": [
      {
        "action": "sniff",
        "timeout": "100ms",
        "sniffer": [
          "dns",
          "bittorrent",
          "http",
          "tls",
          "quic",
          "dtls"
        ]
      },
      {
        "type": "logical",
        "mode": "or",
        "rules": [
          {
            "port": [
              53,
              853
            ]
          },
          {
            "protocol": "dns"
          }
        ],
        "action": "hijack-dns"
      },
      {
        "ip_is_private": true,
        "ip_cidr": [
          "223.5.5.5/32",
          "223.6.6.6/32",
          "119.29.9.29/32"
        ],
        "outbound": "direct-out"
      },
      {
        "clash_mode": "Direct",
        "outbound": "direct-out"
      },
      {
        "clash_mode": "Global",
        "outbound": "GLOBAL"
      },
      {
        "rule_set": [
          "proxy-lite"
        ],
        "outbound": "GLOBAL"
      },
      {
        "clash_mode": "Blocklist",
        "outbound": "direct-out"
      },
      {
        "rule_set": [
          "geoip-cn",
          "geosite-geolocation-cn"
        ],
        "outbound": "direct-out"
      },
      {
        "domain": [
          "gemini.google.com",
          "www.google.com"
        ],
        "outbound": "GLOBAL"
      },
      {
        "clash_mode": "Rule",
        "outbound": "GLOBAL"
      }
    ],
    "final": "GLOBAL",
    "auto_detect_interface": true,
    "rule_set": [
      {
        "type": "remote",
        "tag": "geoip-cn",
        "format": "binary",
        "url": "https://testingcf.jsdelivr.net/gh/SagerNet/sing-geoip@rule-set/geoip-cn.srs",
        "http_client": "quic"
      },
      {
        "type": "remote",
        "tag": "geosite-geolocation-cn",
        "format": "binary",
        "url": "https://testingcf.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-geolocation-cn.srs",
        "http_client": "quic"
      },
      {
        "type": "remote",
        "tag": "proxy-lite",
        "format": "binary",
        "url": "https://testingcf.jsdelivr.net/gh/KaringX/karing-ruleset@sing/ACL4SSR/ProxyLite.srs",
        "http_client": "quic"
      }
    ],
    "default_domain_resolver": "cloudflare-gateway-dns"
  }
}