Official Manual / Configuration Fields

Shadowrocket Configuration and Rules Reference

First check Global Routing and the active configuration. Then check the request's match target, the first matching rule, and FINAL. These three checks help distinguish routing issues from DNS or connection problems.

If you haven't imported an existing subscription or server details yet, follow the quick start guide to make your first connection. Once it works, return here to look up fields, write rules, or troubleshoot matches. For another device, see downloads for all platforms for the iPhone and iPad App Store link and system requirements, plus download instructions for Mac (Apple Silicon and Intel), Windows, Android, and Linux.

01 File Structure

The four sections in a configuration file

A configuration file describes how the client handles requests. Server details added manually or through a subscription provide the proxy endpoints you can use. They serve different purposes. If a refreshed subscription shows your server in the available list but a site still connects directly, check the active configuration and routing mode first; don't import the same subscription again. Conversely, correctly written rules cannot create a reachable proxy endpoint.

Read the file by function

A heading in square brackets starts a section. The following lines are interpreted according to that section until the next heading. Check which section a line belongs to before reading its syntax. The same domain can appear in several sections with different meanings: one entry may specify an address, another a connection policy, and another may match a full request URL. These lines are not interchangeable and should not be combined into a longer rule.

SectionPurposeHow to read it
[General]General configuration options.Identify the key, then check the value format and scope.
[Rule]Assign requests to policies.Read each rule's parameters and find the first match from top to bottom.
[Host]Specify how a hostname resolves.The hostname is on the left; the configured address is on the right.
[URL Rewrite]Match a visible request URL and apply a rewrite action.Read the match expression, destination, and action separately.

This minimal example contains just two sections. You don't need to add unused sections just to fill out the structure. The domains use reserved example names; this snippet illustrates the format and is not intended to replace a working configuration. To test proxy routing, first select a server you already have that connects successfully, then replace the example destination in an appropriate test environment.

[General]
ipv6 = true

[Rule]
DOMAIN,portal.example.com,PROXY
FINAL,DIRECT

Make sure you're editing the active copy

Open Config and note the name and source of the configuration currently in use, then create a local test copy. For remotely maintained configurations, distinguish the download source from the copy you're editing: updating the remote source may overwrite local changes. Keeping the original separate from your test copy lets you switch back if a rule matches unexpectedly, DNS slows down, or an internal service becomes unreachable, without having to reconstruct your edits from memory.

After saving, check that the test copy is selected, then set Global Routing to Config and make a new request. Seeing a configuration in the list only confirms that it was added; it doesn't mean it handled the request you just made. If you were using a page that was already open, close the existing session and test again. An old connection may continue to show the previous result even when the rule was saved correctly.

Check syntax at the file level

When copying rules from a chat or rich-text editor, check for full-width commas, quotation marks, line breaks, and section headings first. Comma-separated rules, equals-separated settings, and whitespace-separated rewrites use different syntax. Also check that a line wasn't split in two or that explanatory text wasn't pasted onto the end of a configuration line. If you're unsure how comments work, keep notes outside the configuration and save a text copy with only the required fields.

Check: First ask, “Which section does this line belong to?” Then ask, “Is this the configuration currently in use?” If either answer is unclear, don't change rule priority yet.

When documenting a change, note the full hostname you expect to match, the policy it should use, and a comparison target the change shouldn't affect. Change one variable per test, and keep both the original and the verified copy. Configurations may contain private DNS addresses or remote sources; save a separate copy and remove those details before sharing. Troubleshooting requires the structure and matching line, not your entire subscription or server details.

Don't judge a migration involving several sections solely by whether a webpage opens. First use a narrow rule to confirm that the file is active. Then compare DNS and exceptions against the original configuration, and finally check where unlisted destinations go. If the first test misses the mark, this sequence helps identify whether the copy wasn't activated, the wrong rule matched, or the selected connection has a separate issue. The chapters that follow use the same verification order.

