mihomo vs. Original Clash: Protocols, Rule Types, and Config Compatibility

Compare mihomo (Clash Meta) with the original Clash core, from protocol support and rule sets to TUN and config compatibility. Learn what to update when switching cores.

Identify the core first: original open-source Clash, Premium, or mihomo

Here, “original Clash” refers specifically to the historical open-source core; Clash Premium is covered separately. mihomo is the successor name for the Clash.Meta project. A client’s name and its core are not the same thing: an app labeled Clash may actually run mihomo, while an older guide that says Clash may refer to Premium. If you see claims that an “old version” supported TUN, check which core the guide used before assuming its config will work unchanged.

In a desktop client, check the About page or core manager for the core name and version. Menus vary by client, so check the startup logs if you can’t find it. To run mihomo directly, use mihomo -v to identify the exact patch release in a series such as v1.19.x. The client’s own version number is not a substitute.

Original open-source Clash vs. Clash Premium vs. mihomo
Feature Original open-source Clash Clash Premium mihomo
Common proxies Such as Shadowsocks, VMess, Trojan, and SOCKS5 Runs common proxies in older configs Supports many legacy proxies, plus VLESS, Hysteria2, TUIC, and more
Rule files Rules can be listed directly under rules; Premium-style rule sets are not supported Supports rule-providers and RULE-SET Supports rule sets, plus the GEOSITE rule type and mrs rule-set format
Core-level TUN Not available in the original open-source core Available; check the requirements for your version and platform Available; check routing, DNS, and permissions for your system

Protocol compatibility: check the proxy types in your subscription

A subscription is a way to distribute config, not a proxy protocol. If it refreshes successfully, the client received a response; whether it can import that response depends on its format and the type of each proxy under proxies. First confirm that the subscription returns Clash YAML compatible with your target core—not a list of proxy links or config for another client. When troubleshooting, record only the proxy types and error fields. Don’t share the subscription URL, passwords, or UUIDs.

  • Migrate legacy proxies: Start with a known-working Shadowsocks, VMess, or Trojan proxy as a baseline. Keep its existing protocol parameters; don’t change the port or transport just because you switched cores.
  • Add a VLESS proxy: For a proxy with REALITY parameters, use the matching type: vless and related settings. You can’t make reality-opts compatible by changing type to vmess. The flow must also match the server config—don’t copy it from another proxy.
  • Test Hysteria2 and TUIC: Both use UDP-based QUIC. If an older TCP proxy works but a new one times out during the handshake, check authentication and the server, and make sure your current network can send UDP to the destination. Testing TCP port connectivity alone won’t tell you whether QUIC works.

Migrate rules: distinguish RULE-SET, GEOSITE, and GEOIP

Keep the original rule order to start. DOMAIN matches an exact domain, while DOMAIN-SUFFIX matches a domain suffix; these commonly used rules usually don’t need changes during an upgrade. Rules are evaluated from top to bottom: put specific rules before broad ones and leave MATCH for last. A fallback rule placed too early can make every rule after it ineffective, even if the config passes validation.

Migrate rule sets from Premium

rule-providers defines where a rule set comes from and how it behaves; RULE-SET under rules determines which policy to use when it matches. During migration, check that the names match, relative paths resolve from the new core’s working directory, and the contents match the specified behavior. Common behaviors are domain, ipcidr, and classical. A classical file can contain typed rules such as DOMAIN-SUFFIX,example.org; the rule entry itself doesn’t specify an outbound policy.

Here’s an example config snippet for a local YAML rule set. The rules/local.yaml file should contain a payload: list, which can include an entry such as DOMAIN-SUFFIX,example.org. When merging the snippet into an existing config, keep your original fallback policy rather than copying the example’s MATCH,DIRECT. To switch to format: mrs, use the corresponding binary rule file. mihomo’s mrs format supports domain and ipcidr; renaming an existing classical file’s extension won’t work.

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

Check the data before adding GEOSITE

