Resources · Port reference · port 6432
Port 6432 (PgBouncer): what it is and how to secure it
PgBouncer is a PostgreSQL pool. It is a database port.
Check command
ss -tulpn | grep 6432
Copied.
Bind it to 127.0.0.1. Use SCRAM to the upstream Postgres, which should also be on localhost. Do not point PgBouncer at a public Postgres to "hide" it.
ss -tulpn | grep 6432
A 0.0.0.0 or :: address is a public listener. 127.0.0.1 is local.