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.conf file? I’m using postgreSQL version 8.4.
I’ve got a PostgreSQL data base that I’d like to configure to accept all
Share
Just use
0.0.0.0/0.Make sure the
listen_addressesinpostgresql.conf(orALTER SYSTEM SET) allows incoming connections on all available IP interfaces.After the changes you have to reload the configuration. One way to do this is execute this
SELECTas a superuser.Note: to change
listen_addresses, a reload is not enough, and you have to restart the server.