Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1be2ee

Browse files
committed
Here's a small patch to pg_hba.conf.sample that explains the use of CIDR
addresses.Andrew Dunstan
1 parent861ea4b commite1be2ee

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 ofthree forms:
10+
# databases they can access. Records take one offive 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)

[8]ページ先頭

©2009-2025 Movatter.jp