X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 18D02D1CDBD for ; Thu, 27 May 2004 22:55:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 08648-06 for ; Thu, 27 May 2004 22:55:20 -0300 (ADT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by svr1.postgresql.org (Postfix) with ESMTP id CED08D1C938 for ; Thu, 27 May 2004 22:55:14 -0300 (ADT) Received: from localhost.localdomain (c-67-162-79-220.client.comcast.net[67.162.79.220]) by comcast.net (rwcrmhc11) with ESMTP id <2004052801551801300f7fque>; Fri, 28 May 2004 01:55:18 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.11/8.12.11) with ESMTP id i4S1sieK004819 for ; Thu, 27 May 2004 20:54:44 -0500 Received: (from spike@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id i4S1si2m004816 for pgsql-admin@postgresql.org; Thu, 27 May 2004 20:54:44 -0500 X-Authentication-Warning: localhost.localdomain: spike set sender to mike@thegodshalls.com using -f Date: Thu, 27 May 2004 20:54:44 -0500 From: Mike G To: pgsql-admin@postgresql.org Subject: Re: pg_hba.conf Message-ID: <20040528015444.GA4803@localhost.localdomain> References: <2898C2526ECBEB448D434BA1F3027909034D9798@scsdcmail1.ameritrade.com> <1085627775.4674.8.camel@localhost.localdomain> <54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net> <13640.1085664906@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13640.1085664906@sss.pgh.pa.us> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/300 X-Sequence-Number: 13616 Thank you to all who replied with the additional info. On Thu, May 27, 2004 at 09:35:06AM -0400, Tom Lane wrote: > "C. Bensend" writes: > >> I had setup my pg_hba.conf originally like this: > >> host all all 10.15.0.0 255.255.255.0 trust > >> > >> I was under the impression that the .0 was supposed to be equivalent to > >> a wildcard entry so that any connection from 10.15 would be able to > >> connect. This was not so. By changing my pg_hba.conf to this: > > > Yes, when your subnet mask is set for a /24, that's correct. > > To expand a bit: the correct way of letting in a /16 would be > > host all all 10.15.0.0 255.255.0.0 trust > > In recent PG releases (7.4.*, not sure about 7.3) you could also write > > host all all 10.15.0.0/16 trust > > regards, tom lane