Core evolution: Premium is not an earlier version of Meta
The original Clash was an early open-source core that established many config structures still in use, including proxies, proxy-groups, and rules. Clash Premium was a separately released enhanced build of the original project, adding features such as script rules and TUN. It shared the original's foundations, but fields introduced by the enhanced build are not necessarily supported by every Clash core.
Clash Meta developed as an independent fork of Clash and was later renamed mihomo. Older guides usually use “Meta core” to refer to this fork, but older Meta releases and current mihomo do not support exactly the same fields. When migrating, check the version of the target binary rather than inferring its capabilities from the name shown in a tutorial screenshot.
Config compatibility: proxy protocols, routing rules, and data sources
A config being readable as YAML only confirms that its syntax is valid. Compatibility also depends on whether proxies initialize, rule data loads, and traffic takes the intended outbound route. Before migrating, review the fields below and decide whether to keep each one as is or rewrite it.
| Config item | Common differences | What to check during migration |
|---|---|---|
| Proxy protocols | The basic structure of common Shadowsocks and VMess proxies can often be reused. Older cores may not support VLESS, Hysteria2, or TUIC in the same way. | Check type, the transport layer, and TLS settings together. For example, mihomo uses type: hysteria2 for Hysteria2; changing only the protocol name on an old Hysteria proxy is not enough. |
| Basic rules | DOMAIN-SUFFIX, IP-CIDR, and MATCH can often be reused. Rules are evaluated in order, and the first match determines the outbound route. | Put specific domain rules before broader rules that could match the same traffic, and place MATCH last. Policy names must exactly match their definitions. |
| Rule providers and geodata | RULE-SET must reference a name defined in rule-providers. GEOSITE uses a separate geodata source; it is not a rule set with a different prefix. | Check the provider file format and behavior. Use domain for domain lists, ipcidr for IP ranges, and classical for entries that include rule types. For GEOSITE, also verify that the data loaded and the category exists. |
| Premium scripts | Do not assume that script, mode: script, or script references in an old config are supported as general-purpose rule syntax in mihomo. | List the conditions each script checks and the outbound route it selects, then rewrite what you can as regular rules. Logic that depends on script state needs to be redesigned; changing only the mode name will not work. |
A subscription URL does not tell you what format it returns. It may provide a complete Clash YAML config or just a list of proxy links. Import a complete config through the client's config management interface. Sources used by proxy-providers must follow a provider format supported by the core. proxy-providers supplies proxies; rule-providers supplies match conditions. They are not interchangeable. After updating a subscription, confirm that the client has switched to the new config and check whether overrides changed the port or rules. Remove subscription tokens and proxy credentials before sharing logs or config snippets.
DNS and TUN: a config may start successfully, but traffic coverage can still differ
Test routing through a local proxy port first
mixed-port accepts both HTTP and SOCKS proxy connections on a single port. For testing, you can set it to 7890, turn off TUN, and point one test app at 127.0.0.1:7890. If the logs report that the port is already in use, stop the old core using it or change the port in both the new config and the test app. The system proxy affects only apps that honor system proxy settings; it does not prove that all device traffic is being routed through the proxy.
Test DNS and the virtual network interface separately
- DNS mode:
dns.enhanced-mode: fake-ipassigns mapped addresses to eligible domains. Seeing a mapped address does not mean the upstream returned an incorrect result. If a local domain needs its real address, check whether it should be added tofake-ip-filter, then retry that domain. You do not need to switch every domain to another mode first. - IP rules: For example,
IP-CIDR,192.168.0.0/16,DIRECT,no-resolvedoes not actively resolve a domain just to match this rule. If the traffic already has a destination IP, the subnet can still match. But if you are testing a domain that has not been resolved yet, do not expect this rule to resolve it before matching. - TUN: TUN uses a virtual network interface to handle traffic routed to it by the system. After enabling
tun.enable, check the startup log to confirm the interface was created, routes were installed as expected, and DNS hijacking covers the intended traffic. Do not copy an old Premium TUN block wholesale into mihomo. Checkstack,auto-route, anddns-hijackagainst your platform and core version.
If the system proxy works but LAN access breaks only after enabling TUN, check routing and DNS first. Do not change the proxy, rules, and subscription all at once. Change one setting at a time, then retest the same domain and LAN destination to pinpoint the layer causing the issue.
Migrate an old config: test a copy, verify connections, and keep a rollback path
Back up the old config and any locally referenced rule files, then create a separate test config. Do not overwrite files managed by a subscription. This minimal config listens only on the local proxy port and uses DIRECT and REJECT to test two routes without relying on remote proxies or rule sets.
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
rules:
- DOMAIN,example.org,REJECT
- MATCH,DIRECT
- Run a static check first. Save the example as
migration-test.yamland runmihomo -t -f ./migration-test.yaml. If you use a GUI client, also confirm that it actually loads the test copy. The config passed to the core after client overrides may differ from the original file. - Verify rule order. Start the test config, run
curl -x http://127.0.0.1:7890 https://example.org/, then requesthttps://example.com/through the same proxy. In the connection history or logs, confirm that the first request matches the domain rule and is rejected, while the second matchesMATCHand goes direct. Direct access also depends on local DNS and network conditions, so a page loading or failing is not enough to confirm which rule matched. - Add the original config back in stages. Start with one proxy and one
selectpolicy group, then add the full rules, remote providers, and DNS settings, and test TUN last. Repeat the checks after each step. If a remote rule set fails to download, check that provider's load log first; a later request matchingMATCHdoes not mean the rule set loaded. - Keep a rollback option. If connectivity fails broadly, stop the test core, turn off the system proxy or TUN enabled for testing, and switch back to the old client and config. Retest the same destinations after restoring them. This helps distinguish an existing network problem from an issue introduced by the migration.
When choosing a client, if basic rules and your existing proxies meet your needs, use a core supported by the client you plan to run. If your subscription explicitly provides VLESS, Hysteria2, or TUIC, or your config depends on extended rules such as GEOSITE, choose a client with a compatible mihomo version. If an older config relies on Premium scripts, migrate its routing logic before switching your everyday core.