Skip to content
On this page
On this page

Routing

For users2.2.02.1.0Updated

By default all traffic goes through the tunnel. What bypasses the VPN, what goes through it and what is blocked is decided by the provider's rules and your rule sets in Settings → Routing. Next to it is the “TLS fragmentation” switch for networks that block servers by name.

#How traffic goes by default

Wrabbit has no routing policy of its own: anything not matched by rules goes through the server. Routes come from three sources only:

  1. The provider's full Xray JSON — for servers that came in the subscription as a ready config. Its rules and DNS run as is.
  2. The subscription's set — the Happ routing profile the provider serves with the subscription. It applies only to that subscription's servers from links.
  3. Your own sets — what you added yourself. They apply to all servers, including those with a full JSON.

Besides rules, the local network and, as a rule, Apple's 17.0.0.0/8 network (push notifications, iMessage, FaceTime) bypass the tunnel. How “Kill Switch” changes this is on Kill Switch.

#Rule sets

Open Settings → “Routing”. Each set shows three sections — “Bypass tunnel”, “Through tunnel”, “Blocked” — and has its own switch. Several sets can be on at once.

Where sets come from
SourceWhat's insideHow it updatesEditable
“Subscription”The provider's profile: bypass, via VPN, block, DNSWith the subscriptionNo, can only be turned off
“Manual”Your domains and IPv4 networks that bypass the tunnelDoesn't updateYes
“Link”A text list of IPv4 networks at an https://… address — bypassing the tunnelWith “Refresh” in the set's menuYes
Profile from a link 2.2.0Bypass, via VPN and block from …://routing/… (see below)Loaded once; marked “Manual” in the listOnly bypass domains and IPs; replace “via VPN” and “block” rules with a new link using the same name

#How to add your own set

  1. #Open routing

    Settings → “Routing” → “Add set”. Choose “Manual” or “Link”.

  2. #List the domains

    The “Domains (bypass, one per line)” field. A bare domain means the domain with all subdomains (domain:). You can also use full: — exactly this address, keyword: and regexp:. Lines starting with # are comments.

    Domains (bypass, one per line)text
    # banks and public services go direct
    sberbank.ru
    domain:gosuslugi.ru
    full:www.example.ru
    keyword:yandex
    
  3. #List the IPv4 networks

    The “IP addresses (bypass, CIDR)” field. Separators are a line break, comma, space or ;. A single IP becomes /32. IPv6 isn't supported in a manual set.

    IP addresses (bypass, CIDR)text
    77.88.0.0/18, 87.250.224.0/19
    5.255.255.5
    

    For a “Link” set, give the address of a text list of IPv4 networks instead of the fields. To update it, use “Refresh” in the set's menu.

  4. #Save and turn it on

    Tap “Done” and make sure the set's switch is on. The rules take effect without reconnecting.

#Rule order

The first matching rule wins. For servers from links the order is:

  1. Apps' DNS queries are intercepted and go to the core's DNS module.
  2. Private networks and Apple's 17.0.0.0/8 — direct.
  3. Your sets: “Blocked” first, then “Bypass tunnel”, then “Through tunnel”.
  4. The subscription's set in the same order: block, bypass, through the tunnel.
  5. Everything else — through the server (through the balancer for a server pool).

For a server with a full Xray JSON your sets go to the top of the provider's rules in the same order — block, bypass, through the tunnel — and the provider's template handles the rest.

A ready rule set can come as a link — the same as in Happ. The profile is added as your own set, with no subscription: open the link on the device, paste it on the “Import” screen or scan its QR code.

Link formstext
wrabbit://routing/onadd/<BASE64_PROFILE>
wrabbit://routing/add/<BASE64_PROFILE>
wrabbit://routing/onadd/https://YOUR-DOMAIN/routing.json
  • onadd adds the set and turns it on right away; add adds it turned off.
  • The same forms with happ://routing/… and incy://routing/…, plus ?data=<base64>, …/onadd/<https link> and incy://autorouting/….
  • The profile is JSON in the Happ format, base64 in the link. From an https://… link it is loaded once: https only, up to 512 KB.
  • …://routing/off isn't imported: you turn your own sets off in Settings.

