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
      • Supported Proxy Protocol
      • SniffingObject
    • 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
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager
    • File System Storage

Inbounds

inbound

{
  "protocol":"vmess",
  "settings":{},
  "port":"",
  "listen":"",
  "tag":"",
  "sniffing":{},
  "streamSettings":{}
}

protocol: name of <inbound>

The name of the inbound proxy protocol.

settings: settings of <inbound>

The settings for the inbound proxy protocol.

port: string

The listening port for the inbound.

It can be "443" or "20-21" or "22,3389" .

listen: string

The listening IP address for the inbound.

tag: string

The Tag of the inbound. This is used as an identifier for outbounds.

sniffing: SniffingObject

The sniffing settings for the inbound. It allows the connection to be routed based on its content and metadata.

streamSettings: StreamObject

The stream settings for the inbound. This determine how the protocol data is transferred.

Supported Proxy Protocol

  • SOCKS
  • VMess
  • VLite
  • Shadowsocks
  • HTTP
  • Dokodemo
  • Trojan
  • VLESS

SniffingObject

enabled: true | false

Whether to enable traffic detection.

destOverride: [ string ]

When traffic is of the specified type, the destination of the current connection will be overridden with the destination included in the traffic.

The fakedns+others setting will prioritize FakeDNS virtual DNS server matching. If the IP address is within the IP address range of the virtual DNS server but no corresponding domain name record is found, the matching results of http and tls are used. This option is only valid when metadataOnly is false.

metadataOnly: true | false

Whether to use only metadata to detect the destination address without intercepting the traffic content. Only the metadata traffic destination detection module will be activated.

If using only metadata to detect the destination address is turned off, the client must send data before the proxy server actually establishes a connection. This behavior is incompatible with protocols that require the server to initiate the first message, such as SMTP.

Edit this page on GitHub
Last Updated:
Contributors: Shelikhoo, 秋のかえで, Arınç ÜNAL
Prev
Configuration File Format (Draft)
Next
Outbounds