V2Ray System Proxy, Global, or Bypass Mainland China? A Guide to the Three Routing Modes

Learn how system proxy settings work with routing modes, compare Global, Bypass Mainland China, and Rules Only, and find a practical setup for everyday use.

At a glance

The system proxy determines whether an app sends connections to the local proxy listener; the routing mode determines which outbound route the core uses. For everyday browsing, start with “Set system proxy automatically + Bypass Mainland China.” Switch to Global briefly when troubleshooting routing, then fine-tune custom rules and the fallback route as needed. This guide uses desktop v2rayN and also covers how the setup differs on Android.

1. System Proxy and Routing: Two Settings to Understand

“I selected Global, so why are some apps still connecting directly?” Usually, the issue isn’t the server protocol—the connection never reached the core. v2rayN is a graphical client that manages configurations, starts the core, and controls the system proxy. The V2Ray or Xray core handles local inbound connections, routing decisions, and outbound connections. VMess and VLESS profiles in a subscription describe how to connect to a remote server; they don’t automatically route traffic from every app on your system.

The inbound layer: where connections go first

Setting
System proxy or in-app proxy
Example address
127.0.0.1
Example port
10808; check the actual listening port
Scope
Apps and connections that use this proxy setting

The port is just an example, not a universal default. Also check whether the listener accepts HTTP, SOCKS, or both.

The routing layer: where connections go next

Setting
Client routing selection and routing rules
Direct outbound
Connects to the destination over your local network
Proxy outbound
Connects to the destination through the selected remote profile
Block outbound
Rejects connections that match specified rules

Only connections that reach the relevant core inbound are handled by its routing rules.

For example, a browser that follows the system proxy sends requests to the local listener, then the core selects an outbound route based on the domain, destination IP, or inbound tag. Another app may use its own networking stack and ignore the system proxy, connecting directly instead. Switching between Global and Bypass Mainland China won’t change how that app handles its connections.

2. Global, Bypass Mainland China, or Rules Only: Which Should You Choose?

Mode names can vary between clients and routing templates. “Global” and “Bypass Mainland China” are common preset options. Here, “Rules Only” means routing based on custom rules evaluated one by one; not every client offers a button with that exact name. Don’t rely on the mode name alone—check the rule order, resource files, and fallback route.

Bypass Mainland China

Recommended

Common templates send mainland China domains and IPs directly, routing other destinations through the proxy; private addresses are usually routed directly as well. It’s a practical starting point for everyday use, but geographic classification doesn’t determine where a service is based. Add exceptions for sites that are classified incorrectly.

Best for: everyday browsing across sites in and outside mainland China, with less need to switch modes manually.

Global

Routes all connections that reach the core through the proxy, making it useful for temporarily ruling out domain classification and split-routing rules. Whether local network exceptions are preserved depends on the implementation—don’t assume printers or intranet services will remain accessible.

Best for: quick troubleshooting to check whether a destination is using the wrong route because of a routing rule.

Rules Only

Specify direct, proxy, and block conditions, then evaluate them in order. Connections that match no rule use the final fallback. This does not automatically mean “proxy only the destinations listed in the rules”; that behavior occurs only when the fallback is set to direct.

Best for: precise routing by service domain, inbound, or other supported criteria, when you’re prepared to maintain the rules.

StrategyTypical traffic flowWhat to check
Bypass Mainland ChinaMainland China destinations direct; everything else proxiedRule resources, DNS, site exceptions
GlobalAll connections reaching the core use the proxyInbound coverage, remote server availability, local network exceptions
Rules OnlyThe first matching rule determines the routeRule order, outbound tags, fallback for unmatched connections

Global routing isn’t necessarily faster, and it won’t improve your server’s bandwidth or network path. Routing traffic for services in mainland China through a remote server and back can add connection overhead or trigger alerts about logins from another region. Bypass Mainland China isn’t a perfect geographic filter either: a domain may use a CDN spanning multiple regions, and domain-based and IP-based classifications may differ.

3. Everyday v2rayN Setup: Enable the Inbound, Then Choose a Route

