From owner-freebsd-net@FreeBSD.ORG Wed Jul 23 17:42:28 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C582137B401 for ; Wed, 23 Jul 2003 17:42:28 -0700 (PDT) Received: from pancake.sggw.waw.pl (pancake.sggw.waw.pl [148.81.130.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B516443F93 for ; Wed, 23 Jul 2003 17:42:27 -0700 (PDT) (envelope-from hunter24@pancake.sggw.waw.pl) Received: from pancake.sggw.waw.pl (localhost.localdomain [127.0.0.1]) by pancake.sggw.waw.pl (8.12.8/8.12.5) with ESMTP id h6O0d8eG015893 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 24 Jul 2003 02:39:08 +0200 Received: (from hunter24@localhost) by pancake.sggw.waw.pl (8.12.8/8.12.8/Submit) id h6O0d87v015891 for freebsd-net@freebsd.org; Thu, 24 Jul 2003 02:39:08 +0200 Date: Thu, 24 Jul 2003 02:39:08 +0200 From: Krzysztof Drewicz To: freebsd-net@freebsd.org Message-ID: <20030724003908.GA15877@raszyn.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.1i Subject: libalias/natd and identd support X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 00:42:29 -0000 Right now when natd'ing boxes one have to supply a random (fake) ident respone, or simply RST on tcp/135. Libalias&natd could provide simple way to ask 'what is real src ip/port' by knowing outgoin port and IP combination. I've written small patch for that. Natd binds additonal AF_UNIX/DGRAM socket, and asks libalias about connections. They can be fetched from here: http://pancake.sggw.waw.pl/~hunter24/libalias/ Maybe someone could help me w/ integrating 'client.c' into oidentd/src/freebsd.c file or merge it with current development tree ? /usr/src/lib/libalias # cvs diff -u -N -d alias.h alias_db.c | wc -l 157 /usr/src/sbin/natd # cvs diff -u -b -N -d . | wc -l 317 /usr/src/sbin/natd # wc -l client.c ident.c 89 client.c 48 ident.c 137 total -- Krzysztof Drewicz Podsłuchane na pogrzebie: "Wiem, że to niezręcznie pytać o takie rzeczy w tej chwili, ale przypominasz sobie, żeby on kiedykolwiek wspomniał coś o kodzie źródłowym?" --- Charles Addams