Shadowrocket for Mac · Official Manual
Shadowrocket Features & Settings
To route traffic by destination, select Config under Global Routing, then check the active configuration and selected server. If a connection fails, first check where the traffic is going before changing DNS or the test method.
This guide uses the iPhone and iPad interface labels as its reference. Menu paths and system permissions may differ on other platforms; follow the options shown on your device.
- Config
- Match requests against the active configuration
- Proxy
- Route traffic through the selected server
- Direct
- Connect directly, without a proxy server
01 / Home
Global Routing: Choose how traffic is handled
Open Global Routing from Home, then choose Config, Proxy, or Direct. This setting determines how Shadowrocket handles intercepted traffic; it does not select a configuration file or switch servers. After choosing Config, check which configuration is active. If traffic needs to go through a proxy, also make sure the selected server is available.
| Interface option | How requests are routed | When to use it | What to check |
|---|---|---|---|
| Config | Match each request against the active configuration's rules. | Everyday use; route different destinations through a proxy, directly, or block them. | Check the active configuration, the first matching rule, and FINAL. |
| Proxy | Route intercepted requests through the selected server. | Temporarily check whether a destination is reachable through the current server. | Confirm the selected server, then test the same destination again. |
| Direct | Connect intercepted requests directly, without a proxy server. | Temporarily check whether the current network can reach a destination directly. | This is not the same as turning off the connection. To compare with the system's normal network behavior, disconnect separately and test again. |
If a destination works under
Proxybut fails after switching back toConfig, check the matching rule and policy first; there is no need to change servers right away. Keep the device, network, and destination the same, and make a new request for each test so existing connections or cached results do not affect the comparison.
02 / Config
Rule-Based Routing: Match Conditions, Policies, and Order
Open Config to check the active configuration and edit its [Rule] section. Then return to Home and make sure Global Routing is set to Config. Rules determine which requests match; policies determine what happens when a rule matches. Shadowrocket checks rules from top to bottom and applies the policy of the first matching rule. It does not automatically choose the most specific rule.
Choose a rule type based on the destination you can identify
DOMAIN/DOMAIN-SUFFIX/DOMAIN-KEYWORD- Use
DOMAINfor an exact hostname. UseDOMAIN-SUFFIXto match a domain and its subdomains. UseDOMAIN-KEYWORDonly when you need to match a substring across multiple domains. Keyword matches can catch unrelated sites, so test a domain that should not match as well. IP-CIDR/IP-CIDR6/GEOIP- For a known IP range, choose
IP-CIDRorIP-CIDR6according to the address family.GEOIPmatches the geographic classification of an IP address, not where a website is registered. A domain may resolve to different addresses on different networks, which can change the result. USER-AGENT/FINALUSER-AGENTdepends on whether the client can see the relevant request information, so it is not a general-purpose way to identify all traffic.FINALhandles requests that did not match any preceding rule and should be placed at the end of the list.
Put exceptions before broader rules
This example sends one specified subdomain directly, routes other requests under the same domain through a proxy, and rejects another specified hostname. DIRECT means a direct connection, PROXY routes traffic through the selected server, and REJECT blocks matching requests. The example domains illustrate rule order only; choose the policy on the last line to suit your needs.
[Rule]
DOMAIN,status.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
DOMAIN,blocked.example.net,REJECT
FINAL,DIRECT
If you move DOMAIN-SUFFIX to the first line, status.example.com will match the proxy rule first, and the direct-connection exception below it will never be applied. Keep a copy of the original configuration and change one thing at a time. After saving, test both the exception destination and a regular destination. For more on section structure and field syntax, see the configuration fields reference.
03 / Home · Add Server
Subscriptions and Servers: Import Existing Connection Details
A subscription is useful for managing a group of servers maintained by your provider; adding a server manually is better when you have details for just one server. Start either process from the add option on Home. A successful import only confirms that the client can read the entry. Select the server and test an actual connection to make sure it works on your current network.
Import an existing subscription with Subscribe
Open Add Server, set Type to Subscribe, enter the complete subscription URL provided by your provider, and save. Return to Home and check that the subscription and its servers appear in the list. After updating a subscription, check which server is selected: entries may be replaced or removed, so a familiar display name does not guarantee that the original connection details are still in use. If the updated list is empty, first check that the URL is complete and the subscription is still valid. Do not add the same URL repeatedly.
Add a single server with Add Server
Choose the protocol that matches your existing details, then enter the address, port, and required parameters for that protocol. Shadowsocks, VMess, VLESS, Trojan, HTTP, SOCKS5, WireGuard, and Hysteria2 use different fields. Even if the hostname and port are the same, switching protocols cannot make up for missing parameters. If you have a QR code, import it with Scan QR Code, then check the protocol and server address.
After saving, select the server you want to use on Home. Run Connectivity Test, then try the actual destination. Check configuration files and server lists separately: updating a subscription does not change which rules are active under Config. Keep subscription URLs, passwords, and private keys secure; do not include them in public screenshots or diagnostic logs. For a first-time walkthrough, see the connection and verification guide.
04 / Settings · On Demand
On Demand: Connect Automatically Based on Network Conditions
On Demand determines when the system attempts to start a connection; it does not choose a policy for a specific domain. First, connect manually from Home and verify the server and active configuration. Then open On Demand in Settings. Set network conditions using the options shown on screen, starting with one scenario before adding others.
For example, to check whether Shadowrocket connects automatically after you leave a familiar Wi-Fi network, set the relevant network condition, switch from Wi-Fi to cellular, and check the connection status and access to a known destination. Switch back to Wi-Fi and test again to confirm the behavior. The system may take time to respond to network changes, so do not rely only on the status immediately after a setting changes.
If the connection starts again automatically after you disconnect it manually, pause On Demand and test again. If the problem occurs only on a particular Wi-Fi network—especially one that requires you to sign in through a web page—pause On Demand, complete the network sign-in, and then restore your previous settings. This helps distinguish system-triggered connection issues from server connection issues.
05 / Data
Data: View Client Traffic Statistics
Open Data to view traffic recorded by the client. Before interpreting the numbers, check the traffic direction and reporting period shown on the screen. Upload and download are separate directions, and a cumulative total does not tell you how much traffic a single recent visit used. Client statistics may use different accounting methods from your provider's bill or the system's cellular data counter; do not use one to estimate another.
To check whether a request went through the client, note the current reading, pause large background transfers, and make a recognizable new request on the same network. Then return to Data and compare the change. An increase means data was transferred within the reporting scope, but the total alone cannot show which rule matched or which server was used. To identify the route, check the current routing mode and any available diagnostic records.
06 / Settings
Settings: Common Options and Connection Diagnostics
DNS: Check Domain Name Resolution
If some destinations work but a particular domain always fails, first check the DNS options in Settings, then see whether the active Config also defines DNS parameters. Note the original values and change only one setting at a time, making a new request to the same domain after each change. If a private domain on a work or home network stops resolving, restore the original settings and check whether it depends on that network's DNS service. Successful resolution does not guarantee that the destination is reachable: even with an IP address, routing policies or the destination service may still block the request.
Test Method: Keep Connection Tests Consistent
Check Test Method in Settings, choose a test type available in the current interface, then return to Home and run Connectivity Test. Different methods may test whether a connection can be established or send a request to a specific destination, so their results are not directly comparable. When comparing servers, keep the test method, network, and destination the same. A successful test means only that the check passed; verify routing with the destination you actually need to reach.
Today Widget: Set Up a Quick Access Shortcut
If Today Widget appears in Settings, first check which quick actions it offers, then see whether it can be added through the system's widget controls. Widget availability depends on the options provided by the system. When testing for the first time, perform an action and return to Home to check the actual connection status. To switch servers or change Global Routing, use the status shown in the app.
iCloud: Check What Syncs
To sync between your iPhone and iPad, first confirm in system settings that both devices use the same iCloud account. Then check whether Shadowrocket’s Settings includes an iCloud option. Keep your existing configuration before enabling it. Verify the sync on one device, then check which items appear on the other. A configuration appearing does not mean sync is enabled, nor does it confirm that connection status, system permissions, or every setting has transferred. Don’t edit the same configuration on both devices at once while testing sync.
Diagnostics: Narrow Down Connection Issues
Open Diagnostics in Settings and record the network, Global Routing mode, and destination domain for a reproducible failure. First check whether the hostname resolves, then whether the proxy or direct route matches the rules, and finally whether the destination request completes. If direct access works but proxy access fails, check the selected server and test destination first. If only rule-based routing fails, check rule order and FINAL. When sharing a log, include only the details needed to investigate the issue and redact subscription URLs, credentials, and private browsing records.