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 1lw75H-0008FO-OC for pgsql-general@arkaria.postgresql.org; Wed, 23 Jun 2021 17:54:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lw75G-0004sc-PQ for pgsql-general@arkaria.postgresql.org; Wed, 23 Jun 2021 17:54:42 +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 1lw72B-0007gl-Px for pgsql-general@lists.postgresql.org; Wed, 23 Jun 2021 17:51:31 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw729-0000q9-CP for pgsql-general@lists.postgresql.org; Wed, 23 Jun 2021 17:51:30 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 9A5A44EF6; Wed, 23 Jun 2021 19:51:27 +0200 (CEST) Date: Wed, 23 Jun 2021 19:51:27 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Psql wants to use IP6 when connecting to self using tcp... Message-ID: <20210623175127.GB27765@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021-06-21 19:44:16 -0500, Jerry Levan wrote: > The below fails... the 'fe80....' is the ip6 address of big box. > [jerry@bigbox ~]$ psql -h bigbox > psql: error: FATAL: no pg_hba.conf entry for host "fe80::fe3f:dbff:fed1:= f62e%enp7s0", user "lxxx", database "lxxx", SSL off This looks like a configuration error in your DNS. FE80:... is a link-local address, and you generally don't want them in DNS. Either remove that completely (as others have already suggested) or replace if with the global unicast (or at least unique local) IPv6 address (and then add that to pg_hba.conf). If the address isn't in DNS, check your /etc/hosts. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmDTdJoACgkQ8g5IURL+ KF2zDxAArcLXd75VgaO0T7A95svaJwj8oprE5z4OW2N9KEJ7333XjLJ3RtZIi7H+ 8n3N43xJBaXogbt3ZNPe/O0uUlbi0MzbNBnks8AYR/QNPS1QJZZ/8sFNzewfYOAz vdLlnduYk6R6WGuGmd+TR3bBLTLr5T+f/O/qEYxwUVSn7S1BO4ekG2LyrZbuT3IH qQcz5MQ6gzcB7XWnfU9zxyDmRaGfnVnr0hCK2Z6wtolMg04vFX0QXv2yJnLyBvXi FgWR5a5/nbqD7v5eklFvO1N8JWHUWzf+BsBfCCoY2CXHhw2ML9pmjz9Qe4p/21ws GLHghbgD6QqNrhnxCtN3Y1u+UJF97h7TUUdZ3aA+vn7tDUw3AA5n8oH0CsklCb48 rXtZuktdfvjz6gGeVWVcOtJCMsf0bhqOoAVh3Z9WomqrEPcQbrOcr/WluBA2ReSc uVLIiaxvHG1BBIGJh4uCWST+BpdbYTdSTeGmBwfOjwVE07esNTeVEqSfxfYKnvyA ri30IMv/6yfh0j9FBXO2VzxzST5IiWF7nnE90FdiXpQM5t8t4HY2OTE5UykJZ+LP tciZZkQXIPKoNpvrGbZP9jPIqxFnsswAB4zWsAhhIOthAlqqe+SyD5Y3RrAtOARY Zpbti0tzdDxtPUfU+ATMnVxpOS4NNQjEtLOCBF0kDD4V4AD+2/g= =UaLZ -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--