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 42793D1CCDA for ; Thu, 27 May 2004 10:35:27 -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 36111-07 for ; Thu, 27 May 2004 10:35:10 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A0C6AD1CEA9 for ; Thu, 27 May 2004 10:35:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i4RDZ7Vl013641; Thu, 27 May 2004 09:35:07 -0400 (EDT) To: "C. Bensend" Cc: mike@thegodshalls.com, lsanchez@ameritrade.com, pgsql-admin@postgresql.org Subject: Re: pg_hba.conf In-reply-to: <54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net> References: <2898C2526ECBEB448D434BA1F3027909034D9798@scsdcmail1.ameritrade.com> <1085627775.4674.8.camel@localhost.localdomain> <54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net> Comments: In-reply-to "C. Bensend" message dated "Wed, 26 May 2004 22:35:47 -0500" Date: Thu, 27 May 2004 09:35:06 -0400 Message-ID: <13640.1085664906@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/287 X-Sequence-Number: 13603 "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