Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7YP1-0000pM-Bv for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jun 2015 00:18:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z7YP0-0006ei-OB for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jun 2015 00:18:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z7YOD-0005yg-FV for pgsql-bugs@postgresql.org; Wed, 24 Jun 2015 00:18:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z7YOA-0000xO-Sg for pgsql-bugs@postgresql.org; Wed, 24 Jun 2015 00:18:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t5O0Hu5b015866; Tue, 23 Jun 2015 20:17:56 -0400 From: Tom Lane To: nanaska_91@mail.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13463: fatal 28000 no pg_hba.conf entry for host In-reply-to: <20150623160948.3874.322@wrigleys.postgresql.org> References: <20150623160948.3874.322@wrigleys.postgresql.org> Comments: In-reply-to nanaska_91@mail.ru message dated "Tue, 23 Jun 2015 16:09:48 -0000" Date: Tue, 23 Jun 2015 20:17:56 -0400 Message-ID: <15865.1435105076@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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