如何使用socat解复用udp流

如何使用socat解复用udp流,udp,tunneling,socat,Udp,Tunneling,Socat,我有多个节点(N1、N2)将UDP流发送到端口9393处的单个节点(a)。 我可以使用下面的socat命令将流重定向到唯一的端口 on A: socat udp-l:9393,reuseaddr,range=<N1ip>/32, udp:some-other-host-x:19393 socat udp-l:9393,reuseaddr,range=<N2ip>/32, udp:some-other-host-y:29393 我想让它更像是“服务器模型”,而不仅

我有多个节点(N1、N2)将UDP流发送到端口9393处的单个节点(a)。 我可以使用下面的socat命令将流重定向到唯一的端口

on A:
  socat udp-l:9393,reuseaddr,range=<N1ip>/32, udp:some-other-host-x:19393
  socat udp-l:9393,reuseaddr,range=<N2ip>/32, udp:some-other-host-y:29393
我想让它更像是“服务器模型”,而不仅仅是重定向,所以防止任何“其他主机-*”的IP,使其灵活,任何主机都可以连接。 所以任何客户都可以说--

socat A:-(该客户端可以与N1通信)
socat A:-(该客户端可以与N2通信)
未获取任何UDP双向隧道命令。有没有更简单的解决方案来解复用UDP流

 on node-x:  socat udp-l:19393 -
 on node-y:  socat udp-l:29393 -
 socat  A:<unique-port-for-N1> -    (and this client can communicate with N1)
 socat  A:<unique-port-for-N2> -    (and this client can communicate with N2)