mihomo core vs. Original Clash: Protocol Support and New Configuration Options

Compare mihomo (Clash Meta) with the original Clash core, including VLESS, Hysteria2, TUIC, rule providers, sniffing, and TUN stacks, plus tips for migrating legacy configs.

Baseline comparison: open-source Clash, Clash Premium, and mihomo

This article uses Dreamacro's open-source Clash v1.18.0 and mihomo v1.19.0 as reference versions. Clash Meta is the former name for mihomo. Clash Premium was a separate core branch from the original Clash era, with features such as rule providers and TUN support; its configuration capabilities should not be taken as representative of the original open-source core. Seeing tun or RULE-SET in an old config alone doesn't prove it came from mihomo.

Before troubleshooting, confirm the name and version of the core the client actually loaded. The client's About page may show only the UI version; if so, check the startup log or run mihomo -v against the mihomo binary in use. A client may let you switch cores, and being able to import a config in the UI doesn't mean the active core can parse it.

Protocol support: VLESS, Hysteria2, and TUIC

Proxy protocolOriginal open-source ClashmihomoMigration checks
Shadowsocks、VMess、TrojanSupportedSupportedCheck the encryption method, transport, and TLS settings, especially fields generated by subscription converters.
VLESSNot supportedtype: vlessCheck uuid, the transport, and TLS against the server config. For REALITY, verify reality-opts; for Vision, also check flow.
Hysteria2Not supportedtype: hysteria2Check password, sni, and the server's UDP port. You can't use an older Hysteria node just by changing its type.
TUICNot supportedtype: tuicConfirm which protocol version the server uses. For TUIC v5, check uuid and password, and make sure UDP is reachable.

If the log reports that vless isn't supported while loading proxies, check the core first rather than re-entering the UUID. Conversely, if the config loads but Hysteria2 or TUIC handshakes time out, check the server address and port, as well as UDP connectivity on the current network. Seeing a node in the list only means the list was read; a basic TCP connectivity test can't verify a QUIC handshake.

If your subscription offers multiple formats, choose one explicitly marked as compatible with mihomo or Clash Meta. Renaming a subscription from “Clash” to “Meta” won't restore flow or reality-opts lost during conversion. After migrating, select a node manually and test it before restoring auto-select groups, so automatic switching doesn't mask an issue with a specific node.

Rule providers: rule-providers, behavior, and RULE-SET

rule-providers defines where rule data comes from; RULE-SET in rules adds a rule set to the matching chain. These have a different role from proxy-providers: rule providers supply match conditions, while proxy providers supply nodes. You can preserve this structure when migrating an older Premium config, but check the actual rule file format and the proxy group name referenced by each rule.

Local rule sets: check loading and matching first

You can add the two snippets below to a mihomo test config. If the config already has a top-level section with the same name, merge the entries into it instead of adding a second rules: section. Relative paths are resolved from the core's working directory, so first check which working directory the client passes to the core, then place rules/private-services.yaml there.

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

The rule file itself looks like this. The example uses the reserved domain example.test; for a real test, replace it with a test domain you can access and check the connection log to see whether it shows private-services or the fallback rule. Both rules use the DIRECT action, so a successful connection alone won't tell you which rule matched.

payload:
  - DOMAIN-SUFFIX,example.test
  • classical accepts typed rules such as DOMAIN-SUFFIX,example.test. Entries in the file don't include a policy name; the outer RULE-SET specifies the policy.
  • Use domain for a set of domains and ipcidr for a set of IP ranges. When you change behavior, update the file entries too; changing only the declaration isn't enough. When migrating mihomo rule sets in mrs format, confirm their behavior is domain or ipcidr; don't read them as classical.
  • For remote files, use type: http with a url. For example, interval: 86400 updates the rule set every 24 hours; it doesn't change how often the client's main subscription updates.

Rules are matched in order. Place the new RULE-SET before MATCH. If an earlier rule already covers the same domain, confirm which rule should take precedence.

Domain sniffing: how sniffer and DNS differ

