VXVX Docs

Socket

SocketConfig

Proto: protos/proto/vx/transport/dlhelper.proto

SocketConfig is set on TransportConfig.socket and MultiProxyInboundConfig.socket.

SocketConfig

mark
uint32

SO_MARK (set when non-zero)

tfo

TCP Fast Open; see TCPFastOpenState

tproxy

Transparent proxy mode; see TProxyMode

receiveOriginalDestAddress
bool

UDP: enable IP_RECVORIGDSTADDR to receive the original destination address

bindAddress
bytes

Bind local address (Linux only)

bindPort
uint32

Bind local port (used with bindAddress)

acceptProxyProtocol
bool

Accept PROXY protocol v1/v2

tcpKeepAliveInterval
int32

TCP keepalive probe interval (seconds)

tcpKeepAliveIdle
int32

TCP keepalive idle time (seconds)

tfoQueueLength
uint32

TFO queue length

bindToDevice
uint32

Bind to network interface index

rxBufSize
int64

Receive socket buffer size (bytes)

txBufSize
int64

Send socket buffer size (bytes)

forceBufSize
bool

Force application of rxBufSize / txBufSize

localAddr4
string

Outbound IPv4 local address (dial / UDP listen)

localAddr6
string

Outbound IPv6 local address

dialTimeout
uint32

Dial timeout override (seconds)

TCPFastOpenState

AsIs
0

Keep the system TFO setting unchanged

Enable
1

Explicitly enable TFO

Disable
2

Explicitly disable TFO

TProxyMode

Off
0

Disable transparent proxy

TProxy
1

TProxy mode

Redirect
2

Redirect mode

{
  "transport": {
    "socket": {
      "tfo": "Enable",
      "tcpKeepAliveIdle": 60
    },
    "tcp": {}
  }
}

Comments