Shadowrocket Global Routing: How to Use Config, Proxy, and Direct

Learn how Config, Proxy, and Direct route traffic in Shadowrocket, which mode to use by default, and when to switch temporarily.

At a glance

Use Config for everyday use when you have proxy details and have confirmed that the rules behave as expected. If a site won’t open in Config, switch to Proxy temporarily for comparison. To check whether the same site is reachable without a proxy on your current network, use Direct. This guide uses the iPhone and iPad interface to show how to switch modes, interpret the results, and restore your settings afterward.

Config, Proxy, and Direct: What’s the Difference?

Global Routing determines how connections handled by Shadowrocket are routed; the connection toggle on Home determines whether a connection is active. Changing the mode without starting the connection won’t test the new routing behavior. Switching to Direct doesn’t turn the connection off either: it changes the selected route, not the connection toggle.

Config

Recommended

Routes traffic according to the rules in the active configuration. When a rule matches, its assigned policy is used. If no earlier rule matches, a FINAL rule applies its assigned policy. Choosing Config doesn’t mean all remaining traffic will go direct.

Best for: everyday use with verified rules and a fallback policy, when traffic needs to be routed by destination

Proxy

Uses the currently selected proxy for connections handled by Shadowrocket, instead of choosing a policy for each destination according to Config rules. Destinations assigned DIRECT by a rule may also go through the proxy after switching.

Best for: briefly checking whether the selected proxy can reach a destination, while keeping the network and test target unchanged

Direct

Routes connections handled by Shadowrocket directly, without using the selected proxy. The result shows how the destination behaves over a direct connection on your current network. It doesn’t, by itself, tell you how the address was resolved or confirm that the connection toggle is off.

Best for: checking whether a destination is reachable directly or troubleshooting services on your local network

If Scene also appears under Global Routing, it selects routing behavior based on configured scene conditions; it isn’t a fourth fixed route. When troubleshooting, choose Config, Proxy, or Direct explicitly. This avoids network changes triggering a scene switch and making results difficult to compare.

Switch modes on Home and compare results

Test with an address you can open repeatedly, such as https://example.com/. If the issue occurs on a specific site, retest using the same address. Note whether you’re on Wi-Fi or cellular, and don’t change networks, proxies, or DNS while switching modes.

  1. Note the current settings

    On Home, check the selected proxy; in Config, check which configuration is active. Note both: Proxy uses the selected proxy, while Config rules may direct traffic to another policy or policy group.

  2. Test Config first

    Go to Home → Global Routing → Config, then return to Home and confirm that the connection is on. Open the test address and note whether it loads, fails to resolve, times out, or returns an HTTP error.

  3. Then test Proxy

    Go to Home → Global Routing → Proxy and keep the selected proxy unchanged. Close the original test tab, then try the same address again. If the app keeps the connection open, quit and reopen it first. Don’t count content already on screen as a successful new request.

  4. Compare with Direct

    Go to Home → Global Routing → Direct and retry on the same network. If the test address is only expected to work through a proxy, don’t use it for a Direct comparison; choose an address that allows direct access instead.

  5. Restore settings and retest

    Return to Home → Global Routing → Config, or restore the mode you used before testing. Check that the selected proxy and active configuration haven’t changed unintentionally. Then open one destination that should go direct and another that should use a proxy to confirm everyday routing is back to normal.

Why isn’t Config routing as expected?

First check which configuration is active, not just the one you recently edited. Then look down from [Rule] for the first rule that matches the actual request destination. The examples below illustrate rule order; the domain names are placeholders, and you don’t need to import a full configuration to run the test.

[Rule]
DOMAIN,assets.example.com,PROXY
DOMAIN-SUFFIX,example.com,DIRECT
FINAL,PROXY

For a request to assets.example.com, the first, exact-match rule applies and the connection uses PROXY. For a request to www.example.com, the second, domain-suffix rule applies and the connection uses DIRECT. If you move the second rule above the first, assets.example.com will also match the suffix rule first, and the exact-match rule won’t take effect.

3
Modes compared in this guide: Config, Proxy, and Direct
3 rules
Example rules: exact domain, domain suffix, and FINAL
443
Default port used by the example HTTPS address when no port is specified

The main domain shown in the address bar may not be the source of the problem. If the page loads but images don’t, first check whether the failed request is for the page or one of its resources, then identify the hostname the resource actually uses. Fix the specific exception first. Don’t change FINAL,PROXY to FINAL,DIRECT just to fix one subdomain: changing the fallback affects every connection that doesn’t match an earlier rule.

Use comparisons to narrow down the issue

Use comparison results to narrow down what to check, not to draw a definitive conclusion. For example, receiving an HTTP 403 response is different from timing out: the former means an HTTP response was received, so check whether it came from the destination or an intermediary. For a timeout, first check resolution, the destination address, and the connection route rather than changing rule order right away.

What to check for two common results

Proxy works; Config fails
  • Return to Config and confirm the expected configuration is active, then find the first rule matching the failing hostname.
  • Check whether a broad domain-suffix rule matches first, or whether unmatched traffic falls through to an unexpected FINAL policy.
  • If a proxy policy group matches, check whether its active route is the same one used for the Proxy test.
Direct works; Proxy fails
  • If the destination should normally be reached directly, such as an admin page on the same local network, return to Config and check for a matching DIRECT rule.
  • If the destination requires a proxy, check that the selected item on Home is correct, then verify the server address, port, and protocol settings against your existing details.
  • Test another expected-to-work address through the same proxy to tell whether the problem affects one destination or the entire proxy route.

Change one setting at a time and retest the same address. Switching modes gives you a comparison; decide whether to change the configuration only after identifying the cause.

If all three modes fail, first check that the device is connected to a working network, the address is correct, and whether the issue occurs only on a particular network. To test with the connection fully off, turn it off on Home and run a separate test. In Settings → On Demand, check whether any conditions could turn the connection back on. If you changed On Demand during testing, restore it afterward. On Demand controls when connections start automatically; it doesn’t determine whether a destination goes direct or through a proxy.

Download Shadowrocket