Some connections reach the core with only a destination IP, leaving domain rules without a name to match. mihomo's sniffer can extract domains from connections it recognizes, such as SNI visible in a TLS handshake or the Host header in a plain HTTP request. It doesn't replace DNS resolution or decrypt HTTPS content. Enabling sniffing may not change the match if the handshake exposes no domain, the connection falls outside the configured port range, or the app's traffic doesn't pass through the core.

A minimal check: observe the destination domain without changing it

sniffer:
  enable: true
  force-dns-mapping: false
  parse-pure-ip: true
  override-destination: false
  sniff:
    HTTP:
      ports: [80, 8080-8880]
    TLS:
      ports: [443]
    QUIC:
      ports: [443]

parse-pure-ip: true lets mihomo try sniffing connections that contain only an IP, while override-destination: false prevents the sniffed result from rewriting the original connection destination. To troubleshoot, keep the app and destination the same, then compare connection records with sniffing off and on. Fake-IP is a DNS response and mapping mechanism; extracting a domain from a handshake is a separate process. Don't change DNS mode and sniffing settings at the same time, or it will be hard to tell which change affected rule matching.

TUN stacks: system, gvisor, and mixed

System proxy settings usually affect only apps that honor them. TUN uses a virtual network interface and routes to capture system traffic, which is useful for apps that ignore system proxy settings. When troubleshooting, separate two questions: is traffic entering TUN, and where are the rules sending it once it gets there? For the first, check permissions, the virtual interface, and routes; for the second, check connection records and DNS.

  • system: Uses the system network stack. A good baseline for initial testing; first confirm that the current platform and client can create a TUN interface.
  • gvisor: Uses a user-space network stack. Compare it with system using the same test app, node, and DNS settings to more easily identify stack-related issues.
  • mixed: Uses the system stack for TCP and the gVisor stack for UDP. If regular web browsing works but real-time voice doesn't, test the UDP path separately. This mixed setting is unrelated to the proxy listener mixed-port.

First turn off any other VPNs that are taking over the default route, then run a test using the client's TUN toggle. To establish a baseline from the config, use the example below. auto-route: true lets the core set up routes to capture traffic, but the client still needs the required permissions. If dns-hijack is enabled, distinguish intercepted plain DNS queries from DoH requests made directly by apps; results on port 53 don't tell you whether encrypted DNS is being captured.

tun:
  enable: true
  stack: system
  auto-route: true
  auto-detect-interface: true

Migrating an old config: test explicit proxying before capturing system traffic

  1. Copy the active config. Keep the original config and core as rollback options. In the client, distinguish the original subscription file from the merged, effective config, and inspect the latter. Keep configs containing credentials local; don't paste them into public logs.
  2. Test the config. Run the command below against a copy in mihomo's actual working directory. Fix the first config error reported in the log, then check for subsequent errors. Common issues include an unsupported protocol type, a rule referencing an undeclared proxy group, or a missing rule file at a relative path.
  3. Verify the local listener and nodes. Leave TUN disabled for now. If the test config uses mixed-port: 7890, run the explicit proxy test below while the client's connection log is open. First confirm the request reaches the local listener, then check the matching rule and outbound node. If the explicit proxy works but the system proxy doesn't, check whether the host and port in system settings still point to the old core.
  4. Re-enable extra features one at a time. Restore rule providers first and check which rules match, then enable sniffing and verify the domain, and finally switch on TUN. Change only one setting at a time, checking regular web pages, local network resources, and apps that need UDP. If the old core is still running, both cores can't listen on port 7890 at the same time.
mihomo -v
mihomo -t -f config.yaml
curl -I --proxy http://127.0.0.1:7890 https://example.com/

A successful config test only means the core can process the config; it doesn't guarantee remote rules will update on schedule or that every node can complete a handshake. The curl example checks a single request through a local HTTP proxy; it doesn't replace UDP or TUN testing. To roll back, turn off TUN in the new core, restore the old config and core, then confirm the system proxy points to the original listener. Don't leave both setups capturing traffic at once.

Download Clash