Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am looking for a TCP proxy - a utility that will connect to a port, read a TCP stream, and write it to clients that connect to it.

The key point here is that there may be more than one client, and each client should receive a copy of the stream.

Preferably windows solution, but Linux can be useful as well.

share|improve this question
add comment

4 Answers

you can also do it by using iptables . of course you won't have the "control" that you 'd have if you deploy it in higher level. But it's still a quick and dirty solution :>

share|improve this answer
add comment

Maybe socat? (http://www.dest-unreach.org/socat/)

Have a dig around in the examples (http://www.dest-unreach.org/socat/doc/socat.html#EXAMPLES)

socat -u TCP4:source.example.com:123 TCP4-LISTEN:3334,reuseaddr,fork

Warning: untested!

share|improve this answer
    
For socat, perhaps my Stack Overflow answer helps in this scenario. –  lkraav Jul 6 '12 at 12:51
add comment

Any SOCKS proxy will do -- on Linux, have a look at a Dante proxy or tinyproxy.

share|improve this answer
add comment

It sounds more like you are looking for some type of TCP based queueing or streaming service a pub/sub type thing.

Are you looking for something semantically similar to, say, an internet radio repeater? (where on stream comes in, and anyone else connecting joins into the live stream)

share|improve this answer
    
yes, that's a good way to put it. –  Daphna Aug 30 '10 at 8:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.