OFFICIAL MANUAL / Features and Settings

Shadowrocket Proxy Modes and Settings

First choose how Global Routing should handle traffic, then check the rules and policies in Config. Test subscriptions, On Demand, and DNS separately so you can identify the cause if something goes wrong.

  • Mode → Rules → Servers
  • Connection → Usage → Diagnostics

This page is a feature guide in the official Shadowrocket manual, covering configuration concepts for iPhone, iPad, Mac, Windows, Android, and Linux. The instructions mainly follow the iPhone / iPad interface; menus and available settings may differ on other platforms, so refer to what the current app displays.

To get the app, visit the download page and choose your device: the iPhone / iPad app costs $2.99 as a one-time purchase on the App Store. The Mac (Apple silicon and Intel), Windows, Android, and Linux versions are free; installers are available from this site at /dl/. Check the App Store listing for iPhone / iPad system requirements.

01 / GLOBAL ROUTING

Three ways to handle traffic: Config, Proxy, and Direct

Global Routing determines how traffic is handled by a configuration or server; it does not change the order of the server list.

Open Global Routing in Home and check whether Config, Proxy, or Direct is selected. Config evaluates traffic against the rules in the enabled configuration. Proxy routes traffic normally handled by the client through the current proxy policy. Direct connects without using a proxy. These options affect routing decisions; they cannot fill in missing server details or replace importing a subscription.

Option When to use it What to check
Config For everyday routing based on domains, addresses, and other conditions. Check which file is enabled in Config, the rule order, and the final fallback policy.
Proxy To temporarily test the proxy route through the current server. Check that a server or policy group is selected. When testing is done, switch back to Config if needed.
Direct To check the device’s regular network or temporarily connect directly. Requests generally bypass the proxy server; this does not tell you whether the server is working.

When setting up for the first time, choose a server with complete details. Use Proxy to test the route, then switch to Config to check rule results. If Proxy works but Config does not, check rule matches, policy names, and DNS before reimporting the same subscription. Direct provides a comparison with your regular network, but it is not exactly the same as turning off the connection switch; the system may still keep the network tunnel established by the client.

After switching modes, make a new request and, if needed, close and reopen the app you’re testing. Existing long-lived connections may continue using the old route, so don’t judge the new mode by a page that hasn’t refreshed. System traffic, LAN exclusions, and platform restrictions can also affect what gets routed; Proxy does not guarantee that every system request will use the proxy.

02 / CONFIG · RULE

Rules match traffic; policies determine what happens to it

In Config, check which configuration file is in use. Changes to rules only affect routing when made in the currently enabled file.

A rule typically consists of a rule type, a match value, and a policy. DOMAIN matches an exact domain; DOMAIN-SUFFIX matches a domain and its subdomains; DOMAIN-KEYWORD matches a keyword in the domain. IP-CIDR and IP-CIDR6 match address ranges, while GEOIP checks an IP address against a geolocation database. USER-AGENT depends on request information the client can actually read, so it should not be relied on to consistently match every encrypted request.

PROXY, DIRECT, and REJECT are actions, not rule types. PROXY routes matching traffic through a proxy; DIRECT connects directly; REJECT blocks matching requests. A configuration may also refer to an existing policy group. The group name must resolve within the same configuration; a rule cannot use a name that only looks right but does not exist.

[Rule]
DOMAIN-SUFFIX,example.com,PROXY
IP-CIDR,192.168.0.0/16,DIRECT
GEOIP,CN,DIRECT
FINAL,PROXY

This snippet illustrates syntax and order only; it is not a complete connection configuration. It contains no server details and should not replace an existing file. Rules are generally evaluated from top to bottom, and the first match determines the action. FINAL is the fallback when no earlier rule matches. Put exceptions for specific domains before broad rules; otherwise, later, more specific rules may never take effect.

Back up the configuration before making changes, and adjust one clearly defined rule at a time. Save and enable it, then revisit the target domain and check the matched rule and policy in the logs. If you only see the target IP, also check domain resolution and the conditions for request logging. Whether a website opens is not enough to identify the exact rule that matched.

03 / HOME · SUBSCRIBE

Manage subscriptions and servers separately

