Skip site navigation (1) Skip section navigation (2)

Re: configuring pg_hba.conf file

From: Trevor Dennis <tdennis(at)trevordennis(dot)com>
To: Jagdish rao <aquajags(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: configuring pg_hba.conf file
Date: 2004-10-27 16:52:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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 to 
indicate that all octets are required for the address comparison.

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


Jagdish rao wrote:

>hi friends 
>i have postgresql running on a linux box
>we are around 25 developers in the local network using
>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
>some thing like 
>instead of specifying all the IP's like this
># TYPE  DATABASE    USER        IP-ADDRESS       
>IP-MASK           METHOD
>local   all         all                               
>             trust
>host    all         all        
>   trust
>host    all         all        
>   trust
>host    all         all        
>   trust
>thanks in advance 
>Jagdish Rao

In response to

pgsql-admin by date

Next:From: Albrecht BergerDate: 2004-10-27 16:57:39
Subject: caching complete table for optimizing search ?
Previous:From: Shayne PattonDate: 2004-10-27 06:45:19
Subject: psql won't "createdb"

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group