I'm trying to formulate a rule from pg_hba.conf file. Thus far I have understood that
pg_hba.conf file is used to give access to the specific user for a specific host. But I just want to take a second opinion hence this question.
Given that I defined a set of entry in
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all 188.8.131.52/32 md5
Then does Postgres guarantee the only way anyone can connect to Postgres is either using
localhost or from
184.108.40.206 and not other IP will be able to access the Postgres server.
Is my understanding correct?