mihomo vs. the Original Clash Core: New Protocols, Rule Providers, and Config Changes

See what mihomo (Clash Meta) adds over the original core, including protocol support, rule providers, TUN, and DNS options, plus common config migration pitfalls.

Core differences: Check which core the client actually runs

When migrating an old Clash config to mihomo, keep working proxies, proxy groups, and basic rules first. Then test rule providers, DNS, and TUN separately. If you only use HTTP proxies and domain rules, there’s no need to rewrite your entire YAML just to switch cores. If your subscription includes VLESS, Hysteria2, or TUIC, first make sure the active core can parse those node types and their parameters.

Clash Meta is the former name for mihomo. Clash Premium is a separate core from the original Clash project, not an older mihomo version. “Original Clash” can also refer to the open-source core, so don’t conflate the two: rule providers and TUN weren’t first introduced by mihomo; Clash Premium supported them too. To assess compatibility, record the core name, core version, and client version separately. The version number of a client installer does not tell you the core version.

CheckCommon in older configsCheck after migrating to mihomo
Proxy protocolsShadowsocks, VMess, Trojan, and othersThe new protocol’s type, authentication fields, and transport parameters
Rule providersPremium supports rule-providers and RULE-SETRule file format, behavior, and rule order
DNSExisting fake-ip or redir-host settingsUpstream DNS for resolving node hostnames and Fake-IP exceptions
TUNProvided by Premium or the client’s integrationOS permissions, default route, DNS interception, and local subnets

New protocols: importing a config doesn’t mean the handshake will work

Seeing a subscription in the client’s config list only means the client received and saved it. Once you select that config, the core still has to parse the node fields. Transport, authentication, and TLS settings are only tested when a connection is attempted. Switching cores won’t turn a server’s VMess node into VLESS, or a first-generation Hysteria node into Hysteria2.

  • VLESS: Set the node type to type: vless. The identity field uuid and transport field network must match the server. For REALITY, check servername, reality-opts.public-key, and reality-opts.short-id. Only check flow: xtls-rprx-vision if the server requires Vision. Don’t copy these parameters from one node to another.
  • Hysteria2: Set the node type to type: hysteria2 and use password for authentication. Check server, port, and the sni required by the server. Hysteria2 uses UDP: the core may load the config even when the current network can’t reach the server over UDP.
  • TUIC: Confirm the protocol version with the config provider first. TUIC v5 nodes use uuid and password; changing an older token to password won’t make it compatible. As with Hysteria2, check UDP connectivity separately.

Migrating rule providers: match the content format to the behavior

rule-providers defines where rules come from; RULE-SET in rules connects the corresponding rule set to routing. Unlike proxy-providers, which provides proxy nodes, rule providers don’t populate proxy groups. When migrating an old Premium config, first confirm that the existing YAML rule set matches as expected. Then decide whether to switch to another format supported by mihomo.

  • behavior: domain: Entries are domain-matching patterns, such as +.example.com. Don’t use DOMAIN-SUFFIX,example.com here.
  • behavior: ipcidr: Entries are CIDR ranges, such as 192.0.2.0/24. Don’t add the IP-CIDR, prefix.
  • behavior: classical: Entries include a rule type, such as DOMAIN-SUFFIX,example.com. Don’t include a policy name in the entry; the RULE-SET reference specifies the policy.

Test a match with a local rule file

The following are two top-level fields in a standalone test config. A local file lets you rule out remote rule download failures first. When merging this into an existing config, add the definition to its rule-providers section and insert the reference before the relevant broad rules and final MATCH. Don’t add duplicate top-level keys.

rule-providers:
  example-domains:
    type: file
    behavior: domain
    format: yaml
    path: ./rules/example-domains.yaml

rules:
  - RULE-SET,example-domains,DIRECT
  - MATCH,DIRECT

Create rules/example-domains.yaml in the core’s working directory. This uses the payload list required for a YAML rule set:

payload:
  - '+.example.com'

After requesting example.com, check the connection details or logs to confirm it matched example-domains—don’t just check that the outbound is DIRECT. The example also falls back to direct, so the outbound alone won’t tell you whether the rule matched. If switching back to an HTTP provider causes failures, check the rule file path, download result, and configured format. Changing a YAML file’s extension to .mrs won’t convert its contents.

