Обсуждение: whitelist ip for postgres

Поиск
Список
Период
Сортировка

whitelist ip for postgres

От
Azimuddin Mohammed
Дата:
Hello,
How can I whitelist few ip's in postgres. I have create a VIP with SNAT. The SNAT has 4 ips and  no hostname and my VIP has a ip and a DNS name. 

--

Regards,
Azim


Virus-free. www.avast.com

Re: whitelist ip for postgres

От
Laurenz Albe
Дата:
Azimuddin Mohammed wrote:
> How can I whitelist few ip's in postgres. I have create a VIP with SNAT.
> The SNAT has 4 ips and  no hostname and my VIP has a ip and a DNS name. 

If "whitelist" means "allow connections from", you should configure pg_hba.conf:
https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com