TCP Proxy with multiple clients?

Solution 1:

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 :>

Solution 2:

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!