Mihomo vs. Original Clash: New Protocols, Rule Providers, and TUN Improvements

Compare mihomo (Clash Meta) with the original Clash core. Learn about added proxy protocols, rule providers, TUN stack options, and DNS changes.

How mihomo, Clash Meta, and the original Clash relate

mihomo is the core project formerly known as Clash.Meta, developed from a fork in the Clash ecosystem. It retains the familiar Clash YAML structure: proxies defines nodes, proxy-groups defines policy groups, and rules determine which outbound route handles each connection. Using the same fields does not mean configurations are interchangeable across cores. An older node loading successfully does not mean the rules, DNS, or TUN settings in the same configuration will work unchanged.

This comparison uses the Dreamacro open-source Clash release v1.18.0 and mihomo v1.19.0. Older clients may also bundle Clash Premium; its rule-provider and TUN capabilities at the time should not be attributed to the original open-source release, nor treated as features introduced by mihomo. Client and core version numbers are different: first check the core name and version under the client’s Settings → About. If About only shows the client version, check the startup details in Logs. Menu names vary by client.

Proxy protocol differences: check the node type before troubleshooting connectivity

Shadowsocks, VMess, and Trojan in an older configuration can be a starting point for migration, but check the specific options too. For example, nodes may all use ss as their type while requiring different cipher suites or plugins. To determine whether a new subscription works with an older core, inspect proxies[].type and its associated fields in the actual YAML—not the names the provider gives its nodes on the website.

Node settings to check when migrating from the original open-source Clash
Node typeWhat to look for in mihomo configCommon misconception
Hysteria 2type: hysteria2 uses QUIC and requires a working UDP path to the server.A reachable TCP port at the same address does not mean the node can complete a handshake.
TUICtype: tuic also uses QUIC. Check that the configuration matches the protocol version used by the server.Checking only the server and port, while overlooking authentication fields and version differences.
VLESS + REALITYtype: vless; REALITY connection settings are specified in fields such as reality-opts.Treating REALITY as a standalone node type, or assuming every VLESS node uses REALITY.

If the logs report an unsupported node type immediately after import, first switch to a compatible core or get a subscription in a supported format; there is no need to start by troubleshooting ports. If the configuration loads and you can select the node, but the connection times out only when you connect, then check the network path. For QUIC nodes, test the same configuration on the same device over another working network before changing node settings or local network settings.

Rule providers: format, order, and updates

rule-providers specifies where a rule set comes from and how to parse it. A RULE-SET entry under rules is what adds it to the matching process. A source declared without a reference will not route traffic using that rule set. Rule providers are also different from proxy-providers: the latter supply nodes, usually referenced by a policy group with use, and do not determine which domains match that group.

Verify a rule match with a local file

The following example can be added to a test configuration. If a top-level field with the same name already exists, merge the entries into it rather than declaring it again. Put the rule file in the rules subdirectory of mihomo’s working directory; a GUI client’s core working directory may differ from the directory containing subscription files.

rule-providers:
  local-sites:
    type: file
    behavior: domain
    format: yaml
    path: ./rules/local-sites.yaml

rules:
  - RULE-SET,local-sites,DIRECT
  - MATCH,DIRECT

Add the following to rules/local-sites.yaml:

payload:
  - 'example.com'

In Rule mode, use the client to open https://example.com/, then check the matched rule under Connections or in the logs. Both rules route to DIRECT, so checking the outbound route alone cannot confirm that the rule set is working. Check whether the connection matched local-sites or the fallback MATCH. If you put this RULE-SET after MATCH, it will never get a chance to match.

  • Check the rule type: Use domain for domain entries and ipcidr for IP ranges. classical can contain full match expressions such as DOMAIN-SUFFIX,example.com, but do not append an outbound route to the end of a file entry.
  • Check the file format: YAML, text, and binary rule sets cannot be made interchangeable by changing the file extension. During migration, set format to the format specified by the rule set publisher, then confirm that your core version supports that format and rule type combination.
  • Track updates separately: If you switch the source to type: http, interval: 86400 checks for rule set updates every 24 hours. This is not the interval for refreshing the client’s entire subscription. If rules have not changed, check the rule set’s own fetch logs first, then check whether the subscription has updated.

