For everyday domain-based routing, choose Config. Use Proxy and Direct to compare proxy and direct connections. This guide uses the Home screen on iPhone / iPad to show how to switch modes, confirm which configuration is active, and use the same URL to distinguish routing issues from connection problems. The same troubleshooting approach applies on other platforms; menu locations may vary by version.
How Config, Proxy, and Direct handle traffic
Global Routing determines which route Shadowrocket uses for the traffic it handles; it is separate from the connection toggle on Home. Switching modes does not change server addresses, ports, or credentials, and it will not fix DNS resolution failures.
Config: Route traffic according to your configuration
RecommendedTraffic is matched against the rules in the active configuration and follows the policy specified by the matching rule. If no earlier rule matches, FINAL in the configuration determines the route. Choosing Config does not mean unmatched traffic will always connect directly.
Best for: Everyday browsing when some sites should connect directly and others should use a proxy.
Proxy: Route all traffic through the proxy
All traffic handled by Shadowrocket uses the proxy, instead of following the configuration's routing rules to choose between direct and proxy connections. Even if the configuration includes FINAL,DIRECT, that rule cannot preserve the usual routing behavior in Proxy mode.
Best for: Temporarily checking whether a request succeeds through the selected proxy.
Direct: Route all traffic directly
Traffic handled by Shadowrocket bypasses remote proxies. This is useful for comparing direct connections while keeping Shadowrocket connected, but it does not replace testing the device's network with Shadowrocket disconnected.
Best for: Checking whether the current Wi-Fi or cellular network can reach a destination without a proxy.
If the same screen also shows Scene, routing is selected according to the configured scene. For troubleshooting, explicitly choose one of the modes above to avoid changing both the test conditions and routing behavior when switching networks. To troubleshoot automatic connections or disconnections, check Settings → On Demand instead.
Switch modes in Home and confirm the active configuration
- On iPhone / iPad, open
Home → Global Routingand check the selected option. UseConfigfor everyday routing; selectProxyorDirectonly when comparing connections. - Return to
Homeand make sure the connection is on. Before testingProxy, confirm that the selected server is the one you intend to test. If you need to update a subscription, get the details from your service provider; switching modes and updating a subscription are separate actions. - When using
Config, openConfigand confirm which configuration file is active. A device may have several files saved, and editing a file does not automatically make it active. Once you have confirmed the active file, check its[Rule]section. - After switching modes, make a new request rather than relying on a tab that has already finished loading. Browser cache may show an old page, and existing connections may be reused. If results are inconsistent, note the test time and request domain, then check the logs by domain if available.
Use DOMAIN-SUFFIX and FINAL to check the route taken
The following is a rule snippet, not a complete configuration. Save a copy of the current configuration before making changes, and check rule order in the copy first. The example domains illustrate rule matching; use policies that match your actual configuration.
[Rule]
DOMAIN,docs.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
docs.example.com matches DOMAIN exactly and uses DIRECTwww.example.com matches DOMAIN-SUFFIX and uses PROXYexample.net matches neither of the first two rules, so FINAL routes it to DIRECTThis also explains why specific exceptions should come before broader rules: if you swap the first two rules, docs.example.com matches the suffix rule first, so the later direct exception never takes effect. DOMAIN-SUFFIX,example.com,PROXY matches example.com and its subdomains, but not notexample.com, which merely contains the same characters.
Before copying this snippet, check whether the original file already contains FINAL. Do not append new rules after the existing fallback rule. If only images or login requests fail, check the domain for each request: a rule matching the main site in the address bar does not mean it will also match the image host or a redirect destination.
If a URL won't open, compare routes
Keep the device, network, and destination URL the same; change only Global Routing. Do not switch servers or DNS settings while changing to Proxy. Otherwise, even if the page starts working, you will not know which change made the difference.
Compare the proxy and direct routes
Proxy works, but Config doesn't
- Switch back to
Configand reproduce the issue, then check the target request's domain, matching rule, and actual policy. - If the request falls through to
FINAL,DIRECT, check whether a domain rule is missing. If an earlier direct rule matches, first confirm that it is not an intentional exception. Change the rules only when the selected policy is not what you expect.
Direct works, but Proxy doesn't
- In
Home, check which server is selected. Verify that the server's address, port, and protocol match the details provided by your service provider. Do not use the latency result for a different server as evidence for this test. - If other destinations work through the same server, note whether the failed request reports a DNS error, timeout, or certificate error, then narrow down the cause. Do not assume the entire connection is unavailable.
If both modes fail, first make sure the network is connected to the internet. Then determine whether the issue is DNS resolution, a connection timeout, or an error returned by the website. Switching modes helps narrow down the cause; it does not fix the problem.
Switching modes and checking your setup
Why does the system still show VPN after switching to Direct?
Direct changes the route, not the connection state. To test network behavior with Shadowrocket disconnected, turn off the connection in Home and revisit the same URL. If the connection turns back on automatically, check Settings → On Demand for conditions that match your current network.
Why does the latency test succeed when webpages won't load?
A latency result only shows that the corresponding test received a response. It does not prove that the browser can resolve the requested domain, establish a connection, and load the page. Keep the same server and compare Proxy with Config, then use the failed request's domain and error to determine whether to check routing rules, DNS resolution, or the connection.
Why does the route look right when checked, but parts of a webpage still fail to load?
An IP-check website is just another request, so it only shows the route for that domain. Return to the page that failed and check the domains for the main document, login redirects, and static resources separately. Do not route all unmatched traffic through a proxy just to make one IP-check result look consistent.
How do I switch back to my everyday setup after testing?
Open Home → Global Routing, select Config again, and confirm which configuration file is active. Make a new request to one destination expected to connect directly and another expected to use a proxy. If you tested rules in a copy, keep the changes only after both types of requests behave as expected; otherwise, switch back to the original configuration.