Re: another can't connect

From: Chris <dmagick(at)gmail(dot)com>
To: BJ Freeman <bjfree(at)free-man(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: another can't connect
Date: 2009-06-29 03:14:03
Message-ID: 4A48317B.8050109@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Please don't top-post, it's so hard to follow discussions.

> Chris sent the following on 6/28/2009 7:33 PM:
>> BJ Freeman wrote:
>>> PostgreSQL version 8.1.11 (With schemas)
>>> I have read the recent emails and believe I have covered all the bases
>>> from net stat
>>> tcp 0 0 127.0.0.1:5432 0.0.0.0:*
>>> LISTEN 5091/postmaster
>>>
>>> I do a
>>> psql -h 127.0.0.1 -U ofbiz -d ofbiz
>>> from a terminal on the server.
>>>
>>> and get this after a time
>>> psql: could not connect to server: Connection timed out
>>> Is the server running on host "127.0.0.1" and accepting
>>> TCP/IP connections on port 5432?
>>>
>>> Note this was working till about Fri.
>>> then only thing I have been doing is adding to my IPtables.
>>
>>> ACCEPT tcp -- localhost localhost tcp
>>> dpt:postgres state NEW
>> What about established connections?

> tcp 0 0 127.0.0.1:5432 0.0.0.0:*
> LISTEN
> is the only line for that port

established connections for the firewall, not just new connections.

see man iptables, --ctstate .

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrej 2009-06-29 03:14:50 Re: another can't connect
Previous Message BJ Freeman 2009-06-29 02:56:59 Re: another can't connect