Skip to content

Implement sending UDP payload in TCP? #60

@arinc9

Description

@arinc9

v2ray's vmess outbound creates a TCP stream for each daddr:dport of the UDP packets received on inbound. As we use MPTCP for the redundancy purpose, having the UDP traffic included in that is very useful.

On a client configuration as below, instead of rejecting UDP traffic from the server object, this functionality could kick in instead.

{
  "servers": [
    {
      "name": "tproxy",
      "protocol": "tproxy",
      "mtu": 1500,
      "tcpListeners": [
        {
          "network": "tcp",
          "address": "127.0.0.1:12345"
        }
      ],
      "udpListeners": [
        {
          "network": "udp",
          "address": "127.0.0.1:12345"
        }
      ]
    }
  ],
  "clients": [
    {
      "name": "ss-2022",
      "protocol": "none",
      "mtu": 1500,
      "endpoint": "102.132.169.121:12348",
      "enableTCP": true,
      "multipathTCP": true,
      "psk": ""
    }
  ]
}

Server:

{
  "servers": [
    {
      "name": "ss-2022",
      "protocol": "none",
      "mtu": 1500,
      "tcpListeners": [
        {
          "network": "tcp",
          "address": ":12348",
          "multipath": true
        }
      ],
      "psk": ""
    }
  ],
  "clients": [
    {
      "name": "direct4",
      "protocol": "direct",
      "network": "ip4",
      "enableTCP": true,
      "enableUDP": true,
      "mtu": 1500
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions