From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 09:44:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5961D16A402 for ; Fri, 7 Apr 2006 09:44:02 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 704DC43D48 for ; Fri, 7 Apr 2006 09:44:00 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from [192.168.1.71] ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k379hxuq004825; Fri, 7 Apr 2006 12:43:59 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org, Matthias.Apitz@sisis.de Date: Fri, 7 Apr 2006 12:43:09 +0300 User-Agent: KMail/1.9.1 References: <200604071132.05193.nvass@teledomenet.gr> <20060407084406.GA5169@rebelion.Sisis.de> In-Reply-To: <20060407084406.GA5169@rebelion.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200604071243.09611.nvass@teledomenet.gr> Cc: Subject: Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability 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, 07 Apr 2006 09:44:02 -0000 On Friday 07 April 2006 11:44, guru@sisis.de wrote: > El día Friday, April 07, 2006 a las 11:32:04AM +0300, Nikos Vassiliadis escribió: > > Hi, > > > > I am searching for program similar to net/redir. It's > > a simple program that listens to a tcp port and redirects > > all input to another address:port. I want to debug http > > and I need something that does what redir does plus > > dumping all input & output to my terminal. Is there some- > > thing like that in ports? Or somewhere else? > > There is one of the oldest firewall toolkits, the TIS' FWTK, > > http://www.fwtk.org/main.html > > it has some so called 'plug-gw', writte in C, which does exactly what > you want, excepting TCP on one address:port and directing it > transparently to some other address:port (like the woman in the old > POTS did with the cable); you can (and I did it for testing purposes > as well) easy expand it to collect the data to some file, for example. It doesn't build on >=5.x :( Thanks > > matthias