Rule-Based Routing on Your Own Nodes | Raven
Frequently asked questions
- Does Raven operate its own proxy servers?
- No. It provides no VPN servers, has no accounts, and does not upload traffic history. Its shipped privacy manifest declares no collected data types and no tracking.
- Where do the routing rules come from?
- From the active source. The Rules tab is read-only — it shows your profile's policy groups and its ordered rules exactly as the source defined them, so it tells you what will match rather than letting you edit it.
- Which profile sources does Raven accept?
- Remote HTTPS subscription URLs and manually entered nodes over HTTP, SOCKS5, Shadowsocks, Trojan, VMess, VLESS, Hysteria2 and TUIC. Clash YAML, JSON and raw subscription bodies are parsed; HTML pages, plain node lists and base64 URI lists are reported as unsupported formats.
- Can I use plain HTTP for a subscription URL?
- Only for a host on your local network — a private IPv4 or IPv6 address, localhost, a .local or .localhost name, or a bare hostname with no dot — and only after you explicitly enable insecure HTTP for that source.
- What happens to my policy-group selections when the profile refreshes?
- Each group keeps your choice if that member still exists in the group after the refresh. A member the provider removed falls back to the group's default, and a routing mode whose policy no longer exists falls back to Rule.
- What stays on my device?
- Profiles, credentials, selections and redacted diagnostics. The app and its packet tunnel share an app group container, and the tunnel accepts only the profile revision it was handed.
The short answer
Raven is an iPhone client for infrastructure you already control: your own proxy nodes and Clash-compatible profile sources. It routes with Rule, Global, or Direct modes over select and URL-test policy groups, and it will not run a profile it has not first validated. It provides no VPN servers, has no accounts, and does not upload traffic history — its shipped privacy manifest declares zero collected data types and no tracking. If you have nothing to point it at, there is nothing to install.
Why the searcher is here
The question behind "private, rule-based routing" is rarely "which app is prettiest." It is: can I run my own routing logic on my phone without handing my traffic history to the company that sells me access?
Those are two different businesses, and the difference shows up in what each one has to have. A provider must know where you connect in order to sell that access. A client needs credentials to be useful and has no reason to keep anything else. So "no servers, no accounts, no traffic history" is not a privacy feature layered on top of a proxy app — it is what the category split allows. Raven is on the provider side of that line and does not cross it.
The second thing behind the query is the part people actually get burned by: rule-based routing is not a toggle, it is a config. Somewhere, on a computer, there is a YAML file with an ordered rule list and policy groups, and the phone has to run that file faithfully or your traffic takes the wrong path. The rest of this page is what running it faithfully actually involves.
What "rule-based routing" means once it is on a phone
Rule mode walks an ordered list and stops at the first match. Raven models the nine match kinds a Clash profile uses — domain, domain suffix, domain keyword, IP CIDR, destination port, network, rule-set, GeoIP, and a final match-all — and renders each rule with its position number, its target policy, and two flags you will actually need: No DNS resolution (the match is made against the destination you already have, not a lookup) and Match all (the catch-all at the end). Policy targets are only three things: Direct, Reject, or a named policy.
Above the rules sit the modes. Rule runs the ordered list. Direct bypasses it. Global sends everything through one named policy — not cosmetic: a Global mode with no valid policy is rejected at the wire-format level, before it can reach the tunnel. Policy groups come in two kinds: select groups you pick from yourself, and automatic groups (URL-test) that measure and pick for you. Your selection survives a refresh if that member is still in the group; if the provider removed it, the choice falls back to the default. And there is no such thing as a partially configured snapshot: a profile is rejected where a select group's members contain duplicates, where the default member is not among them, where a group has no selection, or where a selection names a member the group does not contain.
The Rules tab is deliberately read-only — it shows what your source defined so you can audit the split, rather than letting you edit rules on a phone and then wonder why the desktop config and the phone disagree.
What happens when a rule cannot be honoured
This is the part competitor pages skip. Not every Clash profile can be run as written, and a client that silently drops what it cannot honour is how you end up debugging a leak.
Raven turns the unsupported parts into profile diagnostics attached to the specific path in the config — severity, a code, and the path — surfaced in the Diagnostics tab next to runtime events: Routing Mode Unsupported, DNS Configuration Unavailable, Traffic Sniffing Unavailable, Process Matching Unavailable, Probe Tuning Unavailable, Transport Tuning Unavailable.
Read that list as a contract: sniffing, process matching and tuning knobs are not the executor's own — they come from the proxy core that runs your config, and when it cannot honour one, you are told which. The same honesty extends to resource failures: a rule provider or GeoIP resource that cannot be downloaded, is too large, or does not parse is reported as that specific failure, not as "the refresh failed."
GeoIP data itself is credited in Settings as DB-IP Lite, licensed CC BY 4.0, and Settings also shows the profile revision and the provider status, so the revision you are running is something you can name rather than infer.
What gets rejected before it can publish, and the numbers
A list of hard bounds, every one of them a number you can check your profile against before you add it:
| Limit | Value |
|---|---|
| Profile YAML | 4 MiB |
| Each rule-provider resource | 4 MiB |
| GeoIP database | 8 MiB |
| All resources together | 32 MiB |
| Sources in the catalog | 64 |
| Cached bytes across all sources | 48 MiB |
| Nodes per profile | 1,024 |
| Groups per profile | 256 |
| Rules per profile | 32,768 |
| Members per group / across all groups | 1,024 / 8,192 |
| Profile diagnostics retained | 4,096 |
A profile over any of these does not reach your tunnel, and it does not evict the one already running. When a rule resource on its own crosses the limit, the message says exactly that: it exceeds Raven's safety limit.
Subscription bodies are classified before parsing. A body starting with <!doctype html or
<html is HTML; one starting with { or [ is JSON; lines that all begin with a known node
scheme are a plain URI list, and the same content base64-wrapped is a base64 URI list; a line
beginning with proxies:, proxy-groups:, rules:, rule-providers:, mode: or dns: marks
Clash YAML. HTML and both URI lists are rejected as an unsupported subscription format — the
most common case being a provider's "subscription expired, log in to renew" page. JSON and
unrecognised bodies go to the parser, which either imports or explains.
Refreshes are conditional: the last ETag and Last-Modified are sent, a not modified response
re-validates the cached profile instead of re-downloading it, and due rule resources refresh
independently. Sources are validated on the way in too — HTTPS by default, no credentials embedded
in the URL (https://user:pass@host is refused), and plain HTTP only after you opt in and only
for a local-network host: a private IPv4 or IPv6 address, localhost, a .local or .localhost
name, or a bare hostname with no dot. Manual nodes need a server address with no spaces, a port
between 1 and 65535, and a name that is not "direct" or "reject," which are reserved targets.
How it compares to the obvious alternatives
A provider subscription app does the opposite of what you asked for. It owns the servers, so it knows your destinations, and its "rules" are whatever its panel decided — not a file you can read and diff. Running the same config on a desktop gives you full editing and full visibility, and Raven does not pretend otherwise. What the phone adds is that the config, the credentials and the selections live on the device you carry, and the packet tunnel accepts only the profile revision it was handed.
Where clients differ is what happens when a profile is bad. A failed download or a failed validation leaves the working version running; a failed resource is named; an inconsistent snapshot is not published. That ordering is the difference between "my connection dropped and I am reading logs" and "nothing happened."
What Raven does differently, and what it does not do
Honest by omission: no servers, no accounts, no telemetry system, no uploaded traffic history, and a privacy manifest with an empty collected-data array. The app and its packet tunnel share an app-group container, so the validated snapshot, the credentials and the selections never leave the device. Diagnostics stay local and bounded — the app keeps the 200 most recent events, and events from the extension are spooled to the shared container and drained into that same buffer.
What that buys you: you can audit the rules before they run, and you can name the exact revision you are on. What it costs you, honestly:
- You own the infrastructure. A provider you cannot inspect is a constant you cannot change.
- No server-side fallback. A failed refresh keeps the previous profile running — the right behaviour, but an expired subscription is a silent staleness, not an error. Check the profile revision in Settings if you care.
- Editing rules means editing the source, then refreshing; the phone will not fork the config.
- iOS 17 and later, on iPhone and iPad; the Control Center / Lock Screen connect control needs iOS 18 or later.
- GeoIP is a third-party dataset (DB-IP Lite, CC BY 4.0) — country-level accuracy, not precision.
The decision you can now make
If you already have a Clash-compatible subscription or a handful of nodes you control, and you want rule-based routing you can read on the phone, Raven gives you the routing model, the inspection, and the failure behaviour without handing a provider the map. If you do not have any infrastructure of your own, this is the wrong app — it will sit on your home screen with nothing to activate.
Between those two cases, verify your profile against the limits above first. Check the YAML size, the resource count, the node and rule counts, and the format your subscription URL actually returns. If those are inside the bounds and the body is Clash YAML, the Rules tab will show you exactly how your traffic splits before you ever connect.
Raven is a private, rule-based network client for your own nodes.