Re: ISO simple non-forking TCP connection forward/balance tool

2010-01-22 Thread Ivan Voras
Chris Peiffer wrote: I'm looking for a simple program I can use to forward incoming TCP connections to several other addr:port pairs. (including one on the machine itself.) Holding the connections open and passing the data back and forth until both parties close their ends. I need a sol

Re: ISO simple non-forking TCP connection forward/balance tool

2010-01-22 Thread Chuck Swiger
Hi-- On Jan 22, 2010, at 12:21 PM, Adam Vande More wrote: > A few lines in python should do what you're looking for, see socket lib, > twisted if you have high performance needs. I'm a big fan of python, but you'd have to be careful to choose the right processing model-- some sort of select()/po

Re: ISO simple non-forking TCP connection forward/balance tool

2010-01-22 Thread Chuck Swiger
Hi-- On Jan 22, 2010, at 12:01 PM, Chris Peiffer wrote: > Or is there a good way to do it in the kernel that I'm missing, and > can someone direct me to an ipnat ruleset that creates new > connections, so the TCP forwarding machine doesn't also need to be a > router? I don't know about ipnat, but

Re: ISO simple non-forking TCP connection forward/balance tool

2010-01-22 Thread Adam Vande More
On Fri, Jan 22, 2010 at 2:01 PM, Chris Peiffer wrote: > > I'm looking for a simple program I can use to forward incoming TCP > connections to several other addr:port pairs. (including one on the > machine itself.) Holding the connections open and passing the data > back and forth until both partie