pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Trevor Dennis <tdennis@trevordennis.com>
To: Jagdish rao <aquajags@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: configuring pg_hba.conf file
Date: Wed, 27 Oct 2004 10:52:24 -0600
Message-ID: <417FD248.6030708@trevordennis.com> (raw)
In-Reply-To: <20041025085956.68888.qmail@web60402.mail.yahoo.com>
References: <20041025085956.68888.qmail@web60402.mail.yahoo.com>


Hi Jagdish,

You shouldn't be listing each IP address in the file.  If you want a 
specific IP address then the netmask should have been 255.255.255.255 to 
indicate that all octets are required for the address comparison.

For your subnet you should have an IP subnet of 192.168.0.0 and a 
netmask of 255.255.255.0.  This netmask says that only the first three 
octets should be compared and the last one can be anything.

Trev.


Jagdish rao wrote:

>hi friends 
>
>i have postgresql running on a linux box
>we are around 25 developers in the local network using
>it
>for development
>
>i wanted to know whether this is a way by which all
>the users in my domain would get access to postgres
>instead of entering all the ip addreses in the conf
>file
>
>some thing like 
>192.168.0.* 255.255.255.0 
>
>instead of specifying all the IP's like this
>
># TYPE  DATABASE    USER        IP-ADDRESS       
>IP-MASK           METHOD
>
>local   all         all                               
>             trust
>host    all         all         127.0.0.1        
>255.255.255.255   trust
>host    all         all         192.168.0.9        
>255.255.255.0   trust
>host    all         all         192.168.0.4        
>255.255.255.0   trust
>
>
>thanks in advance 
>Jagdish Rao
>
>
>  
>




view thread (2+ messages)

Message-ID: <417FD248.6030708@trevordennis.com>
Permalink:  ../417FD248.6030708@trevordennis.com/
Also on:    postgresql.org/message-id/417FD248.6030708@trevordennis.com

 · 

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: tdennis@trevordennis.com, aquajags@yahoo.com
  Subject: Re: configuring pg_hba.conf file
  In-Reply-To: <417FD248.6030708@trevordennis.com>
  References: <20041025085956.68888.qmail@web60402.mail.yahoo.com> <417FD248.6030708@trevordennis.com>

* 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