If you already have a provider subscription and a working configuration, use Config for everyday routing. When troubleshooting a site or service, compare Proxy and Direct. These modes change how Shadowrocket forwards new connections it intercepts; they do not change servers, refresh subscriptions, or turn off the connection. The examples and test steps below help distinguish configuration issues from proxy-path or network problems.
Choosing a Global Routing Mode
Check the current selection under Home → Global Routing. “All” means traffic intercepted by Shadowrocket, not every connection on your device or system. Some versions also show Scene, which applies routing based on configured conditions. For the comparisons below, select the mode you want to test directly so scene conditions do not affect the results.
Config: Route by the active configuration
RecommendedApplies the rules in the active configuration. Each connection follows the policy of the first matching rule. If no earlier rule matches, FINAL in the configuration determines where it goes. No match does not necessarily mean a direct connection.
Best for: Everyday use when your configuration is confirmed to meet your needs and you want both direct and proxied connections.
Proxy: Send intercepted traffic through a proxy
Instead of evaluating the current configuration’s rules, this mode sends intercepted traffic to the selected proxy server. It does not switch servers or make traffic work if the selected server cannot handle it.
Best for: Checking whether the same destination is reachable through a proxy without changing servers.
Direct: Send intercepted traffic directly
Intercepted traffic bypasses proxy servers, while the client connection can remain on. To check network behavior with interception disabled, turn off the connection separately and compare.
Best for: Checking whether the current network can reach a destination directly, or temporarily ruling out the proxy server.
How Config Determines Where Connections Go
After selecting Config, open the Config page and confirm which configuration file is active. Config under Global Routing is a routing mode; the Config tab at the bottom manages configuration files. Rules in an edited file will not be applied unless that file is active.
The minimal rules below illustrate how rule order works. The example domains are for demonstrating matches; they do not need to host working services, and you do not need to replace your existing configuration with this snippet.
[Rule]
DOMAIN,portal.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
portal.example.commatches the first two rules, but the first one takes precedence, so the connection usesDIRECT.docs.example.comdoes not match the first rule, but matches the domain suffix in the second, so the connection usesPROXY.- Connections that match neither domain rule use
FINAL,DIRECT. If you move the suffix rule above the exact-domain rule,portal.example.comwill usePROXYinstead.
Do not confuse the Proxy routing mode with the PROXY rule policy. The mode controls the overall route for intercepted traffic; the policy applies only to connections that match that rule. To bypass the proxy for a specific site, add a narrowly scoped DIRECT rule in Config and place it above any broader rule that covers the domain.
Troubleshoot by Changing One Variable at a Time
Before testing, note the current mode, configuration file, and selected server. Stay on the same Wi-Fi or mobile network, and do not refresh the subscription or switch servers mid-test. Open the same full URL in every test. For a port-specific comparison, standard HTTPS uses port 443; keep any other port explicitly specified in the URL. Do not substitute an IP address, as that also changes the domain-matching conditions.
Compare results by changing only Global Routing
Config fails, Proxy works
- Switch back to
Config, confirm the expected file is active, then check which rule matches the destination domain, from top to bottom. - Check whether the matching policy is
DIRECTorREJECT, or whether it points to a different proxy route from the one just tested. - If the main page loads but some resources do not, check the actual domain used by the failed resources, not just the main domain in the address bar.
Proxy fails, Direct works
- This means the destination was reachable directly on that network at the time of testing. Go to
Home, confirm which server you tested, and runConnectivity Testfor the selected server. - A successful server connectivity test does not prove that the server can reach a specific destination. Reopen the same URL to verify the proxy route.
- If the destination should normally connect directly, return to
Configand check whether a clearly scoped rule can handle it, rather than leaving all traffic inDirect.
A single success or failure only shows how that destination behaves under the current conditions. Use comparisons to narrow down the cause, then check the rules, server, or local network as appropriate.
Keep connection reuse and caching in mind: seeing an old page after switching modes does not mean a new request took the new route. Retry with an action that makes a fresh request. If needed, quit and reopen the app that made the request, then note whether the failure is a DNS lookup issue, a connection timeout, or a response from the destination. If all three modes fail, do not keep changing rules. First, use the same network to reach another service known to work, then determine whether the destination itself is unreachable or the network is offline.
Common Issues After Switching Modes
Why is the connection still on when Direct is selected?
Direct controls the route, not the connection toggle. To test with interception fully off, go to Home and turn off the connection. If it turns back on automatically, check Settings → On Demand for automatic connection conditions. If you disable them temporarily for troubleshooting, restore the original settings afterward.
Why can’t I reach a local network service after switching back to Config?
First, make sure the device is still connected to a network that can reach the service. Then check whether the request uses a hostname or an IP address. For requests made directly to an IP, check the applicable IP-CIDR rule and its position, not just DOMAIN-SUFFIX. If the same address also fails in Direct, check whether the network can reach the service.
Does switching to Proxy also refresh the subscription?
No. Changing Global Routing does not update subscriptions. To refresh one, go to Home and update the relevant Subscribe entry. If you have just refreshed it, first confirm that the server used in the original test is still available, then continue comparing results. This helps avoid mistaking a server change for a routing difference.
How do I confirm normal rule-based routing is restored?
Go to Home → Global Routing and switch back to Config, then confirm the active configuration and selected server. Make a new connection to one service expected to connect directly and another expected to use a proxy. If both behave as the rules specify, there is no need to keep testing globally in Proxy or Direct.