pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jens Porup <jens@cyber.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres IDENT auth problems...
Date: Thu, 01 Jul 2004 09:09:15 -0400
Message-ID: <26238.1088687355@sss.pgh.pa.us> (raw)
In-Reply-To: <20040701033844.GA7583@vanilla.office.cyber.com.au>
References: <20040701033844.GA7583@vanilla.office.cyber.com.au>

Jens Porup <jens@cyber.com.au> writes:
> I can connect manually to the database, like so:

>         root@request-tracker:~# psql -d template1 -U rtuser -W
>         Password:
>         Welcome to psql 7.4.2, the PostgreSQL interactive terminal.

> But it fails if I specify the host:

>         root@request-tracker:~# psql -d template1 -U rtuser -h localhost -W
>         Password:
>         psql: could not connect to server: Connection refused
>         Is the server running on host "localhost" and accepting
>         TCP/IP connections on port 5432?

"Connection refused" means that you got a kernel-level rejection; the
postmaster never saw your request at all.  AFAICS you did everything
right to ensure that the postmaster is listening on TCP port 5432
(though you may want to use netstat to reconfirm this).  So that
leaves firewall-type problems.  There is of course no separate firewall
box to blame, but there definitely can be kernel packet filters
getting in the way.

I know that recent Red Hat releases default to blocking port-5432
traffic (along with most other ports).  I don't know Debian but I'd
bet it's the same story.  You need to look to your ipchains or iptables
configuration.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <26238.1088687355@sss.pgh.pa.us>
Permalink:  ../26238.1088687355@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26238.1088687355@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jens@cyber.com.au
  Subject: Re: Postgres IDENT auth problems...
  In-Reply-To: <26238.1088687355@sss.pgh.pa.us>
  References: <20040701033844.GA7583@vanilla.office.cyber.com.au> <26238.1088687355@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox