pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: C. Bensend <benny@bennyvision.com>
Cc: mike@thegodshalls.com
Cc: lsanchez@ameritrade.com
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_hba.conf
Date: Thu, 27 May 2004 09:35:06 -0400
Message-ID: <13640.1085664906@sss.pgh.pa.us> (raw)
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>

"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: <13640.1085664906@sss.pgh.pa.us>
Permalink:  ../13640.1085664906@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13640.1085664906@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, benny@bennyvision.com, mike@thegodshalls.com, lsanchez@ameritrade.com
  Subject: Re: pg_hba.conf
  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>

* 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