Skip site navigation (1) Skip section navigation (2)

Re: Range of IP address specification in pg_hba.conf

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: "Solaimurugan V(dot)" <solaimuruganv(at)cdac(dot)in>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Range of IP address specification in pg_hba.conf
Date: 2010-10-11 14:23:40
Message-ID: AANLkTin+itkehLHK+oT9SP4Nn-kSA6fb955g7OypaFFw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Mon, Oct 11, 2010 at 3:29 AM, Solaimurugan V. <solaimuruganv(at)cdac(dot)in> wrote:
>
>         could you please tell me how can i specify range of IP
>  address in pg_hba.conf file, not by network i.e 192.168.31.0/24, i need
> to
>  specify ip address range like 192.168.31.101-125 (client from 101 to 125
>  can connect to server) is it possible?

I think you can convert that IP address range to CIDR format for your
pg_hba.conf file like this:

192.168.31.101/32
192.168.31.102/31
192.168.31.104/29
192.168.31.112/29
192.168.31.120/30
192.168.31.124/31

Josh

In response to

pgsql-novice by date

Next:From: Rick ShoryDate: 2010-10-11 16:38:51
Subject: pass-through query crash using MSAccess front-end
Previous:From: Tom LaneDate: 2010-10-11 13:47:30
Subject: Re: Creating index on different tablespace and its temp files

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group