From: Sathesh S <Sathesh.Sundaram@hotmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Basic question on 'reject' auth-method in pg_hba.conf
Date: Wed, 30 Nov 2016 16:36:40 +0000
Message-ID: <AM5PR10MB068902CBAA704A68CEA2FB79828C0@AM5PR10MB0689.EURPRD10.PROD.OUTLOOK.COM> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hello All,
I'm new to postgresql, I have a basic question in using the 'reject' auth-method in pg_hba.conf.
I would like to reject a particular login from multiple range of IP addresses.
For example:
I want to reject login "test" from multiple IP ranges "100.101.13.0" & "200.101.13.0"
My questions:
1. Do I need to make separate entires like below ones or can I separate the IP address range using comma?
"host all test 100.101.13.0 reject"
"host all test 200.101.13.0 reject"
2. If I make multiple entries to reject as above, how will it be treated, will the system read all the entries for the "test" login or will it stop after it finds the 1st entry for "test" login?
Can you please help with above questions.
Thanks,
Sathesh
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-admin@postgresql.org
Cc: Sathesh.Sundaram@hotmail.com
Subject: Re: Basic question on 'reject' auth-method in pg_hba.conf
In-Reply-To: <AM5PR10MB068902CBAA704A68CEA2FB79828C0@AM5PR10MB0689.EURPRD10.PROD.OUTLOOK.COM>
References: <AM5PR10MB068902CBAA704A68CEA2FB79828C0@AM5PR10MB0689.EURPRD10.PROD.OUTLOOK.COM>
* 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