Re: pgclient hostbased authentication

Started by A. Kretschmerover 20 years ago3 messagesgeneral
Jump to latest
#1A. Kretschmer
akretschmer@despammed.com

am 21.09.2005, um 15:53:45 +0200 mailte Bohdan Linda folgendes:

Hello,

may I ask, how(or which) ip is checked against pg_hba.conf IP entry in NAT
environment?

Could it be, that psql client packs IP address of the client into athentication data?

No. Why? Describe your problem.

pg_hba.conf can only see the packet source-ip.

Regards, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

#2Magnus Hagander
magnus@hagander.net
In reply to: A. Kretschmer (#1)

Hello,

may I ask, how(or which) ip is checked against pg_hba.conf IP
entry in NAT environment?

Could it be, that psql client packs IP address of the client
into athentication data?

No, it validates the source address on the TCP connection. In the event
of NAT, it will check the NATted address.

//Magnus

#3Bohdan Linda
bohdan.linda@seznam.cz
In reply to: A. Kretschmer (#1)

No. Why? Describe your problem.

I have got response like bellow, when connecting to server in completely
different network than 172.x.x.x
--------------
org.postgresql.util.PSQLException: Connection rejected: FATAL: no
pg_hba.conf entry for host "172.x.x.x", user "XxXxXx", database
"yYyYyY", SSL off

Regards,
Bohdan