{
    "dns": {
        "independent_cache": true,
        "rules": [      
          {
            "domain_suffix": [],
            "server": "direct-dns",
            "disable_cache": false
          }],
        "servers": [
          {
            "address": "1.1.1.1:53",
            "address_resolver": "direct-dns",
            "strategy": "prefer_ipv4",
            "tag": "remote-dns"
          },
          {
            "address": "local",
            "detour": "direct",
            "strategy": "prefer_ipv4",
            "tag": "direct-dns"
          },
          {
            "address": "rcode://success",
            "tag": "dns-block"
          }
        ]
    },
    "experimental": {
        "clash_api": {
          "cache_file": "../cache/clash.db",
          "external_controller": "0.0.0.0:9090",
          "external_ui": "../files/yacd"
        }
    },
    "inbounds": [
      {
        "listen": "0.0.0.0",
        "listen_port": 6450,
        "override_address": "8.8.8.8",
        "override_port": 53,
        "tag": "dns-in",
        "type": "direct"
      },
      {
        "domain_strategy": "",
        "endpoint_independent_nat": true,
        "inet4_address": [
          "172.19.0.1/28"
        ],
        "mtu": 9000,
        "sniff": true,
        "sniff_override_destination": true,
        "stack": "system",
        "tag": "tun-in",
        "type": "tun"
      },
      {
        "domain_strategy": "",
        "listen": "0.0.0.0",
        "listen_port": 2080,
        "sniff": true,
        "sniff_override_destination": true,
        "tag": "mixed-in",
        "type": "mixed"
      }
    ],
    "log": {
      "level": "info"
    },
    "outbounds": [
      {
        "type": "selector",
        "tag": "Internet",
        "outbounds": [
          "Best Latency"
        ]
      },
      {
        "type": "urltest",
        "tag": "Best Latency",
        "outbounds": [],
        "url": "https://detectportal.firefox.com/success.txt",
        "interval": "1m0s"
      },
      {
        "tag": "direct",
        "type": "direct"
      },
      {
        "tag": "bypass",
        "type": "direct"
      },
      {
        "tag": "block",
        "type": "block"
      },
      {
        "tag": "dns-out",
        "type": "dns"
      }
    ],
    "route": {
      "auto_detect_interface": true,
      "rules": [
        {
          "outbound": "dns-out",
          "port": [
            53
          ]
        },
        {
          "inbound": [
            "dns-in"
          ],
          "outbound": "dns-out"
        },
        {
          "network": [
            "udp"
          ],
          "outbound": "block",
          "port": [
            443
          ],
          "port_range": []
        },
        {
          "ip_cidr": [
            "224.0.0.0/3",
            "ff00::/8"
          ],
          "outbound": "block",
          "source_ip_cidr": [
            "224.0.0.0/3",
            "ff00::/8"
          ]
        }
      ]
    }
  }