From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 08:44:34 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 4F73416A401 for ; Fri, 7 Apr 2006 08:44:34 +0000 (UTC) (envelope-from guru@Sisis.de) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C49943D55 for ; Fri, 7 Apr 2006 08:44:32 +0000 (GMT) (envelope-from guru@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id KAA08645; Fri, 7 Apr 2006 10:42:14 +0200 (CEST) (envelope-from guru@Sisis.de) From: guru@Sisis.de Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V2.1) id xma008636; Fri, 7 Apr 06 10:41:50 +0200 Received: from rebelion.Sisis.de (rebelion.Sisis.de [193.31.10.34]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id KAA28668; Fri, 7 Apr 2006 10:44:16 +0200 (CEST) (envelope-from guru@Sisis.de) Received: (from guru@localhost) by rebelion.Sisis.de (8.13.4/8.13.4/Submit) id k378i6ce005354; Fri, 7 Apr 2006 10:44:06 +0200 (CEST) (envelope-from guru@Sisis.de) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to guru@Sisis.de using -f Date: Fri, 7 Apr 2006 10:44:06 +0200 To: Nikos Vassiliadis Message-ID: <20060407084406.GA5169@rebelion.Sisis.de> References: <200604071132.05193.nvass@teledomenet.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200604071132.05193.nvass@teledomenet.gr> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-RELEASE (i386) Cc: freebsd-questions@freebsd.org 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 Reply-To: Matthias.Apitz@Sisis.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 08:44:34 -0000 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. matthias -- Matthias Apitz / Sisis Informationssysteme GmbH ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL) D-82041 Oberhaching, Gruenwalder Weg 28g Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211 http://www.sisis.de/~guru/