02 General Options

General: DNS, address families, and bypass scope

Changes in [General] usually affect more than a single rule. To send a destination directly, first consider a narrowly scoped DIRECT rule. Change a general option only when you need to alter DNS behavior, address-family settings, or the scope of traffic interception. Mixing these layers may make an app appear to work again without proving that your new rule matched—the traffic may no longer be following the same processing path.

DNS settings are not connection policies

[General]
dns-server = system
ipv6 = true

dns-server = system means this setting uses the system's DNS configuration; the example doesn't replace it with a specific public resolver. Whether it applies depends on the device's current network. At home, at work, and on mobile data, the available system resolvers and their responses may differ even when the configuration file stays the same. Internal domain names in particular can only resolve if the current network provides the relevant records. Changing the policy in the last column of a rule won't change that.

If a domain name fails to load, compare an internal hostname with a known-good destination. If both fail, check the network and system DNS settings. If only the internal hostname fails, check whether the current network is supposed to resolve it. Even if a real service is reachable by IP address, “the address is reachable” doesn't mean “the domain resolves correctly”: using the IP can change the request hostname, certificate validation, and the site selected by the server.

IPv6 is a separate address path to verify

Once ipv6 is enabled, check IPv6 as a separate address family. A hostname may resolve to both IPv4 and IPv6 addresses, and the same destination may use a different address on different networks. A rule for an IPv4 range only shows that those addresses have a matching policy; it doesn't prove that the same domain will match when reached over IPv6. If the destination is identified by name, prefer a domain rule, then verify both connection paths separately.

If the issue appears only after switching networks, keep the policy and server unchanged and record the actual destination address on each network. If the address family changes but the policy doesn't, check reachability before editing the rules. If the matching rule also changes with the address, check whether your rules depend on IP ranges or GeoIP data. Then decide whether to use a domain rule, add a rule for the other address family, or keep the current difference.

Distinguish bypassing proxy handling from a DIRECT rule

[General]
skip-proxy = 192.168.0.0/16

[Rule]
DOMAIN,printer.example.com,DIRECT
FINAL,PROXY

skip-proxy declares destinations that should bypass proxy handling; it isn't an ordinary policy line to insert above [Rule]. Actual bypass behavior also depends on the platform and how traffic is intercepted. The private IP ranges above illustrate syntax; they aren't a ready-made list for an office network. If a specific printer should still be evaluated by the rules but connect directly, the example hostname rule makes it easier to check whether the expected rule matched.

Don't add a bypass covering a large range just because one device can't connect. An organization may use private addresses for multiple isolated services, and guest networks may block direct device-to-device connections. Expanding the range won't remove network-level isolation, but it can change how other destinations are handled. First determine whether you need to target one hostname or an entire IP range, then choose whether to make the change in the general or rules section.

When DNS, connectivity, and routing issues overlap, change only one layer per test. Record the original value and rollback condition, then compare results using a new request on the same network.

When rolling back, restore the original key values instead of simply deleting all general options. The source configuration may rely on settings beyond the defaults, and removing the whole section introduces another set of changes. After restoring it, test both a site that was working and one that failed: the first checks for unintended effects, while the second shows whether the issue cleared. If rollback doesn't fix it, investigate the network or upstream rather than adding more settings.

03 Match by Name

Domain rules: exact match, suffix, and keyword

When routing by name, start with the narrowest condition that meets your needs. Use DOMAIN for a known hostname, DOMAIN-SUFFIX for a domain and its subdomains, and DOMAIN-KEYWORD only when multiple names share a meaningful string that can't be expressed with an exact or suffix match. Broad matching may save lines, but it's harder to troubleshoot false matches, especially when unrelated services have similar names.

TypeMatchesCounterexample
DOMAINOne complete hostname.portal.example.com does not match api.portal.example.com.
DOMAIN-SUFFIXThe domain and its subdomains.otherexample.com is not part of example.com.
DOMAIN-KEYWORDA string appearing anywhere in the name.A keyword isn't a domain boundary, so it may match an unrelated name.

