pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Levan <jerry.levan@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Psql wants to use IP6 when connecting to self using tcp...
Date: Mon, 21 Jun 2021 19:44:16 -0500
Message-ID: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com> (raw)

Today I upgraded my Fedora system to Fedora 35 which included an upgrade to
PostgreSQL 13.x.x.
I did an initdb and restored my existing db from a dump. 

I modified pg_hba.conf to allow access machines on my local network
host    all             all             192.168.1.0/24          trust
I modified postgresql.conf to listen to all interfaces.

 Localhost works...
[jerry@bigbox ~]$ psql
psql (13.3)
Type "help" for help.

levan=# \q
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

Using the ip4 address of bigbox works
[jerry@bigbox ~]$ psql -h 192.168.1.75
psql (13.3)
Type "help" for help.

lxxx=# 

I can connect to/from the other machines in my local network...
Netstat shows that Postgres is listening on a ip6 interface.

What  did I have to do get the 'fatal' above case to work?

Trapped in Steve Jobs Reality Distortion Field




view thread (9+ messages)  latest in thread

Message-ID: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
Permalink:  ../E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com/
Also on:    postgresql.org/message-id/E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com

 · 

reply

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: jerry.levan@gmail.com
  Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
  In-Reply-To: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
  References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>

* 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