meaning of CIDR mask in pg_hba.conf

From: Atul Kumar <akumar14871(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: meaning of CIDR mask in pg_hba.conf
Date: 2023-10-30 17:45:29
Message-ID: CA+ONtZ5KiFwFKpV+YkRxdACnd+1cJEeuwO-P+P69i7R_1DiD0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have postgres version 12 running on centos 7.

I found an entry in my pg_hba.conf entry as given below under IPV4
connections:

host all all <remote_ip>/0 md5

I could not understand the meaning of "/0" here.

as I know that each IPV4 there are total 4 octets and each octet will be
read based on given CIDR mask (/8, /16, /24 or /32) but I am watching
first time "/0" that I couldn't understand, So please help me in explaining
its prompt meaning and how IP will be read with /0?

Regards,
Atul

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Pointer 2023-10-30 17:49:22 Re: meaning of CIDR mask in pg_hba.conf
Previous Message David Ventimiglia 2023-10-30 15:59:27 Re: Help with a good mental model for estimating PostgreSQL throughput