Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCXPp-0008W3-VE for pgsql-general@arkaria.postgresql.org; Sun, 08 Aug 2021 01:15:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mCXPo-00049G-4N for pgsql-general@arkaria.postgresql.org; Sun, 08 Aug 2021 01:15:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCXPn-000498-Rf for pgsql-general@lists.postgresql.org; Sun, 08 Aug 2021 01:15:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCXPh-0004BW-Jq for pgsql-general@lists.postgresql.org; Sun, 08 Aug 2021 01:15:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1781FdBF2860896; Sat, 7 Aug 2021 21:15:40 -0400 From: Tom Lane To: ourdiaspora cc: "pgsql-general@lists.postgresql.org" Subject: Re: php connection failure In-reply-to: References: Comments: In-reply-to ourdiaspora message dated "Sun, 08 Aug 2021 00:36:47 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2860894.1628385339.1@sss.pgh.pa.us> Date: Sat, 07 Aug 2021 21:15:39 -0400 Message-ID: <2860895.1628385339@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ourdiaspora writes: > psql -d cpacweb -U cpaca > psql: FATAL: Peer authentication failed for user "cpaca" The reason that's able to make a connection to the PG server is that it's not going through TCP at all, but a Unix socket. I'd guess at this point that your configuration never worked for TCP connections --- either localhost or not --- because your kernel packet filter isn't permitting it. It's a gold plated certainty that the default packet filter configuration wouldn't allow traffic to port 5432 from off-machine. Whether it would allow such traffic from localhost is less certain, but the symptoms you're showing sure look like yours doesn't. Saying you haven't touched that configuration doesn't excuse you from investigating it. regards, tom lane