AirLane

Policy Tree

v1.0+⏱ 2 min readUpdated

AirLane core abstraction: traffic → classifier → behavior → policy → exit. A four-layer model replacing Clash proxy groups.

The policy tree is what sets AirLane apart from traditional proxy clients: instead of a flat "proxy group + rule list" model, routing is split into layers — traffic, classifier, behavior, policy, exit — each doing exactly one job.

Policy · OverviewPolicy overview: classifiers, behaviors, policy list and exit pools

Policy overview (UI in Chinese)

The four-layer model#

LayerQuestion it answersExamples
TrafficWhat kind of traffic is this?AI services, streaming, gaming, social
ClassifierHow is it recognized?Domain rulesets, process names, ports
BehaviorWhat to do once matched?Route / Direct / Block / Reject
PolicyWhich exit does it take?Bound to an exit pool

Full path of a connection: entry → classified → behavior decided → policy picks a pool → concrete exit → destination.

Classifiers#

ClassifierClassifier editor matching traffic types

Classifiers define what counts as a traffic type

Classifiers sort traffic by domain rulesets (GEOSITE, custom lists), process names, ports or IP ranges. Built-in categories cover AI services, streaming, ads and more.

Behaviors#

BehaviorBehavior editor with Route/Direct/Block/Reject/DNS

Behaviors: Route / Direct / Block / Reject / DNS

What happens to matched traffic: Route (hand to a policy), Direct (bypass proxy), Block (drop silently), Reject (refuse actively), DNS (DNS-level handling only).

Policies & exit pools#

Policy listPolicy list binding traffic types to exit pools

One row = "traffic type → exit pool"

Each policy binds a traffic type to an exit pool. "AI services → US pool" and "Streaming → Germany pool" are two rows. Exit pools support several selector types:

Selector typesExit pool selectors: manual, url-test, load-balance

Selectors: manual, auto url-test, load-balance…

  • Manual: always use the node you picked.
  • URL test: measure latency live, switch to the fastest.
  • Load balance: spread traffic across nodes.
  • Fallback: ordered failover when the primary dies.
vs Clash
Clash proxy groups entangle "which node" with "who chooses". AirLane separates who the traffic is, whether it proxies, and which pool it takes — and every hop is replayable in decision tracing.
Was this doc helpful?
Still stuck? Ask on GitHub