Before adding, the “Routing profile” dialog appears. It shows the set name, a “Direct (bypassing VPN): N · via VPN: N · block: N” line, the “direct” rules themselves with the warning “Traffic to these addresses will bypass the VPN”, the profile's DNS (not carried over to the set), the number of invalid entries skipped and, if a set with this name already exists, that it will be replaced. The buttons are “Add”, “Add and turn on”, “Replace” or “Replace and turn on”.

How to build your own profile link
Profile (Happ format)JSON
{
  "Name": "RU direct",
  "DirectSites": ["domain:gosuslugi.ru", "domain:sberbank.ru", "yandex.ru"],
  "DirectIp": ["77.88.0.0/18", "87.250.224.0/19"],
  "ProxySites": ["domain:youtube.com"],
  "BlockSites": ["domain:doubleclick.net"],
  "BlockIp": []
}

Fields: Name, DirectSites, DirectIp, ProxySites, ProxyIp, BlockSites, BlockIp, and optionally Geoipurl and Geositeurl — the set's own geo files (https only). Write the JSON on one line and encode it in base64:

bash
# macOS (on Linux: base64 -w0)
printf '%s' '<PROFILE_JSON_ONE_LINE>' | base64 | tr -d '\n'

Put the result in place of <BASE64_PROFILE> in wrabbit://routing/onadd/<BASE64_PROFILE>. A long link is easier to hand out as a QR code, or host the JSON at an https://… address and link to it.

Which profile entries are dropped
  • Negations: geoip:!…, !…, geosite with ! — in the core they mean “everything except” and would capture almost all traffic.
  • “Match everything” rules: a one-label domain (ru) or a public suffix (domain:com, domain:co.uk), keyword: shorter than 3 characters, regexp: and keyword: that match an empty string or domains of different zones.
  • In “direct” — 0.0.0.0/0, ::/0 and networks wider than /8 (IPv6 — /16). All “direct” IPv4 networks together may cover at most 1/16 of all addresses, IPv6 at most sixteen /16s; otherwise the profile isn't imported.
  • More than 5000 entries in one list — the profile isn't imported.
  • A bare domain becomes domain:, IPv4-mapped IPv6 (::ffff:a.b.c.d) becomes plain IPv4.

#TLS fragmentation2.2.0

The “TLS fragmentation” switch in Settings — “Helps when your network blocks servers by name”. The client cuts the TLS ClientHello into pieces (tlshello, 100–200 bytes each, with a 10–20 ms pause) so DPI equipment doesn't see the server name in one piece. Off by default.

  • Turn it on if servers won't connect on one network (usually mobile) but work on another. If things get worse, turn it off.
  • Applies to all servers over TCP except Hysteria2. Server list measurements are fragmented the same way.
  • Priority: the fragment= parameter in a server link, if it sets a profile, beats the subscription directive, which beats the switch. fragment=0 doesn't turn fragmentation off: it's the same as a link without the parameter. Parameter forms are in Protocols → Fragmentation.
  • Servers whose provider full JSON has its own fragment outbound or a chain (dialerProxy, proxySettings.tag) are not fragmented: the core doesn't allow them together.
  • 2.1.0 had a “CDN fragmentation” switch for servers behind a CDN only; 2.2.0 doesn't carry its value over — turn the new switch on again.

#When the provider sets routing

The provider sends a Happ profile in the routing subscription header routing. A set with the “Subscription” source then appears in Routing. Most often this sends Russian sites and banks around the tunnel.

Remnawave 2.7.4 and 2.8 → Subscription Settings → customResponseHeadersYAML
routing: happ://routing/onadd/<BASE64_PROFILE>
What bypasses the tunnel at the system level

Explicit “direct” IPv4 networks from your set and the subscription profile (up to 80 networks) are routed around the tunnel by iOS itself — such traffic never enters the VPN. Each network is no wider than /8, all together no more than four /8s, and they don't overlap your “through tunnel” and “block” networks. Domain rules and geo codes work inside the core.

Geo codes (geoip:, geosite:) come from the geo files of the server's subscription or from the default set. A profile from a link with Geoipurl and Geositeurl downloads its own files. On iPhone and iPad a code heavier than 1 MiB (geoip) or 512 KiB (geosite) is replaced with the default set or skipped with a log entry — the tunnel doesn't fail.

Updated November 27, 2026 · Found a mistake? →