What the core does: rules, groups and DNS
The client owns the interface and the lifecycle. What actually decides where a connection goes is Mihomo. Four ideas cover most “why did this not go through the proxy” questions.
01/ Core
Mihomo is a rule-driven proxy dispatcher
Mihomo grew out of Clash as a community fork (originally Clash.Meta). It speaks Shadowsocks, VMess, VLESS, Trojan, Hysteria2, TUIC and more, and decides the destination of every connection by rule. It has no interface of its own — Bettbox is its shell.
That means the core version decides which protocols and rule syntax you get. Bettbox follows the Mihomo mainline, so when a node protocol is unsupported, check the core version rather than poking client settings.
Your provider supplies nodes; the core connects and dispatches; the client translates the switches you flip into configuration for the core. With no subscription yet, the providers page lists third-party services.
02/ Configuration
The YAML coming back from a subscription has four parts
Proxies: protocol, address, port, cipher and credentials for each node. Proxy groups: bundles of nodes you can switch between, such as Auto, Select or Streaming.
Rules: evaluated top to bottom, first match wins, deciding whether a connection goes to a group, direct, or is rejected. General settings: DNS, TUN, mixed port, log level.
All four are editable in the interface without going back to the YAML. Changes are written back to the profile, and when the subscription updates you choose whether to overwrite them.
- proxies: the nodes themselves, from your provider
- proxy-groups: switchable sets plus selection criteria
- rules: top-down, first match stops evaluation
- DNS / TUN / port: how connections are captured
03/ Routing
Rules are read top-down; the first match wins
Rules are evaluated in written order, not “most specific first”. Specific domains belong at the top and the catch-all at the bottom — that is the basic discipline. A GEOIP,CN,DIRECT line at the top makes every rule below it irrelevant.
A matched rule usually points at a proxy group rather than a single node. Inside the group you can still choose: Select pins one node, Auto picks the lowest latency, Fallback moves to a backup when the primary is down.
When routing misbehaves, the useful move is not editing rules but opening the inspector to see which rule this connection actually matched. That line usually ends the investigation.
- Order matters: specific rules first, catch-all last
- Rules point at groups, groups point at nodes
- Troubleshoot by finding the matched rule, then edit
04/ DNS
Why fake-ip makes routing faster
With fake-ip, the core answers a proxied domain immediately with a fake address (usually in 198.18.0.0/16). The app believes resolution finished; the core holds the connection, matches rules by domain, and resolves for real. Nothing waits for a real DNS answer, and local DNS poisoning cannot skew the decision.
The cost: if an app caches that answer forever or connects to a hard-coded IP, fake-ip cannot help. When only one app bypasses the proxy, check whether it dials an IP directly.
You can switch to redir-host to return real answers instead. Slightly slower, but it plays better with some corporate networks and LAN devices.
05/ Glossary
Six terms that make subscription comments readable
- Mihomo (Clash.Meta)
- The rule-driven proxy core that provides Bettbox’s dispatch and protocol support.
- Subscription
- A URL returning Clash / Mihomo YAML: nodes, proxy groups and rules.
- Rules
- Ordered match conditions that decide where a connection goes.
- Proxy group
- A set of nodes you switch manually or let pick by latency and availability.
- TUN
- Virtual interface mode that captures all system IP traffic, including apps that ignore proxies.
- fake-ip
- A DNS mode returning placeholder addresses for speed and immunity to local DNS poisoning.
Concepts settled — go configure
Importing a subscription, choosing a mode and enabling TUN is covered in quick start. If a rule is not taking effect, the FAQ lists the order to check things in.