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
RecommendedMatches 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.
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
- For a request to
www.example.com, the firstDOMAIN-SUFFIXrule specifiesDIRECT. Even though the last rule isFINAL,PROXY, this request won’t be sent through a proxy. - If the connection targets the IP address
192.0.2.10, the second rule specifiesREJECT. Here,no-resolvemeans the rule won’t trigger an extra domain lookup for matching purposes; it does not disable DNS. - When domain rules overlap, put more specific exceptions before broader rules. For example, to send
api.example.comthrough a proxy, placeDOMAIN,api.example.com,PROXYbeforeDOMAIN-SUFFIX,example.com,DIRECT. ChangingFINALalone won’t override a rule that has already matched.
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.
Keep the server fixed
Open the
Home → SERVERlist and select a server you already have. Make sure the dot indicator isn’t beside another entry. Check which file is in use underConfig, and don’t change it during the test.Record the baseline
Under
Home → Global Routing, selectConfig. Make sure the connection switch at the top ofHomeis 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.”Test the proxy
Under
Home → Global Routing, selectProxy. 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.Test Direct
Under
Home → Global Routing, selectDirect. 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.Restore rule-based routing
When the test is complete, switch
Home → Global Routingback toConfig. If the request fails only inConfig, 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 destination | What to check next |
|---|---|
Proxy works, but Config fails | Check 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 fails | First 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 fail | Check 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 work | A 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.