AirLane

Rule Syntax

v1.0+⏱ 1 min readUpdated

Match fields for custom rules: domain, domain_suffix, geosite, geoip, process_name, ip_cidr, port, final.

Custom rules live under Rules → Custom, one per line. Each rule = match condition + target classifier. Fields align with sing-box route rules.

Match fields#

FieldMatchesExample
domainExact domainopenai.com
domain_suffixDomain + subdomainsgoogle.com hits *.google.com
domain_keywordKeyword inside domainnetflix
geositeGEOSITE categorygeosite:category-ads-all
geoipIP origingeoip:cn
ip_cidrIP range91.108.56.0/22
process_nameProcess namesteam.exe
portDestination port22
networkProtocoludp, tcp

Examples#

Pin the company intranet to direct:

  • domain_suffix = corp.example.com → classifier "Direct"

Send one game's process through the fast pool:

  • process_name = game.exe → classifier "Gaming"

Fallback#

  • final: where traffic goes when nothing matched — set in the routing profile, usually "default Route" or "default Direct".
No raw JSON needed
UI rules compile into the sing-box core config — you fill fields, AirLane guarantees the syntax. Raw config editing lives under Settings → Routing profiles.
Was this doc helpful?
Still stuck? Ask on GitHub