Pg_hba.conf problem after unexpected IP change

From: Yessica Brinkmann <brinkmann(dot)yessica(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Pg_hba.conf problem after unexpected IP change
Date: 2021-11-12 01:14:35
Message-ID: CAOR+mccu0A1C+AgbsJCBJeuzp8LEZNVyyZR+paTTvhqyvvaPjw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello. I write for the following reason: I had configured a pg_hba.conf
file, which I am using with some debian virtual machines, to be able to
communicate between two different virtual machines.
Well, it turns out that at one point when I was using my virtual machines,
suddenly and unexpectedly, the IP of one of the virtual machines changed.
I was trying to find out why the commands that I was executing between one
virtual machine and the other did not work for me, until finally I came to
the conclusion that the IP of one of my virtual machines had changed.
Well, then, I went to modify my pg_hba.conf file so that it reflected the
new IP that I did not know why it changed, and to continue communicating
between the two virtual machines, but it turns out that when I change my
pg_hba.conf file, the connection still does not work for me .
The new line in my pg_hba.conf file is as follows:
host ds2 postgres 192.168.52.153/32 trust
and the line above was:
host ds2 postgres 192.168.52.150/32 trust
I clarify that right now when doing ip addr in the virtual machine whose IP
changed unexpectedly, the following IP address appears: 192.168.52.153/24.
I will greatly appreciate a help please.
Regards,
Yessica Brinkmann

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2021-11-12 01:41:01 Re: Pg_hba.conf problem after unexpected IP change
Previous Message David G. Johnston 2021-11-11 21:10:47 Re: Are all unlogged tables in any case truncated after a server-crash?