Re: Allow connections by IP address?

From: 李明 <liming185216(at)126(dot)com>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Allow connections by IP address?
Date: 2025-09-16 23:40:17
Message-ID: 2DFE4EC0-7374-4D5E-BC05-49530F7015A0@126.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Maybe you can set the allowed ips with listen_address in postgresql.conf.

More,through network admin can achieve your aim more efficiency.

> 在 2025年9月12日,00:21,Ron Johnson <ronljohnsonjr(at)gmail(dot)com> 写道:
>
> 
> 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!

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message kaido vaikla 2025-09-17 08:27:29 Re: Allow connections by IP address?
Previous Message Naveen Kumar 2025-09-16 21:30:05 Re: dropuser error