Hello, Not strictly a CentOS question, but I hope someone can hint me in the right direction ... I have an incoming udp data stream to public interface that I want to duplicate and multipy to three or more destinations on the internal interface. Currently I've managed to put together netcat listener with output to pipe and socat reading from that pipe to a single destination. I hoped I could have more than one socat reader from the pipe, but that does not seem to be the case. So I'm able to only redirect stream to a single destination on lan. I'd also like to avoid this mess of shell tools and pipes and am looking for a cleaner solution. Any hints? -- Jure Pe?ar http://jure.pecar.org
Jure Pe?ar wrote:> I have an incoming udp data stream to public interface that I want to > duplicate and multipy to three or more destinations on the internal > interface. > > Currently I've managed to put together netcat listener with output to > pipe and socat reading from that pipe to a single destination. I > hoped I could have more than one socat reader from the pipe, but that > does not seem to be the case. So I'm able to only redirect stream to > a single destination on lan. > > I'd also like to avoid this mess of shell tools and pipes and am > looking for a cleaner solution. > > Any hints?if you control the app on the destinations, you could use multicast? Otherwise maybe broadcast on your LAN, all interested clients can pick up the packets.
Jure Pe?ar sent a missive on 2010-02-17:> > Hello, > > Not strictly a CentOS question, but I hope someone can hint me in the > right direction ... > > I have an incoming udp data stream to public interface that I want to > duplicate and multipy to three or more destinations on the internal > interface. > > Currently I've managed to put together netcat listener with output to > pipe and socat reading from that pipe to a single destination. I hoped > I could have more than one socat reader from the pipe, but that does > not seem to be the case. So I'm able to only redirect stream to a > single destination on lan. > > I'd also like to avoid this mess of shell tools and pipes and am > looking for a cleaner solution. > > Any hints? > >Perhaps retransmitting to a multicast address?