Skip to content

Commit 2326ade

Browse files
committed
I just noticed that the sample pg_hba.conf in the docs doesn't contain
any use of CIDR masks - here's a patch that adds a couple of sample lines and associated comments. Andrew Dunstan
1 parent f7d9aa8 commit 2326ade

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/src/sgml/client-auth.sgml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.54 2003/08/16 23:33:49 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.55 2003/08/17 04:39:11 momjian Exp $
33
-->
44

55
<chapter id="client-authentication">
@@ -451,13 +451,23 @@ local all all trust
451451
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
452452
host all all 127.0.0.1 255.255.255.255 trust
453453

454+
# The same as the last line but using a CIDR mask
455+
#
456+
# TYPE DATABASE USER IP-ADDRESS/CIDR-mask METHOD
457+
host all all 127.0.0.1/32 trust
458+
454459
# Allow any user from any host with IP address 192.168.93.x to connect
455460
# to database "template1" as the same user name that ident reports for
456461
# the connection (typically the Unix user name).
457462
#
458463
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
459464
host template1 all 192.168.93.0 255.255.255.0 ident sameuser
460465

466+
# The same as the last line but using a CIDR mask
467+
#
468+
# TYPE DATABASE USER IP-ADDRESS/CIDR-mask METHOD
469+
host template1 all 192.168.93.0/24 ident sameuser
470+
461471
# Allow a user from host 192.168.12.10 to connect to database
462472
# "template1" if the user's password is correctly supplied.
463473
#

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