Hi All,
Hoping for help on this one. I have a new 9.1 Postgresql installation up and running on RHEL 6 (call it 'mypghost.net').
I've edited the pg_hba.conf to add:
host all all 0.0.0.0/0 trust
I've edited the postgresql.conf to add:
listen_addresses = '*'
The service was the restarted.
When I check the ports, I get:
root$ netstat -nlp | grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 13761/postmaster
tcp 0 0 :::5432 :::* LISTEN 13761/postmaster
unix 2 [ ACC ] STREAM LISTENING 58223 13761/postmaster /tmp/.s.PGSQL.5432
However, when I try to connect from it's sister server, like so:
$ psql -h mypghost.net -U postgres -d test
psql: could not connect to server: No route to host
Is the server running on host "mypghost.net " and accepting
TCP/IP connections on port 5432?
There are no firewalls in the picture. iptables is not running on either machine. mypghost.net resolves to the correct IP. In fact, I can ssh from one to the other just fine.
I've run out of ideas at this point, so very much hoping someone can enlighten me!
Thanks,
Ben