Use a hostname, not the full URL

For a domain rule, use the hostname from the request without the scheme, port, path, or query parameters. For example, for https://portal.example.com:8443/help, the value for a domain rule is portal.example.com. Pasting in the full URL won't limit the rule to that help page; it gives the rule the wrong value to compare. If you need path-based matching, check whether the relevant feature can see the request path rather than trying to simulate it with a domain rule.

[Rule]
DOMAIN,portal.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
DOMAIN-KEYWORD,example-assets,DIRECT
FINAL,DIRECT

In the example, portal.example.com connects directly under the first rule. api.portal.example.com doesn't match the exact rule but does match the suffix rule. Only img.example-assets.example.net matches the keyword rule. Note that if a hostname matches both the second and third rules, the second one takes precedence. Test each condition with a separate target instead of using one hostname that matches several rules and assuming each one worked.

A webpage often uses multiple hostnames

Opening a webpage can trigger requests for the main page, sign-in, APIs, and static assets. The hostname in the address bar is only the entry point; it doesn't prove that every request uses the same domain. Common symptoms include a page loading while sign-in fails to refresh, or the text appearing while images remain blank. Find the hostname of the failed request first, then decide whether it should use the same policy as the entry point. Adding a broad common keyword may catch unrelated services too.

Two hostnames resolving to the same IP address doesn't mean they should use the same domain rule. Services may share addresses and select content by request hostname after the connection is established. Conversely, a single domain can resolve to multiple addresses; domain rules avoid having to maintain that list. When migrating rules, don't replace a verified domain suffix with an IP range you observed today—the two usually cover different sets of requests.

Check whether the client sees a hostname or an IP address

Some connections use an IP address directly. Other apps resolve a hostname themselves before connecting. Whether a domain condition can match depends on whether the client still has the hostname available when it evaluates the request. If you only see an IP address, don't keep adding hostname variations. First confirm what information is available for that request, then choose an appropriate IP rule or test with a new request that you know uses a hostname.

A redirect also changes the match target for the next request. Even if the initial hostname matches as expected, check the hostname after the redirect separately. Record both the entry point and final destination during testing, and distinguish a failure on the first request from one on the next. For sign-in or authorization flows, don't record full URLs containing session parameters; the hostname and path without query values are enough.

Finally, test each rule in reverse with a sibling domain, a similar-looking name, and a genuine subdomain. Keep a suffix rule when the root domain and subdomains should use the same policy; use exact hostnames when services need separate handling. Include targets that should not match in your test cases. This helps catch unrelated services being swept in when someone broadens a suffix or changes a keyword—not just confirm that the intended destination still works.

04 Match by Address and Identifier

IP-CIDR, GEOIP, and USER-AGENT

To route traffic by network boundary, use an IP prefix. To classify by a GeoIP database, use GEOIP. Use USER-AGENT only as an additional condition when the request actually exposes an identifiable client string. Each answers a different question and shouldn't replace a hostname rule when the hostname is known. For critical services, prefer conditions that stay stable across requests and can be tested independently.

Reading IP-CIDR and IP-CIDR6

[Rule]
IP-CIDR,192.0.2.7/32,DIRECT,no-resolve
IP-CIDR,198.51.100.0/24,DIRECT,no-resolve
IP-CIDR6,2001:db8:10::/48,DIRECT,no-resolve
FINAL,PROXY

The number after the prefix slash is the number of address bits used for matching; it isn't a port or a count of addresses. IPv4 /32 matches a single address, while /24 covers a larger range. A single full IPv6 address uses /128. The examples use reserved documentation addresses. Don't copy a prefix for a real configuration just because the first few digits look similar—check the network boundary assigned to you.

