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 1l2lLa-0006uh-MA for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 01:34:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2lLZ-0007Uk-G8 for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 01:34:45 +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 1l2lLZ-0007Uc-8s for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 01:34:45 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l2lLW-00027r-AL for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 01:34:44 +0000 Received: by mail-ot1-x32e.google.com with SMTP id n42so3624309ota.12 for ; Thu, 21 Jan 2021 17:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=MaU7MArMww0eYlUsKTsg5YcLAMXvraLravIW6ZUwPaw=; b=WY/xVhNU8BeseVaNMTHCmwEdhL7OOP/hdrf8nKzpCdQI5rcYKkGjmVZaNhNu1q3+8p W2ugG+knXzPoS23lZxsSnRGG60wuLHWCmaOD559p4ZrEWb9tVTW4tXayUf51bTMGNMsa GnH87wVjEvlzAUGSO8sVaSJOlUuD9CffJ/PYjz4VfIRMYHPpp2gtgf/kokIGBI0Fp9v1 QeTuuWjCOnvkpYH9jPOgQHFZNFTTWHTx9DOH/nT8ImpzqiSE4Uu8bB7qxmBjTbgxVVpb 14F5cgZN1298y4RJe7FTtWvM2JcBkccAAPEfQao/BxkquPWYn/5MSyLVCHoKUdnrWzpt JQwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=MaU7MArMww0eYlUsKTsg5YcLAMXvraLravIW6ZUwPaw=; b=YK8HOphQ+eeHNhvrdS485nhoJON1VAwBnynTVNq71qyzBtP9uH+2KH/8pQDr2xAB1X SU++56S0OcwtA55Cqg47Shu1rztQ2UhnYxdYIifvxpYZ1dkuG6I8TP3Czw1uLT7hewYW sEZ0nv+kQDt+PkKad7+38M1ppF8U+FqRsu8zBQtR2R+nkfdiwYNdj6Ezzn1X/cIfbGCT k+aWVgswR2n1Do5GuwLVQDOZPE3LnzwzZ/6o9dwLqkpFdjKeUi4mpibqbgUlC9dt4BX4 mLT0OoAMc8zlNbasnr3RJ6vUeWo+IxU61NON9xE6hXnG8tfrjTbMB0I5os6yg7iUvTNk w6rg== X-Gm-Message-State: AOAM5303yOOAD6RaNj4a3C+walfdoBtf/d+S+JsvGClTspx98r4wAM02 NJubD0wV2CKtHXOitV5tVtR/t3JrKPfaEw== X-Google-Smtp-Source: ABdhPJxs5Le3eamhs+BijQll4GFJ4iUbNvrGFx3qgxIkK1oEeY5u5S01MuCB+8njElsWbeFoQwud7Q== X-Received: by 2002:a9d:171b:: with SMTP id i27mr1528540ota.203.1611279280033; Thu, 21 Jan 2021 17:34:40 -0800 (PST) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id i197sm1424660oib.35.2021.01.21.17.34.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 17:34:39 -0800 (PST) Subject: Re: Customer unable to connect on port 5432, Postgres 10.7 To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <5bc6e437-f37a-9a7b-0bfb-abcdca6ba154@gmail.com> Date: Thu, 21 Jan 2021 19:34:38 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.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 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/21/21 7:30 PM, Keith Christian wrote: > Hello again Postgres friends, > > Customer is unable to log in to a PG database on 5432 using a Windows client. > Output of my test sessions below, I think the problem may be lines 3 - > 7 but no idea. > Ideas greatly appreciated! > > > Lines 1,2 PG Log entries > Lines 3-7 pg_hba.conf entries > Lines 8-10 postgresql.conf entries > Lines 11-12 Logging into the postgresql machine from a Linux machine > Lines 13-15 Successfully logged in, testing that SSH to the > linuxserver is successful > Lines 16-20 pguser successfully executes a query > > 1. LOG: connection received: host=aaa.bbb.ccc.ddd port=52310 Is "52310" a typo? > 2. 2021-01-21 15:34:00.657 MST [12011] FATAL: no pg_hba.conf > entry for host "aaa.bbb.ccc.ddd", user "pguser", database "testpgdb", > SSL off > > > 3. # IPv4 local connections: > 4. # host all all 127.0.0.1/32 ident > 5. host pguser all eee.fff.ggg.1/24 password > 6. host pguser all hhh.jjj.kkk.1/24 password > 7. host pguser all 0.0.0.0/0 password > > > 8. #listen_addresses = 'localhost' > 9. listen_addresses = '*' > 10. #port = 5432 > > > 11. pguser@linuxserver:~$ ssh -q pguser@www.xxx.yyy.zzz > 12. pguser@www.xxx.yyy.zzz's password: > > > 13. [pguser@pgserver ~]$ psql -U pguser -W testpgdb > 14. pguser=> \conninfo > 15. You are connected to database "testpgdb" as user "pguser" via > socket in "/var/run/postgresql" at port "5432". What if you add aaa.bbb.ccc.ddd/32 to pg_hba.conf? -- Angular momentum makes the world go 'round.