(I have a basic understanding of networking)
So I read in another post that explains that listen_addresses just involves an extra layer of security before the login: How to configure postgresql postgresql.conf listen_addresses for multiple ip addresses
But what I want to know is why listen_address doesn't have to be put in CIDR format for the ips you put in there.
in pg_hba.conf
it's ##.##.##.##/##
for CIDR format. So why does postgresql.conf
's listen_addresses
use just the ip and without the subnet mask? (and also, I put my public ip address for both but access isn't allowed if I put it in listen_address
which means...?
Side question (maybe for subnet):
amazon ec2 doesn't let me use my public ip address/24, it has to be /32 (saying the size is too small) but i put /24 in pg_hba.conf
so clearly it's valid?