An address can match two prefixes at once. Rules still use the first match in configuration order; they don't follow the longest-prefix routing behavior of an operating system's routing table. If a single IP is an exception, place it above the broader range that contains it. After adding an exception, test another address in the same range to confirm that only the intended destination changed and the rest of the network still uses its original policy.

no-resolve means the client won't proactively resolve a hostname to an address to evaluate that IP rule. It doesn't disable DNS for the whole configuration, nor can it provide an IP address for a request that only has a hostname. For a connection with a destination IP already available, compare the address directly. For a connection that has only a hostname at that point, don't assume this IP rule will match. If both types of connection need the same policy, test them separately with hostname and IP targets.

GEOIP matches an address database classification

[Rule]
DOMAIN,api.example.com,PROXY
GEOIP,CN,DIRECT
FINAL,PROXY

GEOIP,CN,DIRECT sends requests directly when the database classifies the destination IP as CN. It doesn't match domain suffixes or check the device's location, account region, or page language. The same hostname may resolve to different addresses on different networks, and changes to IP allocations or the database may also change its classification. Put stable service exceptions above this broad rule so their routing doesn't depend on changes in address classification.

USER-AGENT does not identify an app

[Rule]
USER-AGENT,ExampleReader*,DIRECT
FINAL,PROXY

This rule illustrates matching a visible request identifier that starts with ExampleReader; it doesn't check which app is installed on the device. An app may use different identifiers for different requests, and another app may use the same identifier. If the request doesn't include the identifier, the connection protocol doesn't provide it, or encryption hides the header from the client, this condition can't replace domain or IP rules. Don't use it for authentication or security controls.

To test this kind of rule, prepare two requests to a test service you control: one with a value that clearly matches the condition and another with a different value. If both get the same result, check whether an earlier rule matched and whether the client can see that field when deciding how to route the request. A request using the expected policy doesn't prove the identifier matched; it may have fallen through to a later default rule.

Sometimes an issue comes and goes after switching from a hostname condition to an IP condition. Record the hostname, actual connection IP, address family, and matching rule separately. If the IP changes, check whether the domain is a more stable condition. If the IP stays the same but the GeoIP classification is unexpected, check the database classification and earlier matches. If only the request identifier changes, revisit whether it's visible instead of changing the IP rules too. Change one input per comparison to make the result clear.

05 Decision Order

Global Routing, Policies, and FINAL

Check Global Routing before reading [Rule]. Config routes traffic according to the active configuration's rules, while Proxy and Direct set the overall connection mode. When either of the latter modes is active, don't use ordinary rule order to explain where a request went. The interface and rule actions use different capitalization: the interface shows Proxy and Direct; rules use PROXY and DIRECT.

ModeTraffic handlingHow to test
ConfigUses the active configuration's rules.Check matching rules, exceptions, and the default policy.
ProxyRoutes all intercepted traffic through the proxy.Briefly test whether the selected upstream is reachable.
DirectConnects all intercepted traffic directly.Briefly compare direct connectivity on the current network.

Understand the policy before judging the connection

PROXY means the request should use a proxy upstream; it doesn't mean the upstream is connected. If a request times out, check the selected server and the route to the destination. DIRECT means connecting to the destination directly, but the current network may not allow it, and DNS can still fail. REJECT denies the matching request; the app may show a connection error or retry it. A policy name isn't the final connection status, and not every failure means a rule failed to match.

To distinguish an upstream issue from a rule issue, make a new request to a permitted test destination using Proxy and then Direct, then switch back to Config to verify the match. These overall modes are useful for narrowing down a problem, not as a long-term replacement for configuration. For everyday use, see the guide to Global Routing modes.

Rules match top to bottom; broad rules don't yield automatically

[Rule]
DOMAIN,metrics.example.com,REJECT
DOMAIN,portal.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
GEOIP,CN,DIRECT
FINAL,DIRECT

