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 1lvZQK-0005lQ-4Y for pgsql-general@arkaria.postgresql.org; Tue, 22 Jun 2021 05:58:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lvZQI-0001gx-U4 for pgsql-general@arkaria.postgresql.org; Tue, 22 Jun 2021 05:58:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvZQI-0001gp-L6 for pgsql-general@lists.postgresql.org; Tue, 22 Jun 2021 05:58:10 +0000 Received: from [2a01:4f9:3a:121a::2] (helo=mail.stephans-server.de) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvZQG-0001ge-9o for pgsql-general@lists.postgresql.org; Tue, 22 Jun 2021 05:58:10 +0000 Received: from [192.168.178.22] (i59F7CA2B.versanet.de [::ffff:89.247.202.43]) (AUTH: PLAIN knauss, ) by mail.stephans-server.de with ESMTPSA id 00000000038E0003.0000000060D17BEB.0032B956; Tue, 22 Jun 2021 07:58:03 +0200 Subject: Re: Psql wants to use IP6 when connecting to self using tcp... To: pgsql-general@lists.postgresql.org References: From: Stephan Knauss Message-ID: <87baf008-b06c-cb5a-55fb-df371651d049@stephans-server.de> Date: Tue, 22 Jun 2021 07:58:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:3a:121a::2 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22.06.2021 02:44, 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 > [...] > Netstat shows that Postgres is listening on a ip6 interface. You stated earlier, that you instructed PostgreSQL to listen to all interfaces. This includes IPv6. Your configuration misses to configure trust for your IPv6 network. Alternatively you can change your network configuration to run on IPv4 and not use IPv6. You would remove the IPv6 interface from PostgreSQL and change resolver to return IPv4 (A record, not AAAA) for your host. Stephan