Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7Nn2-0006Ol-QN for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Nov 2016 14:35:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c7Nn0-0005BL-N3 for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Nov 2016 14:35:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c7Nmz-0005BC-UB for pgsql-bugs@postgresql.org; Thu, 17 Nov 2016 14:35:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c7Nmx-0004Z5-BI for pgsql-bugs@postgresql.org; Thu, 17 Nov 2016 14:35:44 +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 uAHEZfti009281; Thu, 17 Nov 2016 09:35:42 -0500 From: Tom Lane To: Jan Ogrodowczyk cc: "pgsql-bugs@postgresql.org" Subject: Re: Postgres 9.6.1 accepts connections from not allowed Ip addresses In-reply-to: References: Comments: In-reply-to Jan Ogrodowczyk message dated "Thu, 17 Nov 2016 10:58:52 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9279.1479393341.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 17 Nov 2016 09:35:41 -0500 Message-ID: <9280.1479393341@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Jan Ogrodowczyk writes: > Hi, I wanted to report a bug that I found while using postgres 9.6.1. > Summary: The database accepts connections from addresses that were previo= usly allowed but later on have been excluded in the postgresql.conf & pg_h= ba.conf files. It seems highly likely to me that this report is pilot error. The simplest explanation is that you edited the wrong config files. You could try "show config_file" and "show hba_file" while connected to the running server to see where it's getting its configuration from. Also, when changing listen_addresses, you could use "show listen_addresses" to verify that your changes took effect. (Unfortunately there's not currently any direct way to see the active pg_hba entries, though we're working on that.) A different line of thought is that maybe the connections are not coming from where you think they are; for example ipv4 vs ipv6 addresses. You could check into that by activating log_connections and seeing what gets logged about the unwanted connections. Also, don't forget that pg_hba lines are order-sensitive --- you need to put "reject" entries before anything else that could possibly match the incoming connection. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs