From owner-freebsd-questions@FreeBSD.ORG Wed Aug 9 18:57:27 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 EBA4216A4DD for ; Wed, 9 Aug 2006 18:57:27 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D24C43D49 for ; Wed, 9 Aug 2006 18:57:24 +0000 (GMT) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id 6362B13CBEE for ; Wed, 9 Aug 2006 20:57:19 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by merke.itea.ntnu.no (Postfix) with SMTP for ; Wed, 9 Aug 2006 20:57:18 +0200 (CEST) Received: (qmail 78805 invoked by uid 88); 9 Aug 2006 20:57:18 +0200 Received: from 37.84-48-193.nextgentel.com (HELO [10.0.0.8]) (84.48.193.37) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; ons, 09 aug 2006 20:57:17 +0200 Message-ID: <44DA2FF5.5070201@lvor.halvorsen.cc> Date: Wed, 09 Aug 2006 20:56:53 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 1.5.0.2 (X11/20060522) MIME-Version: 1.0 To: Nikolas Britton References: <20060807003815.C7522@ganymede.hub.org> <20060808102819.GB64879@augusta.de> <20060808153921.V7522@ganymede.hub.org> <44D8EC98.8020801@utdallas.edu> <20060808201359.S7522@ganymede.hub.org> <44D91F02.90107@mawer.org> <20060808212719.L7522@ganymede.hub.org> <20060809072313.GA19441@sysadm.stc> In-Reply-To: X-Enigmail-Version: 0.94.0.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig293EF06927B881A28F6AB98F" X-Virus-Checked: Checked X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: Igor Robul , freebsd-questions@freebsd.org Subject: Re: BSDstats Project v2.0 ... 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: Wed, 09 Aug 2006 18:57:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig293EF06927B881A28F6AB98F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nikolas Britton wrote: > I still like my idea the best for unique keys. It's a better way to > detect hosts behind NATs, here it is again, four versions to pick > from: >=20 > # ifconfig | sha256 > cbcc2f55a340c248af7e8a10871150d827af11d7051bbc782eefa04b0603248b > # ifconfig | sha1 > b607b9d45e6ad40c02ab20800e0d70245ab6db68 > # ifconfig | md5 > 22a2a3eca61166fb113f1a688b3dd842 > # ifconfig | cksum > 3977021799 540 >=20 > The only down side is it still can be faked, just like everything else.= ifconfig output is by no means constant on a single host. Eg. Take my laptop; the media, status and ssid lines will change pretty often on my wireless nic. I mean several times during one session. Why not hash just the hostname? Or MAC-address? Of course these could also be fabricated, but you can't possibly avoid that as long as this is open source. (And the protocol would be pretty easy to reverse engineer anyway) How 'bout? $ ifconfig | grep ether | md5 This will change whenever one adds, removes or replaces a nic, though. Svein Halvor --------------enig293EF06927B881A28F6AB98F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key iD8DBQFE2i/8hQg3vZGYu0ARApniAJ0R0wsxb+VX2CwRp2ooiQaoTEyF1ACfYlJ3 wU3fXn3BsHcv0GIlQmHulOU= =6zOr -----END PGP SIGNATURE----- --------------enig293EF06927B881A28F6AB98F--