This snippet puts two exact-match exceptions before a suffix rule. If you move the suffix rule to the top, it will catch both exceptions first; a more specific rule placed later doesn't take priority. Apply the same logic to GeoIP rules: if a hostname already matches an earlier suffix rule, don't use its IP classification to explain the policy for the same request. See rule priority and FINAL for more examples.

Use FINAL to handle destinations not listed above

FINAL takes a policy directly, with no domain or IP parameter, and belongs at the end of the list. FINAL,DIRECT sends unlisted destinations directly. FINAL,PROXY sends everything else through the existing proxy, so consider how much traffic would be affected if the upstream becomes unavailable. Don't put the fallback before an exception or add multiple FINAL rules to express different conditions; write those conditions above the fallback.

Changing the default policy affects every request that wasn't matched by an earlier rule, not just the site you're currently visiting. Test a destination that definitely meets none of the preceding conditions and confirm that it matches FINAL. If earlier rules use GeoIP or keywords, don't assume a domain will fall through just because you can't see its name in the file; a broader condition may catch it.

Decision order: Check the mode and active configuration → find the first match from top to bottom → read its policy → check the connection result. Don't infer the first three steps from the final connection result.

Before changing rules, write down the expected first match for each test case: an exact exception, a destination that matches only a broad condition, and a destination that should fall through to the default. If two conditions assign conflicting policies to the same destination, decide which exception should take precedence and place the narrower rule above the broader one. If the test differs from your expectation, first check that you're looking at the same request rather than immediately moving rules again.

06 Address Mapping

Host: Set a resolution result without changing the request hostname

[Host] specifies how a hostname resolves in the configuration. A common use is to point an existing name temporarily at a specified IP in a test network you manage, so you can check the same service on different instances. This isn't a routing policy or a way to redirect a browser to another URL. Before changing an address in this section, note the original address, who manages the target instance, and keep a copy that lets you restore the original resolution behavior.

What a mapping does—and what a rule does

[Host]
lab.example.com = 192.0.2.18

[Rule]
DOMAIN,lab.example.com,DIRECT
FINAL,PROXY

The example uses reserved addresses, not a reachable test server. For DNS resolution handled by this configuration with the Host mapping applied, the first section specifies the IP used for the connection. If the request still targets lab.example.com by name, the second section can select a policy based on that hostname. Don't put the IP on the right side into a DOMAIN parameter; use an appropriate IP rule to match by address.

Adding a mapping usually doesn't change the service name used in the request to the IP on the right. For HTTPS, the instance receiving the connection still needs to provide a valid certificate and the right site for the original hostname. If the certificate doesn't match, the relationship between the hostname and target instance needs fixing; switching between direct and proxy or disabling certificate validation won't prove the mapping works. First confirm that the target instance serves the expected site under the original hostname.

Find out where DNS resolution happens

Whether a request uses a fixed mapping depends on whether DNS resolution passes through that layer. Some apps use cached results; some connections may send the hostname to the upstream for resolution. Don't assume that adding a local address will affect every app, upstream, and network. If the same domain connects to different IPs under two policies, first compare where resolution occurs. Then decide whether to fix the mapping, change the test mode, or limit the expected behavior to local use.

To test, start with a copy that changes only one hostname. First make a request without the mapping and record the destination IP and service response. Enable the mapping, establish a new connection, and compare the result. If the page still shows the previous content, that alone doesn't prove the mapping failed; the page may be cached locally, or the connection may have been reused. Where possible, compare the actual connection IP with the server logs, and use a read-only request that doesn't modify data.

Handle multiple addresses, caching, and rollback

A hostname may normally resolve to several IP addresses so a service can switch between networks or instances. Pinning it to one IP removes that choice; if the instance is maintained or its address changes, an old mapping can cause failures. For temporary testing, use one test hostname and one test configuration, and don't copy the temporary mapping into your everyday configuration. If the service returns different addresses by region or network, specify which networks are expected to work.

