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
    • Environment variables
    • DNS Server
    • Routing
    • Policy
    • Inbounds
    • Outbounds
    • Transport
    • Remote control API
    • Stats
    • Reverse Proxy
    • Multiple config
    • "Fake" DNS server
    • Browserforwarder
    • Observatory
  • Protocols

    • Blackhole
    • DNS
    • Dokodemo-door
    • Freedom
    • HTTP
    • Socks
    • VMess
    • Shadowsocks
    • Trojan
    • VLESS
    • Loopback
    • Hysteria2
  • Transport

    • TCP
    • mKCP
    • WebSocket
    • HTTP/2
    • QUIC
    • DomainSocket
    • gRPC
    • Hysteria2
  • Service

    • Stats
    • Policy
      • Policy
      • SystemPolicyObject
      • StatsObject
      • PolicyObject
      • TimeoutPolicyObject
      • SecondObject
      • PolicyStatsObject
      • BufferPolicyObject
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager

Policy

  • Name: policy
  • Type: Service
  • ID: service.policy

Policy

system: SystemPolicyObject

The system level policies that determine the global level policies applied everywhere.

level: map of PolicyObject

The level based policy.

SystemPolicyObject

stats: StatsObject

The stats settings.

StatsObject

inboundUplink: bool

Whether the upload data count from inbound should be recorded.

inboundDownlink: bool

Whether the download data count from inbound should be recorded.

outboundUplink: bool

Whether the upload data count from outbound should be recorded.

outboundDownlink: bool

Whether the download data count from outbound should be recorded.

PolicyObject

timeout: TimeoutPolicyObject

stats: PolicyStatsObject

buffer: BufferPolicyObject

TimeoutPolicyObject

handshake: SecondObject

connectionIdle: SecondObject

uplinkOnly: SecondObject

downlinkOnly: SecondObject

SecondObject

value: number

The time in second.

PolicyStatsObject

userUplink: bool

Whether the user upload data count should be recorded.

userDownlink: bool

Whether the user download data count should be recorded.

BufferPolicyObject

connection: number

Buffer size per connection, in bytes. -1 for unlimited buffer.

Edit this page on GitHub
Last Updated:
Contributors: Shelikhoo, Arınç ÜNAL
Prev
Stats
Next
Browser Forwarder