If you've added a server in Home and want rule-based routing for everyday use, first make sure the right configuration is enabled, then set Global Routing to Config. If a specific destination isn't working, temporarily switch to Proxy or Direct and send a fresh request to the same destination in each mode. This guide shows how to switch modes, check which rules actually apply, and understand what test results can—and can't—tell you about the cause.
Global Routing: Choose How Traffic Is Handled from Home
On your iPhone or iPad, open Shadowrocket and go to Home → Global Routing. Select a mode, then return to Home and check the option shown on that row. The routing mode determines how Shadowrocket handles intercepted traffic; the connection toggle controls whether the connection is enabled. Selecting a mode doesn't turn on the connection or choose a server for you. To test Proxy, first make sure Home has the server you intend to test selected, then check the connection toggle.
This guide compares Config, Proxy, and Direct. If Scene also appears in the list, it switches handling modes based on configured scenes. For the comparisons below, select the mode you want to test directly; don't treat a Scene result as the result of a fixed mode.
How Each Mode Handles Traffic
Config
RecommendedUses the rules in the currently enabled configuration to choose a policy. A match can result in PROXY, DIRECT, or REJECT, among others. If no earlier rule matches, check the configuration's FINAL rule—don't assume all other requests go direct.
Best for: Everyday rule-based routing after verifying the active configuration.
Proxy
Sends intercepted traffic through the currently selected server, without choosing an outbound route rule by rule as Config does. Use it to test the proxy path, but not to confirm that a particular rule matched.
Best for: A quick check of whether the selected server can reach a specific destination.
Direct
Sends intercepted traffic directly, bypassing the selected proxy server. Direct is a routing choice, not a way to turn off the Home connection toggle or remove a configuration or server.
Best for: A quick check of whether a destination is reachable directly on your current network.
Config Routing: Check the First Matching Rule, Then FINAL
Config is the everyday choice because it preserves different handling policies for different destinations instead of sending every request along the same path. To troubleshoot, tap Config in the bottom navigation, make sure you're viewing the currently enabled file, then inspect its [Rule] section. Don't look only for a rule that seems relevant: start at the top and find the first matching entry, since an earlier rule may determine the outcome.
Here's a minimal example for reading rules, not a complete configuration. Assuming no other rules apply, example.com and its subdomains match the first rule and use PROXY. example.org doesn't match that suffix, so it falls through to FINAL,DIRECT. These example domains illustrate the expected matches; whether a webpage loads doesn't prove that the rule syntax is correct.
[Rule]
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
Proxy in the interface and PROXY in a rule aren't the same thing: the former is a Global Routing mode; the latter is a policy applied when a Config rule matches. The same distinction applies to Direct and DIRECT. If your configuration uses FINAL,PROXY as its fallback, requests that match no earlier rule will also use the proxy. That doesn't mean Global Routing switched to Proxy.
Temporary Mode Switch: Compare Proxy and Direct for the Same Destination
If only one destination fails in Config, leave the current configuration as is for now; don't rush to add a rule. Note the failing domain, your current network, and the server selected in Home. Keep all three unchanged throughout the comparison if possible. After each switch, send a fresh request to the same address. Don't use an already-open page or content that's still playing to judge whether the new mode took effect.
How to Test Both Paths
Same device, same network—change only Global Routing
Proxy: Test the Selected Server's Path
- Go to Home → Global Routing → Proxy, then return to Home and verify the mode and selected server.
- Retry the original destination. If Proxy works but Config doesn't, first check whether Config sends that request through a different policy. Also verify that the expected domain is the one matching.
Direct: Test the Current Network's Direct Path
- Go to Home → Global Routing → Direct. Keep the same Wi-Fi or cellular network and test the same destination again.
- If Direct works but Proxy doesn't, first check the selected server and its proxy path to that destination. Don't add a direct-routing rule based on this result alone.
When you're done comparing, switch back to Config and test the original destination again. Temporary mode results help narrow down the issue; they don't replace your everyday routing settings.
If both modes fail, that alone doesn't mean a rule is wrong. Check the destination address, confirm your current network is working, and identify the failure: DNS resolution, a connection timeout, or an error returned by the page. If both modes work, that doesn't guarantee Config will work too: the configuration may match REJECT or select a different policy than the one used in the comparison. Test again in Config to confirm whether the issue remains.
Still Having Trouble After Switching Modes? Common Questions
First, distinguish between a server test, access to a destination, and a rule match. Each checks something different; one result can't stand in for another.
Why does the page still fail to load when Connectivity Test returns a result?
In Home, check which server Connectivity Test ran against, then confirm whether that same server is selected now. A test result only shows that the server completed the test request at that time; it doesn't mean your webpage used the same path. Retry the address that actually failed in both Config and Proxy, then compare the results.
Why didn't changing a rule change the result?
Return to Home and make sure Global Routing is set to Config, then tap Config in the bottom navigation and confirm you're editing the currently enabled file. Next, check whether an earlier rule matches the destination. Return to the browser and send a fresh request; don't treat already-loaded content as the result of your change.
Why is the Home connection toggle still on after switching to Direct?
These are separate settings: Direct changes where intercepted traffic goes; it doesn't turn off the connection. To test a direct route, just switch modes. To disable Shadowrocket's connection, use the Home connection toggle—Direct isn't an off switch.
How can I confirm my everyday settings are restored after switching back to Config?
Return to Home and confirm Global Routing shows Config, then open Config and check which file is enabled. If you changed servers during testing, reselect the one you normally use in Home. Finally, send fresh requests to two known destinations: one expected to match a proxy policy and one expected to go direct. Reachability only tells you whether a destination can be reached; check the actual rules to confirm the expected route.