{
  "dns": {
    "final": "dns-local",
    "independent_cache": true,
    "rules": [
      {
        "action": "reject",
        "query_type": "HTTPS"
      },
      {
        "action": "reject",
        "domain_suffix": "use-application-dns.net"
      },
      {
        "action": "route",
        "rewrite_ttl": 60,
        "rule_set": [
          "quatr-russia_inside",
          "quatr-telegram",
          "quatr-google_play",
          "quatr-cloudflare",
          "quatr-google_ai"
        ],
        "server": "dns-remote"
      }
    ],
    "servers": [
      {
        "tag": "dns-local",
        "type": "local"
      },
      {
        "detour": "quatr-select",
        "server": "8.8.8.8",
        "tag": "dns-remote",
        "type": "tls"
      },
      {
        "inet4_range": "198.18.0.0/15",
        "tag": "dns-fakeip",
        "type": "fakeip"
      }
    ],
    "strategy": "ipv4_only"
  },
  "experimental": {
    "cache_file": {
      "enabled": true,
      "path": "cache.db",
      "store_fakeip": true
    }
  },
  "inbounds": [
    {
      "address": [
        "172.19.0.1/30"
      ],
      "auto_route": true,
      "mtu": 1500,
      "stack": "mixed",
      "strict_route": true,
      "tag": "tun-in",
      "type": "tun"
    }
  ],
  "log": {
    "level": "info"
  },
  "outbounds": [
    {
      "default": "quatr-auto",
      "outbounds": [
        "quatr-auto",
        "quatr-trojan",
        "quatr-anytls",
        "quatr-tuic"
      ],
      "tag": "quatr-select",
      "type": "selector"
    },
    {
      "interval": "2m",
      "outbounds": [
        "quatr-trojan",
        "quatr-anytls",
        "quatr-tuic"
      ],
      "tag": "quatr-auto",
      "tolerance": 200,
      "type": "urltest",
      "url": "https://www.gstatic.com/generate_204"
    },
    {
      "password": "DLSH5Lgs2bwfdtGkKUmHPATQf3oELqne",
      "server": "103.249.132.112",
      "server_port": 443,
      "tag": "quatr-trojan",
      "tls": {
        "alpn": [
          "h2",
          "http/1.1"
        ],
        "enabled": true,
        "fragment": true,
        "insecure": true,
        "record_fragment": true,
        "server_name": "www.microsoft.com"
      },
      "type": "trojan"
    },
    {
      "password": "flM4wOg0Irqck9k31tuWDut81fhWyGw9",
      "server": "103.249.132.112",
      "server_port": 2053,
      "tag": "quatr-anytls",
      "tls": {
        "alpn": [
          "h2",
          "http/1.1"
        ],
        "enabled": true,
        "fragment": true,
        "insecure": true,
        "record_fragment": true,
        "server_name": "www.microsoft.com"
      },
      "type": "anytls"
    },
    {
      "congestion_control": "bbr",
      "password": "elfhviEIGkfSQ2UYW74lH4I6",
      "server": "103.249.132.112",
      "server_port": 8443,
      "tag": "quatr-tuic",
      "tls": {
        "alpn": [
          "h3"
        ],
        "enabled": true,
        "insecure": true,
        "server_name": "www.microsoft.com"
      },
      "type": "tuic",
      "udp_relay_mode": "native",
      "uuid": "be8de654-6f73-4803-ae3e-86cff371458a",
      "zero_rtt_handshake": false
    },
    {
      "tag": "direct",
      "type": "direct"
    }
  ],
  "route": {
    "auto_detect_interface": true,
    "default_domain_resolver": "dns-remote",
    "final": "direct",
    "rule_set": [
      {
        "format": "binary",
        "tag": "quatr-russia_inside",
        "type": "remote",
        "update_interval": "1d",
        "url": "https://github.com/itdoginfo/allow-domains/releases/latest/download/russia_inside.srs"
      },
      {
        "format": "binary",
        "tag": "quatr-telegram",
        "type": "remote",
        "update_interval": "1d",
        "url": "https://github.com/itdoginfo/allow-domains/releases/latest/download/telegram.srs"
      },
      {
        "format": "binary",
        "tag": "quatr-google_play",
        "type": "remote",
        "update_interval": "1d",
        "url": "https://github.com/itdoginfo/allow-domains/releases/latest/download/google_play.srs"
      },
      {
        "format": "binary",
        "tag": "quatr-cloudflare",
        "type": "remote",
        "update_interval": "1d",
        "url": "https://github.com/itdoginfo/allow-domains/releases/latest/download/cloudflare.srs"
      },
      {
        "format": "binary",
        "tag": "quatr-google_ai",
        "type": "remote",
        "update_interval": "1d",
        "url": "https://github.com/itdoginfo/allow-domains/releases/latest/download/google_ai.srs"
      }
    ],
    "rules": [
      {
        "action": "sniff"
      },
      {
        "action": "hijack-dns",
        "protocol": "dns"
      },
      {
        "ip_is_private": true,
        "outbound": "direct"
      },
      {
        "action": "route",
        "outbound": "quatr-select",
        "rule_set": [
          "quatr-russia_inside",
          "quatr-telegram",
          "quatr-google_play",
          "quatr-cloudflare",
          "quatr-google_ai"
        ]
      }
    ]
  }
}