Shadowrocket Official Manual
Shadowrocket Glossary
Find interface options by their English labels, and look up matching conditions and policies by the keywords used in configurations.
First, distinguish these two terms: Proxy is a Global Routing mode, while PROXY is a policy that can be assigned to an individual rule.
Interface & Toggles
Check connection status, the overall routing mode, and the selected server separately.
- Home
- The page for checking connection status, Global Routing, and the SERVER list. The connection toggle, selected server, and routing mode are separate details. Note all three when troubleshooting, then identify which one to check.
- Global Routing
- Choose how traffic is handled overall from Home. Config follows configuration rules; Proxy sends traffic handled by the client through a proxy; Direct connects that traffic directly. Changing the mode does not change the server selected under SERVER.
- Config (Global Routing mode)
- The active configuration determines how each connection is handled. When a rule matches, its policy applies; FINAL can specify the fallback for connections that match no earlier conditions. When troubleshooting, check which configuration is active, not just which files are saved.
- Proxy (Global Routing mode)
- Routes traffic handled by Shadowrocket through a proxy, without using the individual rules in Config. Compare it with Config to check whether an issue is related to routing. Here, Proxy is a mode; PROXY in a rule is a policy keyword.
- Direct (Global Routing mode)
- Connects traffic handled by Shadowrocket directly to its destination, without a proxy server. Use it as a comparison to check whether the same destination is reachable over your current network without a proxy. Selecting Direct does not turn off the connection toggle on Home.
- Connectivity Test
- Checks whether a test destination responds and, when available, displays the measured time. Results depend on the test method, destination, and current network; they are not download speeds and do not show whether every site is reachable. For useful comparisons, use the same destination and network.
Protocols
The protocol determines how a connection works and which fields it requires. Use the existing server details for the specific settings.
- Shadowsocks
- An encrypted proxy protocol. Connection details typically include a server address, port, encryption method, and password. The client and server must use matching encryption methods and values. Two entries with the same name may point to different addresses, so check the fields rather than the label.
- VMess
- A proxy protocol that typically uses a UUID to identify the user and supports different transport types. The same address and port do not mean the transport settings are identical. If an existing configuration specifies a transport type or related parameters, use those exact values.
- VLESS
- A proxy protocol that typically uses a UUID as the user ID. VLESS and VMess may have similar fields, but their configurations are not interchangeable. Use the existing server details to determine whether to use TLS and which transport type to select.
- Trojan
- A proxy protocol that establishes connections over TLS and typically uses password authentication. The server address and the server name used for TLS verification may need to be entered separately. If verification fails, check the name and server settings first; disabling verification is not a standard fix.
- Hysteria2
- A QUIC-based proxy protocol that uses UDP. If a connection times out, check the server address, port, and authentication details separately from whether your current network allows UDP traffic. Retesting on another network can help distinguish between these issues.
- WireGuard
- A protocol that creates an encrypted tunnel using a key pair. PrivateKey belongs to your device, PublicKey identifies the peer, and Endpoint specifies the peer's address and port. Check what each field is for when troubleshooting a failed handshake, but never share your PrivateKey in chats or diagnostic logs.
Rule Keywords
Read the matching conditions first, then the policies. The two lines below send the specified domain and its subdomains through a proxy, while unmatched connections go directly.
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
- DOMAIN
- Matches an exact domain name and does not automatically include subdomains. With example.com as the condition, www.example.com is not a match. Enter a domain as the rule condition, not a URL with a scheme or path.
- DOMAIN-SUFFIX
- Matches a domain and its subdomains. With example.com as the condition, both example.com and www.example.com match, but notexample.com does not belong to that domain. Use DOMAIN when you want to match only an exact domain name.
- GEOIP
- Matches rules based on the target IP's location in a geolocation database. It does not check the user's location or infer location from a domain suffix. Sites using distributed services may resolve to different addresses, so a domain's match result may vary.
- IP-CIDR
- An IPv4 range written as an address and prefix length, used to match destination addresses. For example, 192.0.2.0/24 is a documentation-only address range; a longer prefix specifies a narrower range. Use IP-CIDR6 for IPv6 ranges.
- FINAL
- Sets a fallback policy for connections that match no earlier conditions, and is usually placed at the end of the rules list. For example, FINAL,DIRECT connects unmatched traffic directly. A fallback does not override earlier matches: connections that match a previous rule do not switch to DIRECT.
- PROXY
- A rule policy that routes matched connections through a proxy. It goes in the policy position of a rule; it is not a domain-matching condition. In Config, you can route only connections matched by specified rules through PROXY while other connections follow their own rules.
- DIRECT
- Means matched connections go directly to their destination without a proxy server. Setting one rule to DIRECT in Config does not change how other rules match. Direct connections can still fail because of the current network, DNS resolution, or the destination service.
- REJECT
- Rejects matched connections instead of routing them directly or through a proxy. If only certain destinations fail, check whether they match REJECT before assuming a server issue. A matching condition that's too broad may also affect connections you want to keep.
Subscriptions & Configs
First identify what you have: a subscription URL, individual server details, or a configuration file for routing traffic.
- Subscribe
- The type for adding a subscription URL. Get the subscription link from your service provider. Updating a subscription can refresh multiple server entries at once, unlike importing a single share link. Subscription URLs may contain access credentials, so hide the full address in screenshots.
- Add Server
- The entry point for adding existing server details. Select a protocol, then fill in the fields provided by the server. Authentication values and transport settings vary by protocol. Saving an entry only adds it; test the connection to confirm it works.
- Scan QR Code
- The entry point for importing a link or connection details from an existing QR code. Scanning is an input method, not a protocol. Check the imported details against the information actually encoded in the QR code. Never publicly share a QR code containing a password or subscription URL.
- Configuration file
- A file that stores routing rules and related settings for Global Routing in Config mode. A subscription is generally used to retrieve or update server entries; a configuration file specifies how traffic is handled. After importing one, check that it is the file currently selected.
For step-by-step instructions on importing and connecting, see Shadowrocket Setup Guide.
Settings
Find settings by what they affect: connection triggers, domain resolution, request handling, or data sync.
- On Demand
- An option that triggers a VPN connection when configured conditions are met. It controls when to connect, not how traffic is routed after connecting. If connection status changes when you switch networks, first check whether On Demand is enabled, then review Global Routing separately.
- DNS
- DNS resolves domain names to IP addresses. It identifies a destination address but does not determine the route a connection takes. Before changing DNS, check which resolution settings are actually in effect. A domain that does not resolve is a different failure stage from one that resolves but cannot connect.
- URL Rewrite
- Applies operations such as rewriting or redirecting matching URLs based on conditions. It acts on request URLs and does not determine the traffic route selected by Global Routing. For HTTPS, whether a complete URL can be matched depends on whether the client can access the relevant request contents.
- iCloud Sync
- Syncs app data supported by the client across devices using iCloud. This is separate from App Store purchase history: being able to redownload the app does not mean its configuration has synced. After switching devices, check in the app that the entries you need are actually there.
For details on specific setting values, see the Settings Reference.