PostgreSQL on Private Network Not connection

December 5, 2018 703 views
PostgreSQL Networking Ubuntu 18.04

Been working through the tutorials, google, everything I can find to figure out why my Postgres server won’t talk with the other droplets on the account. SSH does work between all the droplets, Postgres does not.

listen address is setup to the private network address (even tried with *).
HBA file has all other droplets private addresses (even tried with allow all addresses)
Tried with UFW both on and off.
Can connect on machine from CLI but not from others.

2 Answers

Hey friend,

While I’m not a heavy Postgres user myself, I found this tutorial and it’s leading me to believe that there may be just a bit more necessary than bind address and an open port, does this tutorial seem at all helpful?

https://blog.bigbinary.com/2016/01/23/configure-postgresql-to-allow-remote-connection.html

My apologies if not.

Jarland

Nope. The issue was a setting. Also using the Cloud Firewalls and didn’t realize they also work on the private interface as well as the public one.

A case of being over secure by accident.

Have another answer? Share your knowledge.