pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Ogrodowczyk <Jan.Ogrodowczyk@qlik.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Postgres 9.6.1 accepts connections from not allowed Ip addresses
Date: Thu, 17 Nov 2016 09:35:41 -0500
Message-ID: <9280.1479393341@sss.pgh.pa.us> (raw)
In-Reply-To: <DM5PR18MB1305B3883BB865DC8F6BD55483B10@DM5PR18MB1305.namprd18.prod.outlook.com>
References: <DM5PR18MB1305B3883BB865DC8F6BD55483B10@DM5PR18MB1305.namprd18.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Jan Ogrodowczyk <Jan.Ogrodowczyk@qlik.com> 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 previously allowed but later on have been excluded in the  postgresql.conf & pg_hba.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <9280.1479393341@sss.pgh.pa.us>
Permalink:  ../9280.1479393341@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9280.1479393341@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Jan.Ogrodowczyk@qlik.com
  Subject: Re: Postgres 9.6.1 accepts connections from not allowed Ip addresses
  In-Reply-To: <9280.1479393341@sss.pgh.pa.us>
  References: <DM5PR18MB1305B3883BB865DC8F6BD55483B10@DM5PR18MB1305.namprd18.prod.outlook.com> <9280.1479393341@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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