Shadowrocket Official Manual

Shadowrocket Features and Settings

To route traffic according to rules, select Config under Global Routing on Home. This guide uses the iPhone and iPad interface to explain routing modes, subscription updates, automatic connections, traffic statistics, and common settings.

01 / Routing Modes

Global Routing: Config, Proxy, and Direct

Global Routing determines how Shadowrocket handles connections it takes over. Open Global Routing on Home and choose a mode for the task at hand. Server selection and routing mode are separate settings: choosing a server does not mean all requests will use it, and choosing a routing mode does not start the connection.

Mode How it works When to use it Check before switching
Config Uses the active configuration’s rules to decide how matching connections are handled. For everyday rule-based routing or checking whether a domain or address rule matches. Check which file is active and what policy applies when no rule matches.
Proxy Routes connections through the proxy without using Config rules to choose a policy. Briefly check whether the selected server can handle the same request. Check the server selected on Home, then switch back to your usual mode after testing.
Direct Routes connections it takes over without using a proxy server. Check whether the same destination is reachable directly over your local network. Direct is a routing mode; it is not the same as turning off the connection on Home.

For a useful comparison, keep the device, network, and destination the same. Change one routing mode per test and start a new request each time. If Proxy works but Config does not, check the Config rule order and the policy each rule selects. If Direct also fails, and the result is the same with Shadowrocket disconnected, check the destination service, local network, and DNS resolution. A single success or failure only helps identify what to investigate next; it does not prove the cause.

02 / Routing Rules

Config: Route by Domain, Address, and Policy

Each rule has a matching condition and an action: the condition determines whether a request matches, and the action determines how to handle it. In Config, open the active configuration file and check where the rule appears, then review FINAL at the end. For a single host, use a specific match rather than broadening the rule to cover an entire domain group just to make a test pass.

  • DOMAIN matches an exact domain and is useful for handling a single host. DOMAIN-SUFFIX matches a domain suffix, including the domain and its subdomains. DOMAIN-KEYWORD matches a string in the domain; broad terms may also match unrelated sites.
  • IP-CIDR and IP-CIDR6 match IPv4 and IPv6 address ranges, respectively. GEOIP matches based on the target IP’s geographic registration; this does not necessarily indicate where the website is based. When troubleshooting an address rule, first check which address type the request actually uses.
  • USER-AGENT matches available User-Agent information. It is not a system process name, and it does not mean that every connection from the same app will match.

DIRECT means connect directly, PROXY means use a proxy, and REJECT means block the connection. A configuration may also refer to custom policy groups. In that case, check both the rule and the group’s currently selected route. The example below places a specific direct-connection exception before a suffix rule and sends other destinations to FINAL.

DOMAIN,docs.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT

Keep a restorable copy of the configuration before making changes. After saving, return to Home and confirm Global Routing is still set to Config. Test the exception domain, another domain covered by the suffix rule, and a destination outside its scope. If the results differ from what you expect, check whether a broader rule above it matched first, then review the policy group and FINAL. Don’t just move a rule without confirming which file is active. For more keywords, see the Glossary.

03 / Subscriptions and Servers

Home: Import, Update, and Test Servers

Subscriptions provide and refresh a list of server entries; add a server manually when you have the details for a specific server. Get subscriptions and server details from your provider. This site provides the client and usage guides, but does not provide, sell, or recommend servers or subscriptions. Subscription URLs may contain access credentials, so hide the full link before sharing screenshots or troubleshooting records.

  1. Import a subscription: On Home, open Add Server and select Subscribe for the subscription source. Enter an existing URL and save it. Return to Home and check that the subscription group appears and contains selectable servers. Configuration files and subscription URLs serve different purposes; don’t treat them as the same type of import.
  2. Add a single server: In Add Server, select the protocol that matches the details from your provider, then enter the address, port, and required authentication and transport settings. Similar field names don’t mean the values are interchangeable. If in doubt, consult the Protocol Reference and check the original details from your provider.
  3. Review the list after updating: On Home, update an existing subscription and check the result and server list. If the previously selected entry has been removed, select a server from the updated list. If the update fails, first check that the URL is still valid and reachable over your current network, then confirm the response is a subscription—not a login or error page.

