Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2003 10:45:23 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        "Kerry B. Rogers" <kbrogers@tinkertoys.net>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: hosts.allow not always working... misses some IPs
Message-ID:  <20031203084523.GA3327@straylight.m.ringlet.net>
In-Reply-To: <005f01c3b91d$38659f40$0400a8c0@internalprocess>
References:  <005f01c3b91d$38659f40$0400a8c0@internalprocess>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031203084523.GA3327>