Subscribe manages how a group of servers is retrieved and updated; Add Server is for entering the details of a single server. Neither is a substitute for routing rules in Config.

To add an existing subscription from Home, tap Add Server, choose Subscribe, and paste the full link from your own provider. If you have details for a single server, choose the matching protocol and enter them. Shadowsocks, VMess, VLESS, Trojan, HTTP, SOCKS5, WireGuard, and Hysteria2 use different parameters. Follow the source details; don’t guess the protocol from a port or name.

Before importing, check that a messaging app hasn’t truncated the link, that it has no leading or trailing spaces, and that you haven’t mistaken a management webpage for a subscription URL. After importing, confirm the number of entries looks right, then select a server. The name is just a label; the address, port, credentials, TLS, and transport settings determine whether it connects.

Updating a subscription retrieves its entries again, so manual edits to subscribed servers may be overwritten next time. Back up local changes you want to keep and note how they relate to the original subscription entries. Before deleting an old subscription, confirm the replacement has imported successfully and works, so you don’t lose a useful reference.

Connectivity Test can help identify unreachable entries, but the result reflects only the selected method and the network at that moment. A successful subscription update means the request completed; it does not mean every server in the subscription works. If a test times out, check the local network, server details, and test target separately. One failure does not mean the entire subscription is invalid.

04 / ON DEMAND

On Demand: connect based on conditions

On Demand determines when to connect; Global Routing determines how requests are handled after connecting. Check these settings separately.

On Demand triggers connection behavior based on network conditions. Find the On Demand options in Settings, review the conditions and actions shown for your platform, and configure them for your Wi-Fi, cellular, or other network needs. Don’t assume the switch name means the client will connect automatically on every network; behavior depends on the enabled conditions and system network permissions.

For your first setup, test a manual connection before adding a single On Demand condition. After saving, switch to the intended network and check the connection state, then switch to another network to see whether an unwanted connection starts. Add exceptions only after confirming the condition works; this helps avoid misdiagnosis when multiple rules override one another.

If the client reconnects soon after you disconnect manually, first check whether On Demand is still active instead of repeatedly tapping the connection switch. When troubleshooting, note the original settings and pause On Demand to keep the test controlled. Also check for other VPN configurations in system settings, as their connection requirements may conflict.

On Demand cannot fix an incorrect password, an invalid subscription, or an unreachable server. It also does not mean the client continuously runs the same speed test; connection triggers and server selection are separate. Device lock, network changes, and system background management can affect what you observe, so check the connection logs when behavior differs from what you expect.

05 / DATA

Use Data to review traffic and requests

Check what the figures measure before comparing them. Client statistics, device system statistics, and server-side billing records may not match exactly.

Data shows traffic and request details the client can record. Available sections depend on the current platform. In Data, first check whether the figures cover the current connection, total usage, or a particular time range, then compare upload and download traffic. To compare before and after a change, note the starting figures and test steps so the two observations use similar conditions.

When troubleshooting rules, focus on the policy applied to the target request, not the total traffic. Review available request logs for the target domain, address, matched rule, and action. A single page may generate requests to several domains, so check each relevant one rather than only the main domain. Background sync, images, and in-app resources can all create separate connections.

An increase in Data traffic means the client observed data transfer; it does not prove the target page loaded successfully. Likewise, no new records do not necessarily mean the server is down: the app may be using cached data, or the request may fall outside the client’s routing scope. Save any evidence you need before clearing records so you retain useful troubleshooting clues.

Keeping detailed logs enabled for a long time can use more storage and add diagnostic overhead. When troubleshooting is done, restore the logging level you need and clear old history regularly. Treat recorded domains, addresses, and timestamps as personal network activity data; share only what is needed to identify the issue.

06 / SETTINGS

Check common Settings one by one

The options below are grouped by purpose. Some may also be set in a configuration file, so check both global settings and the active Config to avoid duplicates.

DNS: check the resolution path first

DNS resolves domain names to addresses and can affect routing decisions based on domains and IP addresses. In the DNS options in Settings or the general settings for the current configuration, note the original value first, then check whether resolution depends on the current proxy route. In a configuration, dns-server = system means to use the system’s DNS settings. It’s a useful value to recognize when reviewing an existing configuration, not a universal recommendation.

