{
  "log": {
    "level": "info"
  },
  "dns": {
    "servers": [
      {
        "address": "tls://dns.google",
        "address_resolver": "local",
        "detour": "direct"
      },
      {
        "tag": "warp-dns",
        "address": "tls://dns.google",
        "address_resolver": "local",
        "strategy": "prefer_ipv6"
      },
      {
        "tag": "local",
        "address": "local"
      }
    ],
    "rules": [
      {
        "outbound": ["WARP"],
        "server": "warp-dns"
      }
    ],
    "disable_cache": false
  },
  "inbounds": [
    {
      "type": "socks",
      "tag": "socks-in",
      "listen": "127.0.0.1",
      "listen_port": 51808,
      "sniff": true,
      "sniff_override_destination": true
    },
    {
      "type": "tun",
      "inet4_address": "198.18.0.1/30",
      "inet6_address": "fdfe:dcba:9876::1/126",
      "mtu": 9000,
      "auto_route": true,
      "strict_route": false,
      "stack": "gvisor",
      "sniff": true,
      "sniff_override_destination": true
    },
    {
      "type": "shadowsocks",
      "tag": "ss-in",
      "listen": "::",
      "listen_port": 51809,
      "method": "aes-128-gcm",
      "password": "",
      "sniff": true,
      "sniff_override_destination": true
    },
    {
      "type": "vmess",
      "tag": "vmess-in",
      "listen": "::",
      "listen_port": 8880,
      "sniff": true,
      "sniff_override_destination": true,
      "users": [
        {
          "uuid": "",
          "alterId": 0
        }
      ],
      "transport": {
        "type": "ws",
        "path": "",
        "max_early_data": 2048,
        "early_data_header_name": "Sec-WebSocket-Protocol"
      }
    }
  ],
  "outbounds": [
    {
      "type": "wireguard",
      "tag": "warp",
      "server": "engage.cloudflareclient.com",
      "server_port": 2408,
      "system_interface": false,
      "local_address": ["198.18.0.1/32", "fd00::1/128"],
      "private_key": "WG_PRIVATE_KEY",
      "peer_public_key": "WG_PEER_PUBLIC_KEY",
      "reserved": [0, 0, 0],
      "mtu": 1408
    },
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "direct",
      "tag": "WARP",
      "detour": "warp",
      "domain_strategy": "prefer_ipv6"
    },
    {
      "type": "dns",
      "tag": "dns-out"
    },
    {
      "type": "block",
      "tag": "block"
    }
  ],
  "route": {
    "geosite": {
      "download_detour": "warp"
    },
    "geoip": {
      "download_detour": "warp"
    },
    "rules": [
      {
        "protocol": "dns",
        "outbound": "dns-out"
      },
      {
        "protocol": "quic",
        "port": [443],
        "outbound": "block"
      },
      {
        "geosite": [""],
        "domain_suffix": [""],
        "outbound": "WARP",
        "invert": false
      }
    ],
    "final": "direct",
    "auto_detect_interface": true
  }
}
