dbTalk Databases Forums  

Configure pg_hba for all machines on LAN

comp.databases.postgresql comp.databases.postgresql


Discuss Configure pg_hba for all machines on LAN in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
O.B.
 
Posts: n/a

Default Configure pg_hba for all machines on LAN - 11-13-2006 , 04:06 PM






The following in the pg_hba.conf file allows "some" computers on our
network to connect PostgreSQL on the machine 10.1.16.24:

host all all 10.1.16.0 255.255.255.0 trust

I want to change the configuration to allow anyone on the local area
network to connect to the machine. I've tried the following and I'm
guessing that I just don't understand the addressing correctly:

host all all 127.0.0.1/32 trust

Help?

Reply With Quote
  #2  
Old   
Miloslav Hůla
 
Posts: n/a

Default Re: Configure pg_hba for all machines on LAN - 11-13-2006 , 04:17 PM






O.B. napsal(a):
Quote:
The following in the pg_hba.conf file allows "some" computers on our
network to connect PostgreSQL on the machine 10.1.16.24:

host all all 10.1.16.0 255.255.255.0 trust

I want to change the configuration to allow anyone on the local area
network to connect to the machine. I've tried the following and I'm
guessing that I just don't understand the addressing correctly:

host all all 127.0.0.1/32 trust
Hi,
what does it mean "local area"?

127.*.*.* is only your computer.

Trust method mean, connect without password.

--
MiLo


Reply With Quote
  #3  
Old   
jpd
 
Posts: n/a

Default Re: Configure pg_hba for all machines on LAN - 11-13-2006 , 04:35 PM



Begin <12lhnj83b3fmo37 (AT) corp (DOT) supernews.com>
On 2006-11-13, O.B. <funkjunk (AT) bellsouth (DOT) net> wrote:
Quote:
The following in the pg_hba.conf file allows "some" computers on our
network to connect PostgreSQL on the machine 10.1.16.24:

host all all 10.1.16.0 255.255.255.0 trust
That allows all hosts from 10.1.16.0 to 10.1.16.255[1], or in CIDR
notation 10.1.16.0/24. If you want more, ``widen'' the netmask or
lower the number after the slash. Or add more lines for the apropriate
subnets.


Quote:
I want to change the configuration to allow anyone on the local area
network to connect to the machine. I've tried the following and I'm
guessing that I just don't understand the addressing correctly:

host all all 127.0.0.1/32 trust
Well, you specify the local host and only the local host. Apart from
127.0.0.0/8 referring by convention to only *this* host and never the
local network; the number after the / specifies the number of bits
counted from the left that are ``fixed''.

32 bits out of 32 fixed means only one address. Not what you want here.

You didn't specify the range of addresses that do you want to give
access, but this might point you in the right direction.


[1] Usually except .0 and .255 as the first and last of the range are
reserved for broadcast while only the last is usually used for that.
Why? Blame history.

--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.