mihomo (Clash Meta) vs. the Original Clash Core: Protocols, Rule Types, and Config Fields

Compare mihomo with the original Clash core: supported protocols, rule-set formats, sniffing, TUN, and the config fields to update when migrating.

Identifying the Core: Original Clash, Clash Premium, and mihomo

Before importing a config, check which core the client is actually running—not whether its name includes Clash. mihomo is the successor to the original Clash.Meta project. In this article, “original Clash” refers to Dreamacro’s publicly available open-source core. Clash Premium was a separate historical release of the same project, with features such as TUN and rule providers. Its capabilities should not be taken as evidence of what the original open-source core supports.

Check the core name and version on the client’s About or Core page, then compare them with the startup log; menu names vary by client. You can also check the version of a standalone mihomo executable. The commands below assume the executable is on your system path. The second command uses a copy of the config in the current directory so the active config remains untouched.

mihomo -v
mihomo -t -f ./config.yaml

A successful config check only means that no config errors were reported in that check. It does not verify node handshakes, remote rule updates, system routing, or DNS. Desktop clients may also apply overrides or subscription conversion rules. If the source file passes validation but the client fails to start, check the final config the client passes to the core and the corresponding startup log.

Protocol Support: Compare Node Types and Transport Settings

When migrating older nodes, start with the type field in each proxies entry, then check the transport, encryption, and TLS settings. Common node types in original Clash configs can usually serve as a starting point. In the other direction, newer protocol nodes in a mihomo config may cause the original core to fail during loading.

Node typeOriginal Clash open-source coremihomo config checks
ss、vmess、trojanSupports common types; details vary by releaseKeep the original type and check the encryption method, transport settings, and TLS options
vlessNot supportedCheck uuid and the transport. If the server uses REALITY, also check reality-opts and related settings
hysteria2、tuicNot supportedCheck the authentication fields for the protocol and confirm that the current network allows UDP traffic to the server

A subscription URL refreshing successfully does not mean the delivered nodes are compatible with the core. The server may return different content depending on the client type, or the client may convert the subscription before passing it to the core. Check the node entries in the final config. If the log reports an unsupported type, use a compatible core or subscription output format—don’t change type: vless to type: vmess. Changing the type does not change the server protocol.

Rule Types and Rule Sets: Understanding behavior vs. format

You can usually migrate basic rules from an older config in their original order. DOMAIN matches an exact domain, DOMAIN-SUFFIX matches a domain suffix, and IP-CIDR matches an IP address range. Rules are evaluated in order, and the first match takes effect. Keep MATCH at the end and make sure every rule still points to a policy group with the same name.

For external rule sets, check both their meaning and their file format. rule-providers defines the source; RULE-SET in rules determines where the set is evaluated and which policy handles a match. In mihomo, behavior controls how rules are interpreted, while format controls how the file is read. They are not interchangeable.

  • Rule semantics: domain is for domain collections, ipcidr for IP range collections, and classical for entries that include rule types, such as DOMAIN-SUFFIX,example.org. These entries don’t include a policy name; the RULE-SET that references them specifies the policy.
  • File formats: yaml uses a payload list, text reads rules line by line, and mrs is a binary format supported only for domain and ipcidr. Changing a file extension does not convert its contents.
  • Migration in the other direction: First confirm that the target core supports rule-providers, then check which formats it can read. If it doesn’t support rule providers, expand the entries you need into regular rules, add a policy name to each one, and preserve the matching order. Expanded rules won’t continue receiving updates from the source rule set.

This local example sends example.org and its subdomains to DIRECT, with all other traffic also going direct. Use it to see in the logs whether a rule set or the final fallback matched; no nodes are needed. It uses classical, so each rule’s type is specified in the rule file.

Main config: Define the rule set and reference it in ordered rules

mode: rule
rule-providers:
  local-domains:
    type: file
    behavior: classical
    format: yaml
    path: ./rules/local-domains.yaml
rules:
  - RULE-SET,local-domains,DIRECT
  - MATCH,DIRECT

