pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anderson Lunz <andersonmlunz@yahoo.ca>
To: CS DBA <cs_dba@consistentstate.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Canot access PostgreSQL via psql -h (Vmware Fusion)
Date: Tue, 4 Sep 2012 16:17:51 -0400
Message-ID: <C444C423-3CD2-4D5C-B441-E6A340CD09F3@yahoo.ca> (raw)
In-Reply-To: <64CA6636-C7A2-4305-8A06-A133DEEFEAE7@consistentstate.com>
References: <64CA6636-C7A2-4305-8A06-A133DEEFEAE7@consistentstate.com>

	Hi! Try to check the iptables. If you don't need a firewall just disable it. As root, try the following:

	service iptables status
	service iptables stop
	
	To disable it from starting at boot time, use:
	chkconfig iptables off

	Regards,

	Anderson Lunz.


On 2012-08-24, at 00:15, CS DBA wrote:

> Hi all;
> 
> I've fired up 2 CentOS 6.2 VM's via vmware fusion 5 (on a mac).
> 
> I disables selinux on both, and installed postgres 8.4.13 on both VM's
> 
> I set listen_addresses = '*'
> and I added a trust entry for each server in the opposite server's pg_hba.conf file.
> 
> However I cannot access one server from the other one via psql -h <I.P. address>
> 
> I get the standard error:
> 
> psql -h 192.168.91.145
> psql: could not connect to server: No route to host
> 	Is the server running on host "192.168.91.145" and accepting
> 	TCP/IP connections on port 5432?
> 
> 
> I can ssh between servers, I see no entry in the postgres log per the connection attempt (I have log_connections set to on)
> 
> Currently I have networking set to "share with my mac" or NAT.  I tried setting networking to "Private to my mac" with the same results. Tried Autodetect (Bridged) as well, no luck
> 
> 
> Can anyone help me debug this?
> 
> Thanks in advance
> 
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin





view thread (8+ messages)

Message-ID: <C444C423-3CD2-4D5C-B441-E6A340CD09F3@yahoo.ca>
Permalink:  ../C444C423-3CD2-4D5C-B441-E6A340CD09F3@yahoo.ca/
Also on:    postgresql.org/message-id/C444C423-3CD2-4D5C-B441-E6A340CD09F3@yahoo.ca

 · 

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: andersonmlunz@yahoo.ca, cs_dba@consistentstate.com
  Subject: Re: Canot access PostgreSQL via psql -h (Vmware Fusion)
  In-Reply-To: <C444C423-3CD2-4D5C-B441-E6A340CD09F3@yahoo.ca>
  References: <64CA6636-C7A2-4305-8A06-A133DEEFEAE7@consistentstate.com> <C444C423-3CD2-4D5C-B441-E6A340CD09F3@yahoo.ca>

* 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