Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijTT9-0004Vk-80 for pgsql-admin@arkaria.postgresql.org; Mon, 23 Dec 2019 19:34:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijTT8-0005RU-1K for pgsql-admin@arkaria.postgresql.org; Mon, 23 Dec 2019 19:34:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijTT7-0005RM-KQ for pgsql-admin@lists.postgresql.org; Mon, 23 Dec 2019 19:34:17 +0000 Received: from imx6.etecsa.cu ([200.55.152.141]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijTT4-000427-Sf for pgsql-admin@postgresql.org; Mon, 23 Dec 2019 19:34:16 +0000 Received: from mail.etecsa.cu (unknown [192.168.91.10]) by imx6.etecsa.cu (Postfix) with ESMTP id 5D03D7E; Mon, 23 Dec 2019 14:34:11 -0500 (CST) Received: from webmailrc.etecsa.cu (unknown [192.168.97.37]) (Authenticated sender: gilberto.castillo) by mail.etecsa.cu (Postfix) with ESMTPA id 5B86830088CE; Mon, 23 Dec 2019 14:34:11 -0500 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 23 Dec 2019 14:34:11 -0500 From: gilberto.castillo@etecsa.cu To: soumik.bhattacharjee@kpn.com Cc: pgsql-admin@lists.postgresql.org, pgsql-admin@postgresql.org Subject: Re: [MASSMAIL]Cannot connect to postgresql on port 5432 In-Reply-To: <2A91BEF8171A5349931391E0C721CC537D772EF8@CPEMS-KPN501.KPNCNL.LOCAL> References: <2A91BEF8171A5349931391E0C721CC537D772EF8@CPEMS-KPN501.KPNCNL.LOCAL> X-Priority: 1 (Highest) Message-ID: <3992c5f7d10f011266aeaeb55563920c@etecsa.cu> X-Sender: gilberto.castillo@etecsa.cu User-Agent: Roundcube Webmail/1.2.5 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 149120 [Dec 23 2019] X-KLMS-AntiSpam-Version: 5.8.14.0 X-KLMS-AntiSpam-Envelope-From: gilberto.castillo@etecsa.cu X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Info: LuaCore: 336 336 9396dd2f401bf2feca9da187509bda34e224ee24, {Tracking_content_type, plain}, {Tracking_from_domain_doesnt_match_to}, Auth:dkim=none X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 1970/01/01 00:00:00 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2019/12/23 08:24:00 #11126254 X-KLMS-AntiVirus-Status: Clean, skipped List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi You might change postgresl.conf the line listening = '*' El 2019-12-23 14:30, soumik.bhattacharjee@kpn.com escribió: > Hi Experts, > > Post installation of PostgreSQL it is not listening on an IP, only on > localhost. > > Please suggest your inputs. > > USED BELOW COMMAND FOR INSTALLATIONS – > > # APT-GET INSTALL POSTGRESQL-12 > > postgres=# select version(); > > version > > ------------------------------------------------------------------------------------------------------------------ > > > PostgreSQL 12.1 (Debian 12.1-1.pgdg100+1) on x86_64-pc-linux-gnu, > compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit > > (1 row) > > ENTRIES IN ::: /ETC/POSTGRESQL/12/MAIN/PG_HBA.CONF > > # Database administrative login by Unix domain socket > > local all postgres peer > > # TYPE DATABASE USER ADDRESS METHOD > > > # "local" is for Unix domain socket connections only > > local all all peer > > # IPv4 local connections: > > host all all 127.0.0.1/32 md5 > > # IPv6 local connections: > > host all all ::1/128 md5 > > # Allow replication connections from localhost, by a user with the > > # replication privilege. > > local replication all peer > > host replication all 127.0.0.1/32 md5 > > host replication all ::1/128 md5 > > NOT CONNECTED > > POSTGRES@SRV:/OPT$ NETSTAT -NLP | GREP 5432 > > (Not all processes could be identified, non-owned process info > > will not be shown, you would have to be root to see it all.) > > tcp 0 0 127.0.0.1:5432 0.0.0.0:* > LISTEN 25857/postgres > > unix 2 [ ACC ] STREAM LISTENING 74234 > 25857/postgres /var/run/postgresql/.s.PGSQL.5432 > > POSTGRES@SRV:~$ TELNET 10.133.214.32 5432 > > Trying 10.133.214.32... > > telnet: Unable to connect to remote host: Connection refused