Skip to content

Commit e1be2ee

Browse files
committed
Here's a small patch to pg_hba.conf.sample that explains the use of CIDR
addresses. Andrew Dunstan
1 parent 861ea4b commit e1be2ee

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/backend/libpq/pg_hba.conf.sample

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@
77
#
88
# This file controls: which hosts are allowed to connect, how clients
99
# are authenticated, which PostgreSQL user names they can use, which
10-
# databases they can access. Records take one of three forms:
10+
# databases they can access. Records take one of five forms:
1111
#
1212
# local DATABASE USER METHOD [OPTION]
13-
# host DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
14-
# hostssl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
13+
# host DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
14+
# hostssl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
15+
# host DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
16+
# hostssl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
1517
#
1618
# (The uppercase quantities should be replaced by actual values.)
1719
# DATABASE can be "all", "sameuser", "samegroup", a database name (or
1820
# a comma-separated list thereof), or a file name prefixed with "@".
1921
# USER can be "all", an actual user name or a group name prefixed with
2022
# "+" or a list containing either. IP-ADDRESS and IP-MASK specify the
21-
# set of hosts the record matches. METHOD can be "trust", "reject",
23+
# set of hosts the record matches. CIDR-MASK is an integer between 0
24+
# and 32 (IPv6) or 128(IPv6) inclusive, that specifies the number of
25+
# significant bits in the mask, so an IPv4 CIDR-MASK of 8 is equivalent
26+
# to an IP-MASK of 255.0.0.0, and an IPv6 CIDR-MASK of 64 is equivalent
27+
# to an IP-MASK of ffff:ffff:ffff:ffff::. METHOD can be "trust", "reject",
2228
# "md5", "crypt", "password", "krb4", "krb5", "ident", or "pam". Note
2329
# that "password" uses clear-text passwords; "md5" is preferred for
2430
# encrypted passwords. OPTION is the ident map or the name of the PAM

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy