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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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