From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 09:53:39 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 5186B16A402 for ; Fri, 7 Apr 2006 09:53:39 +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 6AD5243D49 for ; Fri, 7 Apr 2006 09:53:38 +0000 (GMT) (envelope-from guru@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id LAA10242; Fri, 7 Apr 2006 11:51:20 +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 xma010240; Fri, 7 Apr 06 11:51:16 +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 LAA29715; Fri, 7 Apr 2006 11:53:43 +0200 (CEST) (envelope-from guru@Sisis.de) Received: (from guru@localhost) by rebelion.Sisis.de (8.13.4/8.13.4/Submit) id k379rWKo006849; Fri, 7 Apr 2006 11:53:32 +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 11:53:32 +0200 To: Nikos Vassiliadis Message-ID: <20060407095332.GA6559@rebelion.Sisis.de> References: <200604071132.05193.nvass@teledomenet.gr> <20060407084406.GA5169@rebelion.Sisis.de> <200604071243.09611.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: <200604071243.09611.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 09:53:39 -0000 El día Friday, April 07, 2006 a las 12:43:09PM +0300, Nikos Vassiliadis escribió: > > 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 :( The fwtk2.1 stops building in 'auth' on 6.0-REL with: $ make ... cc -g -o authsrv authsrv.o proto.o db.o pass.o srvio.o ../libauth.a ../libfwall.a pass.o(.text+0x64): In function `passverify': /usr/home/guru/sysSrc/fwtk/fwtk/auth/pass.c:39: undefined reference to `crypt' pass.o(.text+0x129): In function `passset': /usr/home/guru/sysSrc/fwtk/fwtk/auth/pass.c:70: undefined reference to `crypt' *** Error code 1 but you don't need the 'authsrv'; just go over to $ cd plug-gw $ make cc -I.. -g -c plug-gw.c cc -g -o plug-gw plug-gw.o ../libfwall.a chmod 755 plug-gw $ or fix the problem with 'crypt' :-) 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/