Rule file: Place rules/local-domains.yaml in the core’s working directory

payload:
  - DOMAIN-SUFFIX,example.org

Relative rule paths are resolved from the core’s actual working directory, which may not be the directory containing the subscription file. If startup reports a missing file, first check which directory the client specifies when launching the core. If the rule set loads but connections only match MATCH, check the active mode, rule order, and whether the core sees a domain or the destination IP.

What Domain Sniffing, Fake-IP, and TUN Each Do

These features solve different problems. TUN determines which traffic enters the core through a virtual network interface. Fake-IP returns virtual addresses through DNS and keeps a mapping to the corresponding domains. Sniffing tries to identify domains from connections already reaching the core. Enabling one does not enable the others.

Sniffing: Check Whether the Core Can See the Domain Needed for Matching

mihomo’s top-level sniffer setting can enable sniffing for HTTP, TLS, or QUIC. Whether a domain can be identified depends on the connection type, port settings, and whether the handshake exposes readable domain information. For example, when a connection enters the core with a destination IP, domain rules can match the server name only if it can be read from the TLS handshake. For troubleshooting, first verify domain detection without enabling override-destination. Overriding the connection destination is a separate behavior that may change how a connection originally made to an IP address is handled.

Fake-IP: Check That the DNS Response and Mapping Come from the Same Core

With dns.enhanced-mode: fake-ip, the core returns virtual addresses for eligible queries and uses the mapping to recover the domain for later connections. If an app sends DNS queries outside the core, that mapping won’t be available for matching. After switching DNS modes, have the app resolve the domain again and open a new connection so a cached address isn’t mistaken for the result of the new config. Add domains to fake-ip-filter only after confirming that a service actually requires a real DNS address.

TUN: Check the Interface, Routes, and DNS Traffic

In mihomo, tun.enable enables TUN, tun.auto-route configures routes automatically, and tun.dns-hijack intercepts DNS traffic covered by the config. A virtual interface requires the right system capabilities and permissions, and its routes may conflict with an active VPN or another TUN setup. Standard DNS interception does not mean an app’s own encrypted DNS can be intercepted. If only one app fails to match domain rules, check its DNS settings and connection logs; that’s more direct than repeatedly changing the TUN stack.

Migrating an Older Config: Test the Listener, Rules, and Traffic Routing Separately

First, get the old config working in mihomo with an explicit proxy. Then restore remote rules, DNS, and TUN one at a time. Replacing the core, changing routing rules, and enabling TUN all at once makes it hard to tell whether an outage is caused by the local listener, routing, DNS resolution, or a node.

  1. Keep a rollback copy. Copy the working config and note the original core version, startup directory, and client overrides. Stop the old process before starting the new core on the same port; otherwise, the second process may fail to bind. To compare them side by side, give the new core its own listening port and working directory.
  2. Check the proxy port. For example, set mixed-port: 7890 temporarily and bind the listener to localhost only. Then point an app on the same machine to 127.0.0.1:7890 as its HTTP proxy. If the original config uses separate port and socks-port listeners, make sure the app’s protocol matches the corresponding port. external-controller is a control interface, not a proxy address for apps.
  3. Check nodes and rules. Test a connection to a reliably reachable destination through a known-working node. In the connection log, check the destination domain, matched rule, policy group, and actual outbound. If the connection succeeds but uses the wrong policy, check mode and rule order first. If the rule is correct but the node connection fails, check the handshake settings and server reachability.
  4. Enable DNS and TUN last. Change one group of fields at a time. First, use a new connection to confirm DNS responses and domain matching. Then test TUN with an app that has no explicit proxy configured, and check that local network services remain reachable. If something breaks only after enabling TUN, turn it off and return to explicit proxy mode, then compare the system routes and DNS logs.

Which fields need to change? You don’t need to rewrite basic listener settings, standard policy groups, or rules wholesale. Focus on node settings that produce errors, rule-set formats that don’t match their file contents, and DNS or TUN fields that conflict with the current system setup. Validate config parsing, rule matching, and connectivity separately.

Download Clash