From: | Francisco Olarte <folarte(at)peoplecall(dot)com> |
---|---|
To: | "Romero, Fernando" <Fernando(dot)Romero(at)trenesargentinos(dot)gob(dot)ar> |
Cc: | "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Problemas con pg_hba.conf |
Date: | 2023-07-26 08:18:36 |
Message-ID: | CA+bJJbyG=U-m4QTnASDDmPaqpSUavT4xhdPh9gJwxoGobivzjg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Fernando:
On Tue, 25 Jul 2023 at 19:07, Romero, Fernando
<Fernando(dot)Romero(at)trenesargentinos(dot)gob(dot)ar> wrote:
> host repmgr repmgr 192.168.0.18/24 trust
> host repmgr repmgr 192.168.0.102/24 trus
...
> host replication repmgr 192.168.0.118/24 trust
> host replication repmgr 192.168.0.156/24 trust
Estas seguro de esas lineas con el /24 ?
Las docs dicen:
"An IP address range is specified using standard numeric notation for
the range's starting address, then a slash (/) and a CIDR mask length.
The mask length indicates the number of high-order bits of the client
IP address that must match.
********Bits to the right of this should be zero in the given IP address.*****
There must not be any white space between the IP address, the /, and
the CIDR mask length."
Enfasis mio, dicen que la direccion debe ser canonica ( basicamente
(dir &mask)==dir ).
Si son hosts deberias poner /32. Si son redes "clase C" las 4
direcciones son iguales y teoricamente equivalentes a 192.168.0.0/24
PERO pueden no funcionar ( Algunas implementaciones comprueban cliente
& mascara == dir, esas no irian, otras comprueban cliente & mascara ==
direccion & mascara , esas si irian, no se como lo hace postgres, pero
yo que vos me curaria en salud y pondria las direcciones bien ).
Por otro lado, para la depuracion del tema IP, convendria que pusieses
los SSOO de servidor y cliente(s) para que la gente puede recomendarte
adecuadamente que usar en cada caso, y por la pinta revisa los
listen_addresses del servidor, que por defecto esta solo en localhost.
Francisco Olarte.
From | Date | Subject | |
---|---|---|---|
Next Message | Diego Ayala | 2023-07-27 14:31:54 | Tabla TOAST muy grande |
Previous Message | Romero, Fernando | 2023-07-25 19:05:21 | Re: Problemas con pg_hba.conf |