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

Learn how Config routes traffic by rules, Proxy sends it all through a proxy, and Direct connects without one. See which mode to use for everyday browsing, troubleshooting, and network changes.

At a glance

If you have a suitable configuration file, use Config for everyday use. To check whether the same destination behaves differently through a proxy or a direct connection, switch briefly to Proxy or Direct and compare. Using the iPhone / iPad Home screen as an example, this guide shows how to switch modes, verify which rules apply, and retest the same URL after changing networks.

Choosing Config, Proxy, or Direct

Tap Global Routing on Home. It controls how Shadowrocket forwards intercepted connections; it does not select a proxy server. Check the SERVER list on Home to see which server is selected. The connection toggle starts or stops the VPN. Changing the routing mode does not change the selected server or turn the connection on or off.

Config

Recommended

Routes connections according to the rules in the active configuration file. Connections can go through a proxy, connect directly, or be rejected. If no earlier rule matches, the configuration's FINAL rule determines what happens—it does not always mean direct access.

Best for: Using a working configuration to route different destinations in different ways.

Proxy

Sends all connections intercepted by Shadowrocket through the currently selected proxy, without checking Config's routing rules individually. If the proxy server is unavailable, switching to Proxy will not fix the connection.

Best for: Briefly checking whether a destination is reachable through the selected proxy.

Direct

Connects intercepted traffic directly to its destination, without a proxy server. The VPN can remain connected, so Direct does not turn off Shadowrocket and is not a substitute for testing with the VPN disconnected.

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

The list also includes Scene. It applies a routing mode based on the network scenes you have configured; it is not a separate traffic route. If you have not set up scenes, or are comparing two routes, select a mode manually first so a network change does not also change your test conditions.

Switch modes on Home and test the same destination

  1. Check the connection toggle on Home. If it shows Not Connected, turn the connection on first. Then check the selected server under SERVER and the active configuration file on the Config screen.
  2. Go to Home → Global Routing and select Config. Open the full URL you want to troubleshoot in a browser and note the result: it loads, the hostname cannot be resolved, the connection times out, or only some features—such as sign-in—fail.
  3. Keep the device, network, server, and URL the same. Switch only to Proxy, then try the URL again. To check a direct connection, repeat the test with Direct. Do not count a page that was already open and still displays as a successful new request.
  4. Compare the results, then restore the original mode. If the issue occurs only in Config, check the rules first. Avoid changing DNS, switching servers, and changing networks at the same time, or it will be hard to tell which change made a difference.
4 items
Global Routing:Config、Proxy、Direct、Scene
1 item
Change only the Global Routing mode during each comparison
443
The default destination port for an HTTPS URL when no port is specified—not the proxy server's port

Connectivity Test on Home can check the selected server's test result, but it does not test the webpage you cannot open. A successful test does not prove that the site is reachable or that Config routes its URL through a proxy. Reopen the original URL to verify.

Config is not routing as expected: check rule order and FINAL

Open the active configuration file from Config at the bottom of the screen, then find the [Rule] section. Check the target hostname against the rules in file order; the first matching rule determines the policy in the last column. This snippet illustrates rule order using example domains. It does not include proxy server settings and should not replace your existing configuration.

[Rule]
DOMAIN,login.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT

When troubleshooting “the homepage loads, but sign-in or images fail,” do not check only the hostname in the address bar. Sign-in APIs and static assets may use different hostnames, each with its own matching rule. Identify the failed request first, then check whether its hostname matches the expected policy.

Switching between Wi-Fi and cellular: keep the mode the same, then compare routes

Changing networks also changes the connection path, and DNS results may differ too. Different behavior on Wi-Fi and cellular does not by itself mean the configuration file is wrong. Keep the current Global Routing mode, check that the new network can connect, and then decide whether to switch modes.

Compare the two networks in this order

Wi-Fi
  • If the system says the network requires sign-in, complete the sign-in first. Being connected to Wi-Fi does not necessarily mean you can access the internet.
  • To reach a device on your current Wi-Fi network, use Direct first to check that its address and service port are reachable. Once confirmed, check whether Config routes that destination directly.
Cellular
  • Retest the same public URL you just tested. Do not use a Wi-Fi-only local address to check whether cellular data is connected.
  • If Direct works but Proxy does not, keep the same server selected, run Connectivity Test, and check whether the proxy server is reachable on this network.

First test each network using a manually selected mode. Configure Scene only if you need modes to switch automatically based on the network.

If the issue is that the VPN reconnects after a network change—not that the destination is using the wrong route—check Settings → On Demand. On Demand controls when the connection starts; Global Routing determines the route used after connections are intercepted. Troubleshoot them separately.

Common Global Routing questions

Proxy works, but Config does not. Is changing one rule enough?

First confirm which file is active in Config, then check the first rule that matches the target hostname and the policy it selects. If the connection unexpectedly uses DIRECT or a reject policy, correct the relevant rule and test again. If it already uses a proxy, check whether the rule uses the same proxy as manual Proxy mode.

Direct does not work. Is that the same as turning off the VPN?

Not necessarily. Note the result with Direct first, then turn off the connection on Home and retest the same URL on the same network. If it works only with the connection off, check DNS and related settings while the VPN is enabled. That difference alone does not prove the destination is unreachable directly.

Why does the page look the same after switching back to Config?

A page that has already loaded will not disappear when you switch modes, and an app may reuse an existing connection. Reload the destination, or end the current visit and open it again if needed. Compare newly initiated requests, not content already on screen.

Proxy and Direct both fail. What should I check first?

Check the URL and port first, then identify whether the failure occurs during DNS resolution, connection, or the webpage response. On the same network, try another working HTTPS URL for comparison. If only the original destination fails, check that service; if several destinations fail, check whether the network requires sign-in or has internet access.

Download Shadowrocket