How To Configure PostgreSQL To Accept All Incoming Connections?
You need to add the following line to the /var/lib/pgsql/data/pg_hba.conf file:
host all all 0.0.0.0/0 md5
And then run the following command to confirm that the changes are made:
grep -Ei "(^\s*host\b)" /var/lib/pgsql/data/pg_hba.conf
When that's done, you will need to restart the database server with the following script: