v2fly.clbug.comv2fly.clbug.com
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
    • 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
      • Policy
      • SystemPolicyObject
      • StatsObject
      • PolicyObject
      • TimeoutPolicyObject
      • SecondObject
      • PolicyStatsObject
      • BufferPolicyObject
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager
    • File System Storage

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