Clash Proxy Modes Explained: Rule, Global, and Direct | When to Switch

Compare how Rule, Global, and Direct modes route traffic, when to use each, and how to verify a mode change.

How the three modes route traffic through the core

Clash Verge Rev is the desktop client; the Mihomo core handles routing decisions. System proxy settings, TUN, and proxy addresses configured manually in apps are separate ways for traffic to enter. Rule, Global, and Direct determine how connections that reach the core are forwarded. When troubleshooting, first confirm that the request reaches the core, then check whether it uses the expected route.

Mode How the core selects an outbound Best for
Rule rule Checks rules from top to bottom and uses the outbound specified by the first matching rule. Everyday split routing, such as sending local services direct and routing selected domains through a proxy group.
Global global Ignores rules and uses the node or policy currently selected under GLOBAL. Testing a fixed outbound to see whether a failure is related to rules or proxy group selection.
Direct direct Connects to the destination directly from the core, without a remote proxy node. Checking whether a destination is reachable directly while keeping the same traffic entry method.

Rule mode: Check rule order and proxy group members

In Rule mode, check two things: first, which rule matches the domain or IP; then, which outbound the policy selected by that rule actually uses. A match to PROXY only means the connection entered a group named PROXY. If that group allows DIRECT and it is currently selected, the request still goes direct. A group name does not tell you the outbound type—check the proxy chain in the connection details.

See rule priority in action

This is a rule snippet, not a complete subscription you can import on its own. To use it in a local test configuration, first make sure a proxy group named PROXY is defined, and keep a copy of the original configuration so you can restore it.

rules:
  - DOMAIN,example.com,DIRECT
  - DOMAIN-SUFFIX,example.com,PROXY
  - MATCH,DIRECT
  • example.com matches the exact-domain rule first and uses DIRECT. The suffix rule below would also match this domain, but it does not override an earlier match.
  • www.example.com does not match the first rule, so it matches the second. The PROXY group determines the outbound.
  • example.org matches neither of the first two rules, so it falls through to MATCH. Put this catch-all rule after any specific rules you want to take effect.

This example assumes the core receives the destination domain with the request. If the Connections page shows only a destination IP, check whether the app connected by IP and whether the current traffic entry method preserves domain information. Rules match connection metadata: DOMAIN cannot match URL paths. If an app redirects to another domain, the new connection is matched separately.

Switching modes: everyday split routing and two troubleshooting comparisons

Use Rule mode day to day, and confirm which configuration is active

In Clash Verge Rev 2.x, first check the selected configuration under Subscriptions, then select Rule in the mode switcher on the Proxies page. If a single site uses the wrong outbound, inspect the rule match and proxy chain for that connection. If the expected rule matched, check the group's selection. If it fell through to a catch-all rule, check the domain, rule order, and active configuration. Don't leave all connections in Global mode just to troubleshoot routing for one domain.

Rule fails, Global works: compare the actual outbounds

On the Proxies page, switch to Global and select a specific node under GLOBAL so an automatic group does not switch nodes during the comparison. Use the same app to access the same destination, keeping the traffic entry method unchanged and changing only the mode and its corresponding outbound. If Global works but Rule fails, switch back to Rule and check whether the original connection matched DIRECT or a reject policy, or selected a different node. Success in Global shows that the tested route is reachable; it does not mean every node works.

Direct works, proxy fails: narrow down the cause

Keep the system proxy or TUN settings unchanged, switch to Direct, and create a new connection. If Direct works but the selected node fails, first test whether that node can reach the same destination, then check the node selection and relevant logs. The latency shown on the Proxies page applies only to the test address configured for that node. A successful test does not mean the node can reach the destination site.

To compare against the system's native network path, run a separate test: turn off the system proxy and TUN, remove any proxy configured directly in the test app, and send the request again. This is a different test from selecting Direct inside Clash. If the results differ, include the traffic entry method and DNS in your troubleshooting.

Verify the mode change with a new connection

  1. Keep the destination and entry point fixed. Choose a known-reachable HTTPS URL and use the same one for all three tests. Browsers and command-line tools may handle proxy settings differently. For a reproducible comparison, send the test request explicitly to the core's local mixed port.
  2. Start a new connection after each change. Refreshing a page may reuse an existing connection or load it from cache. Run the command again for each test. In a browser, close the old connection on the Connections page before revisiting the site. Don't use an existing long-lived connection to judge the new mode.
  3. Confirm the request appears, then check its proxy chain. In Rule mode, check the matching rule and final outbound. In Global mode, confirm the proxy chain uses the node you just selected. In Direct mode, confirm the outbound is DIRECT. Short-lived connections may end before you can open their details, so cross-check the destination and request time in Logs.
  4. Restore your everyday mode after testing. Switch back to Rule and test one destination expected to go direct and another expected to use a proxy group. Testing only one cannot tell you whether the configuration is routing correctly or whether all requests happened to use the same outbound.

Run a separate test through the mixed port

If Settings shows the mixed port as 7897, run the command below. Use the actual port if the app shows a different one. In Windows PowerShell, use curl.exe to avoid the same-name alias. For an HTTPS destination, the HTTP proxy establishes a CONNECT tunnel. This command tests the explicit proxy entry point; it does not test whether the system proxy or TUN captures traffic from other apps.

curl --proxy http://127.0.0.1:7897 --noproxy "" --connect-timeout 5 --max-time 15 --head https://example.com/

The command sets a 5-second connection timeout and a 15-second total timeout. If you get a connection error for 127.0.0.1:7897, first check that the core is running and the mixed port is listening, then check the remote node. If the output includes 200 Connection established, that only confirms the proxy entry point established a tunnel. Check that an HTTPS response from the destination follows, and verify the actual outbound in the core's logs. The response status code alone does not tell you whether the request went direct or through a node.

Download Clash