If the address doesn't change after an edit, first check the hostname spelling and that you're using the right configuration copy. Make sure you aren't visiting a different hostname after a redirect. Then close existing connections and check whether the app uses its own DNS result. If the address did change but the site still won't open, move on from rule matching to IP reachability, the service listener, and certificate checks. Adding more mappings at this point usually introduces more variables without explaining what the first one did.

To roll back, remove the single mapping from the test copy or switch back to the original configuration, then make a new request. Verify separately that the destination IP has returned to its original value and that the original rule policy still matches.

Before using Host as a long-term setting, have an administrator confirm that the mapping between addresses and service names can be maintained, and document how to restore it if it stops working. Don't pin a server hostname from a service provider's subscription to an IP just to work around a temporary DNS failure; the provider may change its addresses. First check the existing information and network, and record resolution and connectivity as separate results.

07 Request URLs

URL Rewrite: Match paths and verify redirects

[URL Rewrite] matches visible request URLs and applies an action. It can target a specific path more precisely than a domain rule, but only when the request URL is available at that stage of processing. To route a domain directly or through a proxy, use [Rule]. To assign an address to a test instance, use [Host]. Don't use rewriting as a substitute for either function.

Start with an exact expression on a test site you control

[URL Rewrite]
^http://docs\.example\.com/old-help$ http://docs.example.com/help 302

This example uses the order “match expression, destination URL, action,” separated by spaces rather than commas. It returns a temporary redirect to a new path only when the client can handle the request and the original URL matches exactly. The reserved domain illustrates the syntax and isn't a real page. For testing, replace it with a hostname you control and start with a read-only request that contains no sensitive information; don't test with sign-in, payment, or form submissions.

The leading ^ anchors the match to the start of the string, and the trailing $ anchors it to the end. In the hostname, \. means a literal dot. An unescaped dot has a different meaning in the expression and may match similar-looking hostnames. The example also requires plain HTTP and a specific path; other protocols, a trailing slash, query parameters, and different paths aren't covered by this rule.

Distinguish the redirect from routing to the new URL

After receiving a redirect, the client sends a new request to the destination URL. Rewriting the first request doesn't guarantee that the next one will load; the new URL still needs to resolve, match a policy, and connect successfully. If the entry point shows a redirect but the page fails to load, first confirm that the new path exists and the request reached the expected hostname, then check which rule matched the follow-up request. Analyze the two requests separately.

For testing, prefer temporary redirects so a permanent redirect doesn't interfere with later comparisons; keep client-side caching in mind even then. Before broadening the match, check whether the destination URL still matches the original expression. Otherwise it may redirect to itself or form a loop with another rule. The easiest setup to audit is one where the old and new paths are distinct and you can make a fresh request to each.

Don't broaden an expression if the path isn't visible

For HTTPS, the path and query information usually can't be obtained from the visible destination domain alone. A domain matching DOMAIN doesn't mean URL Rewrite can see the request path. A successful plain HTTP test also doesn't generalize to arbitrary encrypted connections. If the complete request URL isn't visible in your environment, don't expand an exact path expression to an entire domain and hope it works. For sites you manage, configure the redirect on the server instead.

A browser may upgrade the protocol automatically, a site may redirect on its own, or an app may send the request another way. The client may no longer see the URL you entered. Check the actual protocol and path before comparing them with the expression. Your test server's logs can help show whether it received the old path and whether the redirect came from the client or server. Don't copy URLs containing credentials, session parameters, or user identifiers into test records.

Test at least three requests: the old path that should redirect, a nearby path that shouldn't, and the redirect destination. They test for a match, false positives, and redirect loops, respectively.

To undo the change, disable the rewrite or switch back to the original configuration, then check both the old and destination URLs. If the app retains a previous redirect, verify in a new session instead of adding a reverse redirect. For handoff, document the expression's scope, who controls the destination, and the expected response. “The page works” doesn't say which layer handled the request. Once the server migration is complete, remove the temporary client-side rewrite to avoid confusion later.

