{
  "log": {
    "level": "warn",
    "timestamp": true
  },
  "dns": {
    "servers": [
      {
        "type": "https",
        "server": "8.8.8.8",
        "detour": "🌐 Anonymous Multi",
        "tag": "dns-remote"
      },
      {
        "type": "udp",
        "server": "8.8.8.8",
        "server_port": 53,
        "tag": "dns-direct"
      },
      {
        "type": "fakeip",
        "tag": "dns-fake",
        "inet4_range": "198.18.0.0/15",
        "inet6_range": "fc00::/18"
      }
    ],
    "rules": [
      {
        "domain": [
          "raw.githubusercontent.com"
        ],
        "server": "dns-direct"
      },
      {
        "clash_mode": "Direct",
        "server": "dns-direct"
      },
      {
        "clash_mode": "Global",
        "server": "dns-remote"
      },
      {
        "type": "logical",
        "mode": "and",
        "rules": [
          {
            "rule_set": "geosite-ir"
          },
          {
            "rule_set": "geoip-ir"
          }
        ],
        "action": "route",
        "server": "dns-direct"
      },
      {
        "rule_set": [
          "geosite-malware",
          "geosite-phishing",
          "geosite-cryptominers",
          "geosite-category-ads-all"
        ],
        "action": "reject"
      },
      {
        "disable_cache": true,
        "inbound": "tun-in",
        "query_type": [
          "A",
          "AAAA"
        ],
        "server": "dns-fake"
      }
    ],
    "strategy": "ipv4_only",
    "independent_cache": true
  },
  "inbounds": [
    {
      "type": "tun",
      "tag": "tun-in",
      "address": [
        "172.18.0.1/30",
        "fdfe:dcba:9876::1/126"
      ],
      "mtu": 9000,
      "auto_route": true,
      "strict_route": true,
      "endpoint_independent_nat": true,
      "stack": "mixed"
    },
    {
      "type": "mixed",
      "tag": "mixed-in",
      "listen": "0.0.0.0",
      "listen_port": 2080
    }
  ],
  "outbounds": [
    {
      "type": "selector",
      "tag": "🌐 Anonymous Multi",
      "outbounds": [
        "👽 Best Ping 🚀",
        "Hysteria2-480cc748",
        "VLESS-b1799bc7",
        "VLESS-e03cbeb9",
        "VLESS-f5d6162b",
        "VLESS-9379f2cd",
        "VMess-410439b5",
        "VLESS-40ed09de",
        "VLESS-e5d2a6fd",
        "Trojan-f7f71c0d",
        "VLESS-99cca7f0",
        "VLESS-e8649a21",
        "VMess-22ab3e9b",
        "Trojan-6e4014e3",
        "VLESS-4c33e7dd",
        "VLESS-bb74108b",
        "VLESS-922e4695",
        "VLESS-e781820b",
        "direct"
      ]
    },
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "urltest",
      "tag": "👽 Best Ping 🚀",
      "outbounds": [
        "Hysteria2-480cc748",
        "VLESS-b1799bc7",
        "VLESS-e03cbeb9",
        "VLESS-f5d6162b",
        "VLESS-9379f2cd",
        "VMess-410439b5",
        "VLESS-40ed09de",
        "VLESS-e5d2a6fd",
        "Trojan-f7f71c0d",
        "VLESS-99cca7f0",
        "VLESS-e8649a21",
        "VMess-22ab3e9b",
        "Trojan-6e4014e3",
        "VLESS-4c33e7dd",
        "VLESS-bb74108b",
        "VLESS-922e4695",
        "VLESS-e781820b"
      ],
      "url": "https://www.gstatic.com/generate_204",
      "interrupt_exist_connections": false,
      "interval": "30s"
    },
    {
      "type": "hysteria2",
      "tag": "Hysteria2-480cc748",
      "server": "bwg.111142.xyz",
      "server_port": 19588,
      "password": "pwd5921",
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": true
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-b1799bc7",
      "server": "bwg.111142.xyz",
      "server_port": 7758,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "flow": "xtls-rprx-vision",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-e03cbeb9",
      "server": "bwg.111142.xyz",
      "server_port": 35763,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "flow": "xtls-rprx-vision",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "fYAuEXvF-tKSfbZjrFUtjgjhuy59z9G1a_pg3ANN3zE",
          "short_id": "6ba85179e30d4fc2"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-f5d6162b",
      "server": "bwg.111142.xyz",
      "server_port": 35763,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "flow": "",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "fYAuEXvF-tKSfbZjrFUtjgjhuy59z9G1a_pg3ANN3zE",
          "short_id": "6ba85179e30d4fc2"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-9379f2cd",
      "server": "bwg.111142.xyz",
      "server_port": 7758,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "flow": "",
      "transport": {
        "type": "ws",
        "path": "/alonews",
        "headers": {
          "Host": "bwg.111142.xyz"
        }
      },
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vmess",
      "tag": "VMess-410439b5",
      "server": "bwg.111142.xyz",
      "server_port": 7758,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "security": "auto",
      "alter_id": 0,
      "transport": {
        "type": "ws",
        "path": "/alonevws",
        "headers": {
          "Host": "bwg.111142.xyz"
        }
      },
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-40ed09de",
      "server": "bwg.111142.xyz",
      "server_port": 7758,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "flow": "",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-e5d2a6fd",
      "server": "bwg.111142.xyz",
      "server_port": 35851,
      "uuid": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "flow": "",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "fYAuEXvF-tKSfbZjrFUtjgjhuy59z9G1a_pg3ANN3zE",
          "short_id": "6ba85179e30d4fc2"
        }
      }
    },
    {
      "type": "trojan",
      "tag": "Trojan-f7f71c0d",
      "server": "bwg.111142.xyz",
      "server_port": 7758,
      "password": "d7abd86f-ae1c-4c36-9d85-ef3de7047c36",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-99cca7f0",
      "server": "bwg2.111142.xyz",
      "server_port": 443,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "flow": "xtls-rprx-vision",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg2.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-e8649a21",
      "server": "bwg2.111142.xyz",
      "server_port": 443,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "flow": "",
      "transport": {
        "type": "ws",
        "path": "/pathws",
        "headers": {
          "Host": "bwg2.111142.xyz"
        }
      },
      "tls": {
        "enabled": true,
        "server_name": "bwg2.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vmess",
      "tag": "VMess-22ab3e9b",
      "server": "bwg2.111142.xyz",
      "server_port": 443,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "security": "auto",
      "alter_id": 0,
      "transport": {
        "type": "ws",
        "path": "/pathvws",
        "headers": {
          "Host": "bwg2.111142.xyz"
        }
      },
      "tls": {
        "enabled": true,
        "server_name": "bwg2.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "trojan",
      "tag": "Trojan-6e4014e3",
      "server": "bwg2.111142.xyz",
      "server_port": 443,
      "password": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg2.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-4c33e7dd",
      "server": "bwg2.111142.xyz",
      "server_port": 443,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "flow": "",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "bwg2.111142.xyz",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-bb74108b",
      "server": "178.157.48.193",
      "server_port": 12440,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "flow": "xtls-rprx-vision",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "swdist.apple.com",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "ai32KR5yEGPjzMrSQceYJVPTVLuDJGJWqWJteBu8Ww8",
          "short_id": "6ba85179e30d4fc2"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-922e4695",
      "server": "178.157.48.193",
      "server_port": 12440,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "flow": "",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "swdist.apple.com",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "ai32KR5yEGPjzMrSQceYJVPTVLuDJGJWqWJteBu8Ww8",
          "short_id": "6ba85179e30d4fc2"
        }
      }
    },
    {
      "type": "vless",
      "tag": "VLESS-e781820b",
      "server": "178.157.48.193",
      "server_port": 16874,
      "uuid": "c03ca59b-7303-40ef-8df5-27787a2b786e",
      "flow": "",
      "transport": {},
      "tls": {
        "enabled": true,
        "server_name": "lol.secure.dyn.riotcdn.net",
        "insecure": false,
        "alpn": [
          "http/1.1"
        ],
        "record_fragment": false,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "ai32KR5yEGPjzMrSQceYJVPTVLuDJGJWqWJteBu8Ww8",
          "short_id": "6ba85179e30d4fc2"
        }
      }
    }
  ],
  "route": {
    "rules": [
      {
        "ip_cidr": "172.18.0.2",
        "action": "hijack-dns"
      },
      {
        "clash_mode": "Direct",
        "outbound": "direct"
      },
      {
        "clash_mode": "Global",
        "outbound": "🌐 Anonymous Multi"
      },
      {
        "action": "sniff"
      },
      {
        "protocol": "dns",
        "action": "hijack-dns"
      },
      {
        "network": "udp",
        "action": "reject"
      },
      {
        "rule_set": [
          "geosite-malware",
          "geosite-phishing",
          "geosite-cryptominers",
          "geosite-category-ads-all"
        ],
        "action": "reject"
      },
      {
        "rule_set": [
          "geoip-malware",
          "geoip-phishing"
        ],
        "action": "reject"
      },
      {
        "rule_set": [
          "geosite-ir"
        ],
        "action": "route",
        "outbound": "direct"
      },
      {
        "rule_set": [
          "geoip-ir"
        ],
        "action": "route",
        "outbound": "direct"
      }
    ],
    "rule_set": [
      {
        "type": "remote",
        "tag": "geosite-malware",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geoip-malware",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geosite-phishing",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geoip-phishing",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geosite-cryptominers",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geosite-category-ads-all",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geosite-ir",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs",
        "download_detour": "direct"
      },
      {
        "type": "remote",
        "tag": "geoip-ir",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs",
        "download_detour": "direct"
      }
    ],
    "auto_detect_interface": true,
    "default_domain_resolver": {
      "server": "dns-direct",
      "strategy": "prefer_ipv4",
      "rewrite_ttl": 60
    },
    "final": "🌐 Anonymous Multi"
  },
  "ntp": {
    "enabled": true,
    "server": "time.cloudflare.com",
    "server_port": 123,
    "domain_resolver": "dns-direct",
    "interval": "30m",
    "write_to_system": false
  },
  "experimental": {
    "cache_file": {
      "enabled": true,
      "store_fakeip": true
    },
    "clash_api": {
      "external_controller": "127.0.0.1:9090",
      "external_ui": "ui",
      "external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
      "external_ui_download_detour": "direct",
      "default_mode": "Rule"
    }
  }
}