V2Fly.orgV2Fly.org
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
  • Config Reference

    • Configuration File Format (Draft)
    • Inbounds
    • Outbounds
    • Proxy Protocol
    • Stream
    • Service
    • DNS
    • Router
      • RuleObject
      • BalancingRuleObject
    • Geo
  • Proxy Protocol

    • Blackhole
    • DNS
    • Dokodemo
    • Freedom
    • HTTP
    • Socks
    • VMess
    • VLite
    • Shadowsocks
    • Shadowsocks2022
    • Trojan
    • Hysteria2
    • VLESS
    • Loopback
  • Stream Transport Protocol

    • TCP
    • WebSocket
    • KCP(mKCP)
    • gRPC
    • QUIC
    • Meek
    • HTTPUpgrade
    • Hysteria2
    • mekya
  • Service

    • Stats
    • Policy
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager
    • File System Storage

Router

service.router

{
  "domainStrategy":"AsIs",
  "rule":[],
  "balancingRule":[]
}

domainStrategy: AsIs | UseIp | IpIfNonMatch | IpOnDemand

rule: [ RuleObject ]

balancingRule: [ BalancingRuleObject ]

RuleObject

tag: string

balancingTag: string

domain: string

geoip :

portList: string

networks: string

sourceGeoip

sourcePortList: [ string ]

userEmail: [ string ]

inboundTag: [ string ]

protocol: [ string ]

domainMatcher: string

geoDomain :

BalancingRuleObject

Edit this page on GitHub
Last Updated:
Contributors: Shelikhoo, Arınç ÜNAL
Prev
DNS
Next
Geo