Gentoo Archives: gentoo-user

From: James Cloos <cloos@×××××××.com>
To: Joseph <syscon780@×××××.com>
Cc: gentoo-user@l.g.o
Subject: Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only
Date: Sat, 27 Apr 2013 00:28:07
Message-Id: m3txmsbyzm.fsf@carbon.jhcloos.org
In Reply to: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only by Joseph
1 >>>>> "J" == Joseph <syscon780@×××××.com> writes:
2
3 J> In my "pg_hba.conf" I have:
4
5 J> local all all trust
6 J> host all all 127.0.0.1/32 trust
7
8 J> I was under impression that this is configuration is for localhost "127.0.0.1" access only.
9
10 That tells pg how to authenticate users using the unix domain socket and
11 users using tcp over the loopback interface.
12
13 To limit the listen_address, edit postgresql.conf in that directory.
14
15 You want to have:
16
17 listen_addresses = 'localhost'
18
19 or:
20
21 listen_addresses = '127.0.0.1'
22
23 to prevent any access attempts from any non-localhost ip addresses.
24
25 -JimC
26 --
27 James Cloos <cloos@×××××××.com> OpenPGP: 1024D/ED7DAEA6

Replies

Subject Author
Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only Joseph <syscon780@×××××.com>