pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13463: fatal 28000 no pg_hba.conf entry for host
3+ messages / 3 participants
[nested] [flat]
* BUG #13463: fatal 28000 no pg_hba.conf entry for host
@ 2015-06-23 16:09 nanaska_91@mail.ru
0 siblings, 2 replies; 3+ messages in thread
From: nanaska_91@mail.ru @ 2015-06-23 16:09 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13463
Logged by: Anastasiia
Email address: nanaska_91@mail.ru
PostgreSQL version: 9.4.0
Operating system: Windows Server 2012 R2
Description:
I can't connect to remote PostgreSQL database: error "28000 no pg_hba.conf
entry for host" occurs.
I've opened port 5432 in Firewall, my pg_hba.conf file looks like:
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
hostnossl all all 0.0.0.0/0 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
But I can't connect anyway. What should I do? Please, help!
Thanks!
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13463: fatal 28000 no pg_hba.conf entry for host
@ 2015-06-23 23:28 John R Pierce <pierce@hogranch.com>
parent: nanaska_91@mail.ru
1 sibling, 0 replies; 3+ messages in thread
From: John R Pierce @ 2015-06-23 23:28 UTC (permalink / raw)
To: pgsql-bugs
On 6/23/2015 9:09 AM, nanaska_91@mail.ru wrote:
> I can't connect to remote PostgreSQL database: error "28000 no pg_hba.conf
> entry for host" occurs.
>
> I've opened port 5432 in Firewall, my pg_hba.conf file looks like:
what is the listen_addresses parameter in postgresql.conf ? the default
is to listen to localhost only. change it to...
listen_addresses = '*'
and restart postgresql to take effect.
--
john r pierce, recycling bits in santa cruz
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13463: fatal 28000 no pg_hba.conf entry for host
@ 2015-06-24 00:17 Tom Lane <tgl@sss.pgh.pa.us>
parent: nanaska_91@mail.ru
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2015-06-24 00:17 UTC (permalink / raw)
To: nanaska_91@mail.ru; +Cc: pgsql-bugs
nanaska_91@mail.ru writes:
> I can't connect to remote PostgreSQL database: error "28000 no pg_hba.conf
> entry for host" occurs.
> I've opened port 5432 in Firewall, my pg_hba.conf file looks like:
> # IPv4 local connections:
> hostnossl all all 0.0.0.0/0 md5
> # IPv6 local connections:
> host all all ::1/128 md5
Most likely bet seems to be that your remote connection is coming in over
IPv6. You're allowing IPv6 connections only from localhost in this
configuration.
Another possibility is that the client is trying to use SSL. By default
I think most clients would fall back to non-SSL after failing, but maybe
you have it set up not to.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-06-24 00:17 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 16:09 BUG #13463: fatal 28000 no pg_hba.conf entry for host nanaska_91@mail.ru
2015-06-23 23:28 ` John R Pierce <pierce@hogranch.com>
2015-06-24 00:17 ` Tom Lane <tgl@sss.pgh.pa.us>
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