Sniffing
Inbounds | V2Fly.org
- Inbounds configuration
- Enables sniffing on TCP connection.
- Target domain will be overridden to the one carried by the connection, if the connection is HTTP or HTTPS. Use this if websites won’t work.
"sniffing": {
  "enabled": true,
  "destOverride": [
    "http",
    "tls"
  ]
}
dokodemo-door UDP/TCP Port Mapping
Dokodemo-door | V2Fly.org
- Inbounds protocol
- Forward traffic on the specified port on the client to the specified port on the other side
- Routing + blackhole works without further work on the server config
"inbounds": [
  {
    "port": 51820,
    "listen": "0.0.0.0",
    "protocol": "dokodemo-door",
    "settings": {
      "address": "127.0.0.1",
      "port": 51820,
      "network": "udp"
    }
  }
]
HTTP Host Header & Path
For WebSocket
WebSocket | V2Fly.org
"streamSettings": {
  "network": "ws",
  "wsSettings": {
    "headers": {
      "Host": "www.youtube.com"
    },
    "path": "/vmess-ws"
  }
}
For HTTP/2
HTTP/2 | V2Fly.org
"streamSettings": {
  "network": "h2",
  "httpSettings": {
    "host": "www.youtube.com",
    "path": "/vless-h2"
  }
}
TLS & SNI