After selecting a server, use Connectivity Test on Home for an initial comparison. Results reflect the selected test method and network conditions at that moment; they don’t replace testing access from the app you actually use. If the test succeeds but the app still can’t connect, check Global Routing and the rule action for the same destination before changing servers. For your first setup, follow the steps in Quick Start.

04 / On Demand

On Demand: Connect Automatically Based on Network Conditions

On Demand controls when a connection starts or stops; it does not choose a policy for that connection. Open On Demand in Settings and configure network conditions and actions using the available options. Check the actual network name for Wi-Fi conditions, test cellular separately, and, if using a domain condition, distinguish between a connection trigger and a Config rule that selects a policy.

When setting this up for the first time, add just one condition. For example, set an action for a familiar Wi-Fi network, then switch between Wi-Fi and cellular and check whether the connection status on Home matches your expectations. Add other conditions only after confirming the first one. Overlapping network names and broader conditions can make it hard to tell which condition triggered the connection. After a manual disconnect, the connection may start again if a trigger condition is met.

If an automatic connection starts but the destination is still unreachable, check the selected server and Global Routing on Home first. Revisit On Demand first only if the connection did not start at all. Checking whether the connection started separately from whether traffic was routed as expected helps avoid changing unrelated settings.

05 / Traffic Statistics

Data: Review Traffic and Measurement Scope

Data displays traffic statistics reported by Shadowrocket. Open Data and check the time range, traffic measured, and units shown before comparing sent and received amounts. If the screen offers range options, use the same range when comparing results. To check whether an action changed traffic, note the current reading, make a repeatable request, then return to Data and compare.

Data statistics are not a direct measure of your provider account’s remaining allowance, and may not match the system’s cellular data usage. Provider billing periods, system counters, and the client’s measurement scope can differ. If traffic changes noticeably during a period, first check whether you switched networks or servers, then review connection records for that time. Don’t conclude that a rule failed based only on a cumulative total.

06 / Common Settings

Settings: DNS, Testing, Sync, and Diagnostics

Before troubleshooting settings, note your current network, server, and Global Routing mode. Change one setting at a time and retest with the same request. If there’s no improvement, restore the original value before checking another setting.

DNS

DNS resolves domain names to addresses. If only some domains fail, or a domain behaves differently after switching networks, check DNS options in Settings and see whether the active file in Config has its own DNS settings. Before changing anything, note the original value, adjust one setting at a time, and retry the domain request. Connecting to a known IP does not confirm that DNS is working; changing DNS won’t fix server authentication or port errors.

Test Method

Test Method determines how Connectivity Test runs. Choose a method in Settings, then use the same method to test the servers you want to compare on Home. Different methods may measure different stages of a connection, so their results are not directly comparable. A faster test only means that test was faster; it does not indicate sustained download speed or connection stability.

Today Widget

Today Widget is a system-level shortcut. If Settings offers Today Widget options and the corresponding widget is available in the system’s widget list, add it by following the system prompts, then check the connection status against Home. Widget availability depends on the system and the options provided by the app. If you can’t find it, you can still view and control the connection on Home; there’s no need to change rules or subscriptions.

iCloud Sync

iCloud syncs data supported by the app across eligible devices. Before enabling it, check the Apple Account currently in use in system settings, then review the sync options and scope in Shadowrocket Settings. Back up files you want to keep before switching devices or editing important configurations. After enabling sync, check each item on another device rather than assuming servers, rules, and every connection setting will be restored. Keep backups containing subscription URLs or server credentials secure, like other sensitive files.

Diagnostics

Diagnostics can help identify connection issues. In Settings, open Diagnostics and note when the problem occurred, which network you were using, and the Global Routing mode. Reproduce the issue and review the corresponding records. First distinguish between DNS resolution failures, server connection failures, authentication issues, and an unexpected policy selection, then check the relevant section. Before sharing diagnostics, remove subscription URLs, authentication details, and anything else that could identify your account or destination.