Global proxy sends everything through the proxy, which actually slows down local sites. The goal of routing is: direct for domestic, proxy for foreign, block ads.

Built-in presets are easiest

v2rayN ships rule sets based on geoip / geosite. Under Settings → Routing settings, set the domain-resolution strategy to IPIfNonMatch, then enable a “bypass mainland”-style preset group. For most people that's enough.

SponsoredWhere does the subscription link come from?Our partner provider gives you 1 GB of high-speed Hong Kong data at signup — import it in one click.Get high-speed nodes

Three destinations for a rule

  • proxy: through the proxy, e.g. geosite:geolocation-!cn.
  • direct: no proxy, e.g. geosite:cn, geoip:cn, geoip:private.
  • block: drop it, e.g. geosite:category-ads-all for ads.

Order matters

Routing matches top to bottom and stops at the first hit. So put “block ads” and “direct for private addresses” near the top, and broad catch-all rules last.

Restart the proxy after editing rules for them to take effect. If a domestic site still goes through the proxy, its CDN is probably overseas — add a manual direct rule for that domain.