pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: C. Bensend <benny@bennyvision.com>
To: mike@thegodshalls.com
Cc: lsanchez@ameritrade.com
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_hba.conf
Date: Wed, 26 May 2004 22:35:47 -0500 (CDT)
Message-ID: <54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net> (raw)
In-Reply-To: <1085627775.4674.8.camel@localhost.localdomain>
References: <2898C2526ECBEB448D434BA1F3027909034D9798@scsdcmail1.ameritrade.com>
	<1085627775.4674.8.camel@localhost.localdomain>


> 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:
>
> host   all     all    10.15.13.0      255.255.255.0    trust
>
> I was able to connect successfully.  The .0 works as a wildcard entry
> for the last part but not the one prior.

Yes, when your subnet mask is set for a /24, that's correct.

Your first attempt above allowed connections for anything in the
10.15.0/24 subnet (which 10.15.13 is not a part of).

Benny


-- 
"Oh, the Jedis are going to feel this one!"       -- Professor Farnsworth,
                                                     "Futurama"



view thread (53+ messages)  latest in thread

Message-ID: <54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net>
Permalink:  ../54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net/
Also on:    postgresql.org/message-id/54543.63.227.74.41.1085628969.squirrel@webmail.stinkweasel.net

 · 

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: benny@bennyvision.com, mike@thegodshalls.com, lsanchez@ameritrade.com
  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>

* 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