pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike G <mike@thegodshalls.com>
To: pgsql-admin@postgresql.org
Subject: Re: pg_hba.conf
Date: Thu, 27 May 2004 20:54:44 -0500
Message-ID: <20040528015444.GA4803@localhost.localdomain> (raw)
In-Reply-To: <13640.1085664906@sss.pgh.pa.us>
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>

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" <benny@bennyvision.com> 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



view thread (53+ messages)  latest in thread

Message-ID: <20040528015444.GA4803@localhost.localdomain>
Permalink:  ../20040528015444.GA4803@localhost.localdomain/
Also on:    postgresql.org/message-id/20040528015444.GA4803@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@thegodshalls.com
  Subject: Re: pg_hba.conf
  In-Reply-To: <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> <20040528015444.GA4803@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox