From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 3 00:45:28 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7001F16A4CE for ; Wed, 3 Dec 2003 00:45:28 -0800 (PST) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 6E74A43FBD for ; Wed, 3 Dec 2003 00:45:26 -0800 (PST) (envelope-from roam@straylight.ringlet.net) Received: (qmail 20664 invoked from network); 3 Dec 2003 08:43:33 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 3 Dec 2003 08:43:33 -0000 Received: (qmail 4810 invoked by uid 1000); 3 Dec 2003 08:45:23 -0000 Date: Wed, 3 Dec 2003 10:45:23 +0200 From: Peter Pentchev To: "Kerry B. Rogers" Message-ID: <20031203084523.GA3327@straylight.m.ringlet.net> Mail-Followup-To: "Kerry B. Rogers" , freebsd-bugs@freebsd.org References: <005f01c3b91d$38659f40$0400a8c0@internalprocess> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <005f01c3b91d$38659f40$0400a8c0@internalprocess> User-Agent: Mutt/1.5.5.1i cc: freebsd-bugs@freebsd.org Subject: Re: hosts.allow not always working... misses some IPs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2003 08:45:28 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 02, 2003 at 04:42:37PM -0500, Kerry B. Rogers wrote: > Uwe, one other thing... >=20 > smtp : 213.194.064.0/255.255.192.0 : deny >=20 > did not block 213.194.124.93... >=20 > It should have, shouldn't it? Not with 64 misspelled as 064; it is a little-known fact that most implementations of the inet_addr() or inet_aton() system library functions (which are used to convert a numeric representation of an IP address into the internal format used by the network functions) will accept hexadecimal (prefixed with 0x) or octal (prefixed with 0) numbers. Thus, the 064 in your address was treated as an octal number, converted to 52, and your specification was misinterpreted as 213.194.52.0/255.255.192.0. HTH, HAND. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Thit sentence is not self-referential because "thit" is not a word. --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/zaKj7Ri2jRYZRVMRArvKAJ0dN2QboiPBekKVPPzDC2ZsXleuGQCgky+E uvhldR7sBCaEUxnwDX7g4UY= =h7fc -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--