TUN stack differences: traffic coverage and troubleshooting order

System proxy settings usually affect only apps that read them. TUN routes traffic through a virtual network interface, so it can handle more apps, including those that ignore system proxy settings. TUN does not mean Global mode: once traffic reaches the core, rules can still send it direct or through a proxy. System permissions, routes, and interface settings also affect which traffic TUN can capture.

mihomo tun.stack options
Network stackHow it worksWhat to consider
systemProcesses traffic using the system network stack.First confirm that system routes work and the virtual interface can be created, then investigate connection issues.
gvisorUses the gVisor userspace network stack.To compare compatibility between the system and userspace stacks, change this option alone.
mixedUses the system stack for TCP and gVisor for UDP.Test TCP and UDP separately. A web page loading in your browser does not mean UDP apps are working.

For troubleshooting, start by turning off TUN and establishing a baseline with an app explicitly routed through the local proxy port. For example, if the active configuration sets mixed-port to 7890, an app with manual proxy settings can use 127.0.0.1:7890. Once the connection appears in the client, remove the app’s manual proxy setting, enable TUN, and test the same destination again to check traffic capture. If enabling TUN immediately fails to create a virtual interface or reports insufficient route permissions, check the client service and system authorization first; changing stack usually will not fix an interface creation problem.

DNS differences: Fake-IP is not a new feature

The original Clash already supported Fake-IP. With dns.enhanced-mode: fake-ip, the core can return a mapped address to an app for eligible domains. When the app later connects to that address through the core, the core can recover the original domain for rule matching. Seeing a mapped address in the 198.18.0.0/16 range is not, by itself, evidence of a DNS failure. Check the configured fake-ip-range and whether the subsequent connection reaches the core.

Break DNS failures into three categories

  • Internal hostnames resolve incorrectly: Check whether nameserver-policy directs the domain to an internal DNS server that can resolve it. If the app also needs a real IP address, check fake-ip-filter. The former selects the resolver; the latter controls which names do not receive mapped addresses under the usual blacklist filtering mode.
  • Proxy server hostnames fail to resolve: Check proxy-server-nameserver. It resolves hostnames for proxy nodes; it is not the same as the resolver used for websites. Before a node connects, its hostname should not depend on an upstream resolver that can only be reached through that same node.
  • Only fails when TUN is enabled: Check whether tun.dns-hijack matches the actual DNS request. An app’s built-in DoH is not a standard DNS request on port 53, so do not assume a hijack rule targeting that port will capture it.

Migration checklist: moving an old Clash config to mihomo

  1. Keep the original config. Work from a copy and note the original core version, operating mode, and listening ports. When switching, do not let both cores listen on the same local port.
  2. Verify the config and nodes first. Leave TUN off, import the copy, and check the startup logs. Select a known-working node and confirm that it can connect. A successful import only means the configuration loaded; it does not mean every node can connect.
  3. Then verify routing. Compare a domain that should match a rule set with one that should use the fallback, and check the matched rules and outbound routes in the logs. If both connections use the same route, check which rules matched rather than only whether the pages load.
  4. Enable custom DNS and TUN last. Verify the custom DNS policy first, then enable TUN on its own. Test your browser, internal hostnames, and any UDP apps you rely on. If something breaks, revert the setting changed at that step.

If your current configuration uses only basic protocols and a few domain rules, keep the existing format after switching cores; there is no need to convert every rule into a rule set. If your subscription uses Hysteria 2 or VLESS + REALITY, or your older client cannot read newer rule sets, confirm core compatibility first and then decide what needs to change. A successful migration means nodes connect, routing matches expectations, and the apps that need traffic capture work.

Download Clash