如何使用socat解复用udp流

问题描述

我有多个节点(N1,N2)在端口9393上将UDP流发送到单个节点(A)。 我可以使用下面的socat命令将流公平地重定向到唯一的PORTS

on A:
  socat udp-l:9393,reuseaddr,range=<N1ip>/32,udp:some-other-host-x:19393
  socat udp-l:9393,range=<N2ip>/32,udp:some-other-host-y:29393

然后可以使用类似的命令

从x,y与这些流进行对话
 on node-x:  socat udp-l:19393 -
 on node-y:  socat udp-l:29393 -

我希望将其更多地用作“服务器模型”,而不仅仅是重定向,因此请阻止“ other-host- *”的任何IP以使其灵活并可以连接任何主机。 所以任何客户都可以说-

 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)

未获得任何UDP双向隧道命令。有没有更简单的解复用UDP流的解决方案?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)