The steps below use the common Chinese-language v2rayN interface. Control locations can differ between desktop releases and the classic interface, so look for the menu labels. If your version doesn’t have a routing option with the same name, inspect the routing rules instead of choosing a similarly named mode. For initial testing, leave TUN off to avoid changing multiple variables at once.

  1. Check the active profile

    Select an imported profile in the server list on the main screen, right-click it, and choose “Set as active server.” A successful subscription update only means the profile was retrieved; it doesn’t confirm the remote connection works. First, make sure the core starts normally and the logs don’t show an immediate shutdown error.

  2. Enable the system proxy

    At the bottom of the main screen, select “System proxy” → “Set system proxy automatically.” Then check that the proxy address recorded in your system matches the client’s inbound listener, for example 127.0.0.1:10808. Replace the example port with the one actually in use.

  3. Choose a routing mode

    At the bottom of the main screen, open “Routing” and choose a preset that bypasses mainland China. Common names include “Bypass Mainland China” and “Bypass Mainland China (Whitelist).” If only custom entries are available, first check that they include direct routes for mainland China domains and IPs, along with a proxy fallback.

  4. Test each destination

    In the same browser, start a new connection to a service you use in mainland China, a destination that requires a proxy, and a local network service you actually use. Check the logs to see which outbound route was selected; a page loading in the browser doesn’t prove the connection went through the proxy.

  5. Save your setup and exit

    Note the working combination of system proxy, routing, and DNS settings. To stop, select “System proxy” → “Clear system proxy” before exiting. If you configured an in-app proxy manually, restore that setting separately so the app doesn’t keep trying to connect to a closed local port.

On Android, v2rayNG uses the Xray core, while v2flyNG uses the V2Fly core. Traffic is usually routed into the client through Android’s VPN permission; this is different from changing the system HTTP proxy on desktop. Check that the app is included in the VPN scope, then review the routing rules, especially any per-app exclusions. Don’t follow the desktop “Set system proxy automatically” steps on Android.

4. Rule Order and DNS: Why Routing Results Can Differ

Common routing rules in V2Ray and Xray are evaluated in order; the first matching rule determines the outbound route. More specific exceptions usually need to come before broad categories. If you want to proxy a mainland China domain but place it after a broad direct rule for mainland China, the earlier rule may already match, preventing the exception from taking effect.

For example, an app may resolve a domain locally, then connect to the destination IP over SOCKS. Don’t assume the core can always route the connection by the original domain. Sniffing can provide domain information for some traffic, but it can’t identify every protocol. Browser Secure DNS, system DNS resolution, and core DNS are separate settings. After changing one, check the logs and test an actual request.

5. Test Mode Changes: Change One Variable at a Time

If a destination won’t open in Bypass Mainland China but works in Global, keep the active profile, app, and destination the same and change only the routing mode. If Global works, first check whether the destination used a direct route in the original mode, matched the wrong category, or resolved to different IPs over the direct and proxy routes. This narrows down the cause; one successful test alone doesn’t prove the rules are at fault.

  1. Record the baseline: Note the current system proxy state, active profile, and routing mode. Check that the logs show no port-binding errors.
  2. Start a new connection: Close and reopen the destination page, or restart the test app if needed. Existing long-lived connections may not switch routes immediately when you change modes.
  3. Compare outbound routes: If the logs show outbound tags, distinguish direct from proxy routes. Tag names depend on the configuration, so don’t rely on a particular word.
  4. Restore the original mode, then add an exception: Switch back to the original routing mode, add a more specific rule for the domain that used the wrong route, and retest with a new connection.

If both modes fail, go back to troubleshooting the inbound and remote connection. Interpret connection refused in context: if the target is 127.0.0.1:10808, the local process may not be listening or the port may be wrong. If the target is a remote address, check the remote service and network reachability. Don’t change the port, protocol, DNS, and routing all at once just because you see one error message.

6. Common Questions About System Proxy and Routing Modes

I selected Global. Why is one app still using the same route?

First check whether the app follows the system proxy. If it supports manual proxy settings, enter the client’s actual local address, port, and proxy type. Consider TUN for apps that don’t support a proxy. Start a new connection when testing; don’t use an existing session to decide whether the mode is working.

Why can’t I access local network devices after selecting Bypass Mainland China?

First check the system proxy exclusions and the core’s direct-routing rules for private IPs. Then confirm the device’s actual address, for example 192.168.1.20. Local network domains and IP addresses may take different routes. If TUN is enabled, also check route exclusions for the relevant subnet.

Why can’t my browser connect after I close the client?

Your system may still have a proxy setting that points to a local port. Reopen v2rayN, select “System proxy” → “Clear system proxy,” and then exit. Also check whether the browser has a manually configured proxy; restore that setting separately in the browser.

Will updating my subscription automatically fix routing rules?

A standard server subscription mainly updates connection parameters; don’t assume it also updates local routing, rule resources, or DNS. First check whether the active server changed, then review the rules in routing settings. If the subscription itself failed to update, also check the network path used for subscription updates.

Does “Rules Only” mean there’s no connection if nothing matches?

No. Unmatched connections use the default outbound or an explicit fallback rule. They may go direct, through the proxy, or be blocked. Check the final rule in routing settings and confirm which outbound route its tag points to. Don’t infer the result from the mode name alone.

Download v2rayNChoose a client for your platform