I\'ve got a PostgreSQL data base that I\'d like to configure to accept all incoming connections regardless of the source IP address. How can this be configured in the pg_hba
Just use 0.0.0.0/0
.
host all all 0.0.0.0/0 md5
Make sure the listen_addresses in postgresql.conf
(or ALTER SYSTEM SET) allows incoming connections on all available IP interfaces.
listen_addresses = '*'
After the changes you have to reload the configuration. One way to do this is execute this SELECT
as a superuser.
SELECT pg_reload_conf();