Allow connections by IP address?

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Allow connections by IP address?
Date: 2025-09-11 16:21:35
Message-ID: CANzqJaBD0vqs6=ovHOjUF4SV80pBx6A-1kZ8mwcryJq2bjFH2g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

PG 17.latest

My server has two IP addresses:
10.1.2.3.4
10.1.2.3.5 (a VIP)

Some connections should only come in through the VIP, while others (like
replication) must come in through .4 and others (f.e. administrators, can
come in from .4 or .5).

Is there any way to restrict that? I don't see anything in
https://www.postgresql.org/docs/17/auth-pg-hba-conf.html but may be
overlooking something.

(Why don't we use a connection pooler? The 3rd party application has only
been validated against direct connections to PG. Bugs in PgPool caused
problems in prod.)

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

Browse pgsql-admin by date

  From Date Subject
Next Message Raj 2025-09-11 16:41:59 Re: Pgbouncer
Previous Message hubert depesz lubaczewski 2025-09-11 13:55:22 Re: Pgbouncer