If a domain won’t resolve, compare how different domains behave across different networks, then use request logs to narrow down the cause. Don’t replace DNS, the server, and all the rules at once; even if that fixes the issue, you won’t know why. Visiting an HTTPS site by IP can also cause certificate or virtual-host errors, so it is not a complete substitute for testing the domain name.

Test Method: know what’s being measured

Test Method determines how Connectivity Test runs. Find it in Settings and review the available methods, distinguishing between measures such as establishing a connection to a port and requesting content from a target. If the interface lets you set a test target, keep it consistent and note the method. Use the same test conditions when comparing servers.

The time shown for one test is not a download speed and does not guarantee that every app request will succeed. If a method fails while normal browsing works, first check whether the method or target suits the current network. Assess real-world performance using requests from the target app, sustained transfers, and error logs; don’t choose a server based on one test result alone.

Today Widget: use it as a shortcut

Today Widget provides quick status checks or controls on platforms that support it. Check the related option in Settings, then add and configure the widget using the system’s instructions. Availability and controls depend on the device and the current app interface. After setting it up, return to Home and verify the actual connection status.

Widgets may take time to refresh, so don’t rely on them alone to diagnose a problem. If the widget and app show different states, open the client to check the connection and logs, then review the system’s widget refresh conditions. After changing a configuration or server, confirm the shortcut still points to the intended item.

iCloud sync: keep a separate backup first

iCloud sync transfers supported data between platforms and devices that offer this feature. In Settings, check the iCloud options, confirm the system is signed in to the intended account, and allow the client to use iCloud. Which data syncs depends on the details shown in the interface; don’t assume connection logs, all credentials, and system permissions will transfer together.

Before switching devices, export a restorable configuration. On the new device, confirm what synced before making changes. Sync transfers the current state; it is not a backup that preserves every historical version, and accidental edits or deletions may sync too. If the devices don’t match, stop editing, identify the complete copy, then follow the configuration backup and device migration guide to restore items one by one.

Diagnostics: collect logs for a specific issue

Diagnostics collects information about connections or requests. Find the diagnostics option in Settings, note the network, Global Routing mode, and selected server where the issue occurred, then start logging and reproduce the issue once. Stop any unnecessary detailed logging afterward and focus on where it failed, such as DNS resolution, connection setup, TLS, or the response.

The stage named in an error is more useful for troubleshooting than a generic “not working” message. Keep the necessary timestamps and exact error text, but hide subscription links, authentication fields, personal addresses, and other sensitive details. If the logs don’t include the incident you’re investigating, collect them again instead of changing settings based on unrelated old errors.

07 / CHECK ORDER

How to test changes to settings

Narrow down the cause step by step, from whether a connection works to why traffic is routed a certain way. Change one condition at a time and keep a record of the original value so you can restore it.

  1. Check that the regular network works.Verify Wi-Fi or cellular service, system network permissions, and basic connectivity. If the device itself has a network problem, fix that before troubleshooting proxy rules.
  2. Check that the server details are complete.Verify the protocol, address, port, and credentials. If you use a subscription, confirm its entries were imported; if you entered details manually, compare each field with the source. Don’t test a different entry just because its name looks similar.
  3. Use Proxy to test the route.Select a server and make a new request. If it still fails, use Diagnostics to distinguish DNS errors, connection timeouts, and authentication problems. Don’t add rules yet.
  4. Switch back to Config and check the policy.Confirm the configuration is enabled and check which rule matches the request and whether PROXY, DIRECT, or the policy group matches your expectations. If needed, add just one targeted exception.
  5. Restore automatic behavior last.Once the manual steps work reliably, re-enable On Demand, widgets, and your usual logging settings. Repeat the test after switching networks to confirm the settings work beyond the current scenario.

For step-by-step setup from the beginning, read the Shadowrocket getting started guide. If you already know the symptoms, go to the troubleshooting guide. If you’re unsure what DOMAIN-SUFFIX, FINAL, or another keyword means, check the glossary before editing the configuration to avoid rules that are syntactically valid but behave incorrectly.