DNS settings: distinguish website hostnames from node hostnames

Keep the existing dns.enhanced-mode setting first. Don’t switch between fake-ip and redir-host at the same time as changing cores. In Fake-IP mode, the core may return a mapped address to the app. If fake-ip-range is set to 198.18.0.1/16, an A record in that range doesn’t mean the upstream resolved the website incorrectly. Also make sure connections reach the core that handles this mapping.

  • nameserver is one of the upstreams used for ordinary queries. If nameserver-policy is configured, matching domains can use a separately specified upstream.
  • default-nameserver resolves the hostnames of DNS upstreams. If you switch to a DoH URL with a hostname and that hostname can’t be resolved, check this bootstrap resolution path first.
  • proxy-server-nameserver lets you specify a separate upstream for resolving proxy node hostnames. If a node’s server field is already an IP address, no hostname lookup is needed for it. For nodes that use hostnames, avoid relying on an upstream that in turn depends on the same node before it can connect.
  • In regular list mode, fake-ip-filter can return real DNS results for specified domains, which is useful for local services that need real addresses. It is not a direct-connection rule: check which rules entry matched to see whether traffic uses a proxy.

If the test config has dns.enable enabled and dns.listen set to 127.0.0.1:1053, query that listening port directly from a system with dig installed:

dig @127.0.0.1 -p 1053 example.com A

This only confirms that mihomo’s DNS listener responds; it doesn’t prove that your browser is sending queries to it. If the terminal query works but the browser behaves differently, check the browser’s Secure DNS settings and the actual DNS resolution path used by the system. Don’t change your entire DNS config based on this command alone.

TUN settings: test the proxy port before checking traffic interception

TUN handles traffic entering a virtual network interface, while the system proxy relies on apps honoring proxy settings. After switching to mihomo, if the local proxy port works but enabling TUN cuts off connectivity, check virtual interface permissions, routing, and DNS interception first—not the node password. Conversely, if the local proxy port itself doesn’t work, leave TUN off to avoid adding another variable.

  • tun.auto-route automatically configures routes. If enabling it disconnects local devices or a company VPN, compare routes before and after and check whether a local subnet is being intercepted.
  • tun.auto-detect-interface automatically detects the outbound network interface. Switching from Ethernet to Wi-Fi, or running another VPN at the same time, can change the default route. Record results for the same node separately in each setup.
  • any:53 in tun.dns-hijack is a common entry for intercepting UDP port 53. To intercept TCP port 53, use tcp://any:53. Neither setting intercepts DoH requests that browsers send over HTTPS.

The permissions required to enable TUN in a desktop client depend on the OS and the client’s implementation. On Windows, if virtual interface creation fails or route configuration returns a permissions error, first check whether the client relies on an installed, running service. To test the local proxy endpoint, if the actual mixed-port is 7897, specify that port explicitly with the command below. Adjust it to match the running config if needed.

curl.exe --proxy http://127.0.0.1:7897 --head https://example.com/

This request only tests whether an app can connect through the local proxy endpoint. To confirm whether it used a particular remote node, check the matched rule and final outbound. To test TUN, turn off the system proxy, start a new connection from an app without an explicitly configured proxy, and check whether the core logs it.

Migration checklist: verify the config, rules, DNS, and TUN in order

  1. Keep a rollback copy. Save the old YAML and local rule files. Clients with subscriptions may overwrite manual changes during updates. Test with a local copy first, then save the differences using the client’s supported override method. If the client merges or rewrites the config, troubleshoot the version actually passed to the core.
  2. Check the version and test the config. If mihomo is available in your terminal, run the following command from the directory containing your test config.yaml. If the client uses a bundled core, make sure the binary you test matches the version the client actually starts.
mihomo -v
mihomo -t -d . -f config.yaml
  1. Start with a minimal connection test. Leave TUN off and test one known-working node and one explicit direct-connection rule. Passing config validation doesn’t prove that the server handshake will succeed, and it doesn’t replace checking rule matches and outbound results.
  2. Restore settings one at a time. Restore the rule providers and check matches first. Then test DNS resolution for ordinary domains and node hostnames. Finally, enable TUN and retest local network access. If a step introduces a problem, revert that change first. If only one app ignores the system proxy, follow the troubleshooting steps for system proxy not working to check the connection path.
Download Clash