GEOSITE,cn,DIRECT matches domains in the cn category in the data file; GEOIP,CN,DIRECT matches based on the destination IP’s geographic classification. The former doesn’t classify a domain by the server’s IP, and the latter doesn’t replace domain rules. Before enabling GEOSITE, confirm the core can load geosite.dat and that the data includes the category you need. If a category is missing, check the data source and category name first—don’t try to hide a loading error by changing rule order.

Config fields: what to keep and what to recheck

Fields to check first after switching cores
Field What to do
mixed-port For example, keep 7890 for local HTTP and SOCKS5 proxies. Stop the old core before testing to prevent two processes from competing for the same port.
mode、proxy-groups Keep mode: rule and your policy group names. If you rename a group, update every rule that references it and check that the selected group matches your pre-migration setup.
external-controller、secret Check the controller address and any key saved by the client—for example, the controller may listen on 127.0.0.1:9090. This is the management API, not the proxy port used by apps.
dns Check enhanced-mode, nameserver, and any existing fake-ip-filter. Preserve the existing DNS setup for local network domains, and don’t change the upstream server and DNS mode at the same time.
proxy-providers、rule-providers Check proxy sources and rule sources separately. After changing the working directory, old caches, relative paths, and local rule files won’t move automatically.

If your client supports overrides or config merging, check the config the core actually loads—not just the raw subscription. The client may set the proxy port, DNS, or TUN separately, so the same subscription can work in a standalone core test but behave differently in the client. For settings overwritten on each subscription refresh, use the client’s supported persistent override feature.

Migrate TUN: test routing and DNS separately

System proxy settings rely on apps opting in; TUN uses a virtual network interface to receive traffic routed to it. If you’ve only used the system proxy, you don’t need to enable TUN just to switch cores. If you used Premium TUN, don’t copy its old permissions, routing, and DNS settings without checking them.

Common options for mihomo’s tun.stack include system, gvisor, and mixed. These select the network stack, not the routing policy. auto-route configures routes automatically, while dns-hijack sends matching DNS requests to the core—for example, any:53 targets matching requests on port 53. It doesn’t mean every encrypted DNS request from every app is intercepted. A config that parses successfully doesn’t prove the network interface was created or routes were added.

  1. Establish a baseline: Turn off TUN first. Use a known-working proxy to access a reachable site through the explicit local proxy at 7890, then check the connection log for the matched policy group and outbound.
  2. Verify traffic capture: Enable service mode or grant the required system permissions as directed by the client, then turn on TUN. During testing, disable the client’s system proxy and check whether requests from the same app still appear in mihomo’s connection log.
  3. Isolate DNS issues: If only some domains fail, check DNS responses and matching rules first. If the whole device loses connectivity or even local network access stops working, turn off TUN to restore connectivity, then check the default route, local network routes, and whether another VPN is also taking over network traffic.

Switch in stages: validate the config, then test real connections

Back up the old config and working directory. Note the current core, listening ports, selected policy groups, and TUN status. Put the new config and any required local rule files in a separate test directory. If mihomo is installed separately, you can validate the default-named config.yaml in that directory:

mihomo -v
mihomo -t -d .

Passing the test only confirms that the core can load this config; it doesn’t prove that a proxy is online or that the system proxy or TUN is working. For the actual switch, stop the old core before starting the new one. Once you’ve confirmed the listening port, use the command below to test the local HTTP proxy path. Make sure 7890 matches the actual mixed-port.

curl -I --max-time 10 --proxy http://127.0.0.1:7890 https://example.com/

Once you get a response, check the core logs for the request’s matched rule and outbound. A response alone doesn’t prove the request used the intended proxy; it may have matched DIRECT. If the command can’t connect to the local port, check whether the core is running and listening on the right port. If the local proxy receives the request but the destination connection fails, check the outbound proxy and DNS. After restoring your existing setup, enable the new protocol, GEOSITE, or TUN one at a time. To roll back, restore the matching core and config together; otherwise, the old core may fail again when it reads the new subscription.

Download Clash