08 Verification and Rollback

Common Rule Patterns and Troubleshooting

A useful starting point is to list a few explicit exceptions, add the domain and IP ranges you actually need to cover, and then set a default for everything else. Starting with narrow rules makes it easier to identify what changed a connection if something goes wrong, instead of guessing through a long list of overlapping rules. The snippets below are for reference and practice only. Replace the domains and addresses with destinations you're authorized to test, and use a server from a subscription you've already imported or a server you manage.

Combine exact-match DIRECT exceptions with a suffix policy

[Rule]
DOMAIN,office.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
IP-CIDR,192.0.2.0/24,DIRECT,no-resolve
FINAL,DIRECT

Don't test just one destination. Visit the exact exception first, then another hostname under the same domain that isn't listed, to confirm the suffix rule still matches. Next, test the IP condition with a request that has a destination IP but no hostname, then try a destination outside all the preceding ranges. Three policies here use DIRECT, so a site loading successfully won't tell you which line handled it. Check the actual match information and use carefully chosen test targets.

Choose the next step based on the symptoms

If every destination suddenly uses the same policy, start with Global Routing and the active configuration. If only requests under one suffix fail, look for an exception caught by an earlier rule. If the logs show the right policy but the connection fails, check the network path for that connection. Connectivity Test can check whether the selected server is reachable, but it doesn't prove which rule matched a particular site or that its page loaded completely.

What you seeNext stepWhat to check
Expected rule did not matchConfirm the request target and active configuration.Routing mode, actual hostname or IP, and the first earlier match.
Rule matched, but request timed outCheck the network path for the selected policy.Destination resolution, direct reachability, or the selected upstream.
Only some requests failIsolate page dependencies or follow-up requests.Check whether sign-in, APIs, images, and the entry point use different hostnames.

For each troubleshooting round, keep a comparison request: on the same network and through the same upstream, make a request that previously worked. If it fails too, the change may have affected more than the new rule. If it works while the target fails, compare whether they use the same policy and DNS path. Record the results before switching networks. Changing the network and rules in the same test makes it hard to tell which change fixed the issue.

Keep reusable test notes

Keep a brief record of the active configuration name, routing mode, test destination, expected rule, actual rule, and connection result. If a redirect leads to a failure, record the hostname of the follow-up request separately. These details are more useful than saving an entire raw log, and help you identify which cases to retest if you need to switch back to an older configuration. Before sharing notes, remove subscription URLs, private server details, and session data from requests.

If results change after a subscription refresh while the policy stays the same, try testing again with a server you've already verified. A change to the proxy upstream and an update to the configuration file are separate events; refreshing a subscription doesn't mean the rule order changed. This official manual does not provide or recommend proxy servers or subscriptions. A one-time app purchase is not a network service plan; connection details come from a service provider you already use or a server you manage.

Configuration FAQs

Why do some destinations keep their previous policy after I change FINAL?

Earlier suffix, IP, or GeoIP rules may already match those destinations. Check the first matching rule for the actual request and test the fallback with a destination that truly matches none of the earlier conditions. You don't need to remove every earlier rule just to prove the fallback works.

Why does the same configuration behave differently on another device?

First check whether both devices use the same network, selected upstream, active configuration, and routing mode, then compare the actual request hostname or IP. For download options, device versions, or system requirements, see the downloads for all platforms and its FAQ. If you haven't imported a configuration on the new device yet, follow the quick start guide to verify your first connection.

Once everything works again, merge the smallest verified changes from the test copy into your everyday configuration, then retest the exceptions, ordinary destinations, and fallback. If the issue returns after merging, check whether the everyday configuration has an earlier rule that wasn't in the test copy. Don't replace the original configuration with the entire test file; it may contain settings needed only on your work network or other devices.

Shadowrocket Downloads for All Platforms