From owner-freebsd-net@FreeBSD.ORG Wed Jul 23 22:16:56 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 BEF6C37B401 for ; Wed, 23 Jul 2003 22:16:56 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7359F43F3F for ; Wed, 23 Jul 2003 22:16:53 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h6O5Gm0U092449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jul 2003 08:16:49 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h6O5GkK1092434; Thu, 24 Jul 2003 08:16:46 +0300 (EEST) (envelope-from ru) Date: Thu, 24 Jul 2003 08:16:46 +0300 From: Ruslan Ermilov To: Krzysztof Drewicz Message-ID: <20030724051646.GB89174@sunbay.com> References: <20030724003908.GA15877@raszyn.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RASg3xLB4tUQ4RcS" Content-Disposition: inline In-Reply-To: <20030724003908.GA15877@raszyn.pl> User-Agent: Mutt/1.5.4i cc: freebsd-net@freebsd.org Subject: Re: 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 05:16:57 -0000 --RASg3xLB4tUQ4RcS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 24, 2003 at 02:39:08AM +0200, Krzysztof Drewicz wrote: > Right now when natd'ing boxes one have to supply a random (fake) ident=20 > 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 combinat= ion. >=20 > I've written small patch for that. Natd binds additonal AF_UNIX/DGRAM=20 > socket, and asks libalias about connections. >=20 > They can be fetched from here: http://pancake.sggw.waw.pl/~hunter24/libal= ias/ >=20 > Maybe someone could help me w/ integrating 'client.c' > into oidentd/src/freebsd.c file or merge it with current development tre= e ? >=20 > /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 >=20 Last time I looked into it a few years ago, it turned out that we lack some info (sorry, I don't remember the details) to answer IDENT queries correctly. But since you have a patch, perhaps you have solved this problem. Please file a PR for that; I will look into it when I get to libalias/natd PRs. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --RASg3xLB4tUQ4RcS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/H2u+Ukv4P6juNwoRAoI+AJ917wbgSXae91zikZUHtzbGCChgawCeOZdU zRE9OOe+oPslwTFCqXa/yJg= =SP/M -----END PGP SIGNATURE----- --RASg3xLB4tUQ4RcS--