From owner-freebsd-questions@FreeBSD.ORG Fri Jan 22 23:20:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B85D1065696 for ; Fri, 22 Jan 2010 23:20:09 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 581C98FC1C for ; Fri, 22 Jan 2010 23:20:09 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NYSnO-0000wX-39 for freebsd-questions@freebsd.org; Sat, 23 Jan 2010 00:20:06 +0100 Received: from 93-138-99-190.adsl.net.t-com.hr ([93.138.99.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jan 2010 00:20:06 +0100 Received: from ivoras by 93-138-99-190.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jan 2010 00:20:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Sat, 23 Jan 2010 00:17:21 +0100 Lines: 12 Message-ID: References: <20100122200138.GA19469@cabstand.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-99-190.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090612) In-Reply-To: <20100122200138.GA19469@cabstand.com> Sender: news Subject: Re: ISO simple non-forking TCP connection forward/balance tool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 23:20:09 -0000 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 solution that doesn't fork. One way to do it is just fork > ad-hoc netcat pipes with inetd, but I'm trying to avoid the process > overhead. See net/bsdproxy.