pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
configuring pg_hba.conf file
2+ messages / 2 participants
[nested] [flat]

* configuring pg_hba.conf file
@ 2004-10-25 08:59 Jagdish rao <aquajags@yahoo.com>
  2004-10-27 16:52 ` Re: configuring pg_hba.conf file Trevor Dennis <tdennis@trevordennis.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jagdish rao @ 2004-10-25 08:59 UTC (permalink / raw)
  To: pgsql-admin

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



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: configuring pg_hba.conf file
  2004-10-25 08:59 configuring pg_hba.conf file Jagdish rao <aquajags@yahoo.com>
@ 2004-10-27 16:52 ` Trevor Dennis <tdennis@trevordennis.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Trevor Dennis @ 2004-10-27 16:52 UTC (permalink / raw)
  To: Jagdish rao <aquajags@yahoo.com>; +Cc: 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 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
>
>
>  
>




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-10-27 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-25 08:59 configuring pg_hba.conf file Jagdish rao <aquajags@yahoo.com>
2004-10-27 16:52 ` Trevor Dennis <tdennis@trevordennis.com>

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