Shadowrocket Global Routing: How to Choose Config, Proxy, or Direct

Global Routing offers three modes: Config routes traffic by rules, Proxy sends all handled traffic through a proxy, and Direct sends it straight to its destination. This guide compares how they work and explains why Config is the recommended everyday setting.

At a glance

If you’ve selected a server and enabled a configuration in Shadowrocket, Config is the recommended everyday setting. It lets the configuration decide which requests go Direct, through a proxy, or get rejected. If the same destination fails in only one mode, keep the network, server, and destination unchanged, then switch modes and try again to narrow down the cause. Remember to switch back to Config when you’re done.

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

Home → Global Routing controls how Shadowrocket handles the traffic routed through it. “All” means all traffic within this scope; it doesn’t mean every system connection is handled. The examples below use the iPhone / iPad interface. If the menu also shows Scene, that option selects routing based on a configured scene. To compare fixed modes, select the mode you want to test.

Config

Recommended

Matches traffic against the rules in the currently enabled configuration. The first matching rule determines the policy. If no earlier rule matches, FINAL specifies how the traffic is handled.

Best for: Everyday use when your configuration is verified and you need a mix of Direct, proxy, and reject rules.

Proxy

Sends all handled traffic through the selected proxy, without using Config rules to choose a route. If the proxy server is unreachable, requests that could otherwise go Direct may also fail in this mode.

Best for: Briefly checking whether the current proxy can reach the same destination.

Direct

Sends all handled traffic straight to its destination, bypassing the selected proxy. This does not turn off the connection switch at the top of Home; the connection can remain on.

Best for: Checking whether a destination is reachable directly on the same network.

How Config Chooses a Route

First, check which file is enabled on the Config page, then review its rules. The SERVER list on Home is for selecting a server; it doesn’t change the rules file. Changing servers alone won’t send a request through a proxy if that request matches DIRECT. Config is recommended for everyday use only when the configuration behaves as intended; configurations don’t all default to Direct or Proxy.

First matching rule
Rules are checked from top to bottom. Once a rule matches, later entries don’t change its policy.
2 match types
This example uses DOMAIN-SUFFIX to match domain suffixes and IP-CIDR to match IP ranges.
FINAL
Place it at the end of the rules to set a policy for traffic not matched earlier.

This snippet illustrates rule matching order; it isn’t a complete configuration. The example domains and documentation IP range are for explaining the rules, not for testing server connectivity.

[Rule]
DOMAIN-SUFFIX,example.com,DIRECT
IP-CIDR,192.0.2.0/24,REJECT,no-resolve
FINAL,PROXY

Compare the Three Modes Using the Same Destination

Test a destination you’re authorized to access and can request repeatedly. Keep the device on the same network, and use the same server and destination address, including its port. For example, if you’re testing HTTPS on its default 443 port, use the same HTTPS URL in all three modes. Don’t switch to HTTP or use an IP address instead.

  1. Keep the server fixed

    Open the Home → SERVER list and select a server you already have. Make sure the dot indicator isn’t beside another entry. Check which file is in use under Config, and don’t change it during the test.

  2. Record the baseline

    Under Home → Global Routing, select Config. Make sure the connection switch at the top of Home is on, then visit the destination. Record whether you get a normal response, a connection timeout, a certificate warning, or a server error—don’t lump every issue together as “won’t load.”

  3. Test the proxy

    Under Home → Global Routing, select Proxy. Close and reopen the app you’re using for the test, then send a new request to the same destination. Refreshing an existing page may reuse a connection or load cached content, so it won’t confirm that the route has changed.

  4. Test Direct

    Under Home → Global Routing, select Direct. Keep the switch at the top on, then test the same destination with a new connection. Don’t switch between Wi-Fi and mobile data during this step; that would change a second variable.

  5. Restore rule-based routing

    When the test is complete, switch Home → Global Routing back to Config. If the request fails only in Config, first check the earliest rule the destination may match and the policy it specifies. Then decide whether the configuration needs changing.

Narrow Down the Problem From Test Results

The comparison points to possible causes; it doesn’t prove what went wrong. In particular, success with Proxy only shows that the current test request received a response through the selected proxy. It doesn’t prove that Config uses the same route.

What happens with the same destinationWhat to check next
Proxy works, but Config failsCheck whether the active configuration first matches DIRECT or REJECT, or sends the request to a different policy group. Check FINAL only if no earlier rule matches.
Direct works, but Proxy failsFirst make sure the expected server is selected under SERVER, then use Home → Connectivity Test as an additional check. If it times out repeatedly, review the server address, port, and protocol parameters in your existing configuration.
All three modes failCheck the destination domain, port, and whether the current network is working. Then distinguish a name resolution failure from a connection timeout or a server-side rejection. If you receive HTTP 403, check the destination service’s access requirements rather than treating it as a connection timeout.
All three modes workA reachable destination doesn’t mean the traffic took the same route. To check whether rules are working, review available connection records or logs from a server you manage; don’t rely on whether the page loads alone.

Global Routing FAQs

Why does the connection still show as on after I switch to Direct?

Direct changes how handled traffic is forwarded, not the connection status. To compare with a fully disconnected state, turn off the switch at the top of Home and test again. If the connection starts automatically, check the trigger conditions under Settings → On Demand.

Why does Connectivity Test pass when a website still won’t load?

The test destination may differ from the site you’re trying to visit, and the test alone can’t tell you which route the site uses. Go to Home → Global Routing, test the same site address with both Config and Proxy, and note the exact error.

Why didn’t changing the Config file change what I can access?

First confirm that Home → Global Routing is still set to Config. Then check under Config that you edited the currently enabled file. If both are correct, see whether a broader rule earlier in the list already matches the destination. Re-establish the connection before testing again.

If Proxy opens the destination, can I leave it in this mode?

Proxy can be useful for temporary troubleshooting. If some sites need Direct routing or you rely on reject rules, switch back to Config when you’re done. If the issue affects only a specific domain, adjust that domain’s policy rather than changing how all requests are handled.

Download Shadowrocket