Skip to content

Commit ba1578a

Browse files
committed
Improve pg_hba.conf examples
1 parent b71761d commit ba1578a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/libpq/pg_hba.conf.sample

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@
117117
# The above allows any user on the local system to connect to any database
118118
# under any username.
119119

120-
#host template1 192.168.0.0 255.255.255.0 ident sameuser
120+
#host template1 192.168.93.0 255.255.255.0 ident sameuser
121121

122-
# The above allows any user from any host with IP address 192.168.0.x to
122+
# The above allows any user from any host with IP address 192.168.93.x to
123123
# connect to database template1 as the same username that ident on that host
124124
# identifies him as (typically his Unix username).
125125

126-
#host all 192.168.0.1 255.255.255.255 reject
126+
#host all 192.168.54.1 255.255.255.255 reject
127127
#host all 0.0.0.0 0.0.0.0 trust
128128

129-
# The above would allow anyone anywhere except from 192.168.0.1 to connect to
129+
# The above would allow anyone anywhere except from 192.168.54.1 to connect to
130130
# any database under any username.
131131

132-
#host all 192.168.0.0 255.255.255.0 ident omicron
132+
#host all 192.168.77.0 255.255.255.0 ident omicron
133133
#
134-
# The above would allow users from 192.168.0.x hosts to connect to any
134+
# The above would allow users from 192.168.77.x hosts to connect to any
135135
# database, but if Ident says the user is "bryanh" and he requests to
136136
# connect as PostgreSQL user "guest1", the connection is only allowed if
137137
# there is an entry for map "omicron" in pg_ident.conf that says "bryanh" is

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