From: Stephan Knauss <pgsql@stephans-server.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
Date: Tue, 22 Jun 2021 07:58:02 +0200
Message-ID: <87baf008-b06c-cb5a-55fb-df371651d049@stephans-server.de> (raw)
In-Reply-To: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
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
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-general@postgresql.org
Cc: pgsql@stephans-server.de
Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
In-Reply-To: <87baf008-b06c-cb5a-55fb-df371651d049@stephans-server.de>
References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com> <87baf008-b06c-cb5a-55fb-df371651d049@stephans-server.de>
* 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