1-Quick Start

{
  "dns": {
    "servers": [
	  // 1. google ็š„ dns ๆœๅŠกๅ™จ
      {
        "tag": "google",
        "address": "tls://8.8.8.8"
      },
	  // 2. ้˜ฟ้‡Œ็š„ dns ๆœๅŠกๅ™จ
      {
        "tag": "local",
        "address": "223.5.5.5",
        "detour": "direct"
      }
    ],
	// DNS ่งฃๆžไผ˜ๅ…ˆ่ตฐ local-tag ,ไนŸๅฐฑๆ˜ฏ้˜ฟ้‡Œ
    "rules": [
      {
        "outbound": "any",
        "server": "local"
      }
    ],
	// ไป…ไป…ไฝฟ็”จ ipv4
    "strategy": "ipv4_only"
  },
  "inbounds": [
    {
      "type": "tun", // ไฝฟ็”จ TUN ๆจกๅผ
      "inet4_address": "172.19.0.1/30", // TUN ๆŽฅๅฃ็š„. IPV4 ๅœฐๅ€ๅ’Œๅญ็ฝ‘ๆŽฉ็ 
      "auto_route": true, // ่‡ชๅŠจ้…็ฝฎ่ทฏ็”ฑ
      "strict_route": false // ็ฆๆญขไธฅๆ ผ่ทฏ็”ฑๆจกๅผ
    }
  ],
  "outbounds": [
    // ...
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "dns",
      "tag": "dns-out"
    }
  ],
  "route": {
    "rules": [
      {
        "protocol": "dns",
        "outbound": "dns-out"
      },
      {
        "geoip": [
          "private"
        ],
        "outbound": "direct"
      }
    ],
    "auto_detect_interface": true // ่‡ชๅŠจๆฃ€ๆต‹็ฝ‘็ปœๆŽฅๅฃ
  }
}

refer