Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIBB5-0004jv-1I for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 12:34:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIBB3-0001vu-5h for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 12:34:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIBB2-0001vj-Ev for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2019 12:34:48 +0000 Received: from sonic309-19.consmr.mail.sg3.yahoo.com ([106.10.244.82]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIBAy-0001QZ-9m for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2019 12:34:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1570624478; bh=VMISe4GOFPENATN/iU9GAuIlRJgQvxvIL3Qp9YAhHNQ=; h=To:From:Subject:Date:From:Subject; b=l9LJju5aSpfTxgoIIu6UDDbYxddFpu+zvW3beKoZzwuJjwNZ42rluTIQZXtI4fRVDtos/ptqLD4XdYcx/oD33bvBRLRqj2Fy1YGHbiCBC2OgUwG6Oqk+G9OFhr3fjn1RAybtd+nz1j6rH6y2N0YbigGdfoS0MAuO1WdsxRNpsbYBQrpVJsb2l/SNdKo+ZK/JLQHNBtyB9xUCJHKvrXtOTn7qsfoIEwXlEhqXZEwRym0JKRDx7vyTGVfstzJsN2BMuuna2PiEgqcIJ7aZfIAwnt7WhFgcVJjwmh8gqAzjrrQPMJxy8UISO7WHl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T59a_1 ZV5ql_jWtBLHTOoya9KcWEuS9eAv14oOdVF6I5NtlcuPzviEOs7R0StJTbQyx9p6DTZnrdlvyJQ9 JrnjCdw8AWibeLd1UeUtiBZeHvGT.KYcoD2fshOQKnupWyxZlUGc9mLUiMoObBpDRa6bg4oPmZyj RTyVU1qMl3ytrDHGjIQME5DJWmPbcjLapVQS9x8veuzYvnpCiVzpvJzN2Hp0g8P6GCw5b9WcTCzT G6p0EnOt6R6HD_lxY9fooNK6kieA6MCdt8XTk62m7Qn9ZLSBFjAtCJ4IR Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.sg3.yahoo.com with HTTP; Wed, 9 Oct 2019 12:34:38 +0000 Received: by smtp406.mail.sg3.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 36216b3e72b8c2d7c440dddbec21c240; Wed, 09 Oct 2019 12:34:33 +0000 (UTC) To: pgsql-general@lists.postgresql.org From: Timmy Siu Subject: Allowing client access Message-ID: Date: Wed, 9 Oct 2019 20:33:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------CF3DD0AAB9F2B20E8C59285A" Content-Language: en-GB List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------CF3DD0AAB9F2B20E8C59285A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Dear All Users, * How do I allow an external client IP address access to my pgsql server? According to my own experience and test, if I set the external client IP address to, for example, 111.222.333.444 in the file /etc/postgresql/11/main/pg_hba.conf, it will not be able to connect to the server: #TYPE?????? DATABASE?????? ?? USER?????? ?????? ?????? ADDRESS?????? ?????? ?????? METHOD host?????? all?????? ?????? ?????? testuser 111.222.333.444 md5 I must set "address" to "any" as in the following: #TYPE?????? DATABASE?????? ?? USER?????? ?????? ?????? ADDRESS?????? ?????? METHOD host?????? all?????? ?????? ?????? testuser ???? ?????? 0.0.0.0/0?????? ?? md5 * Can I limit access to my pgsql server through TCP Wrapper? What is the related executable? Regards, Timmy --------------CF3DD0AAB9F2B20E8C59285A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Dear All Users,

  • How do I allow an external client IP address access to my pgsql server?
According to my own experience and test, if I set the external client IP address to, for example, 111.222.333.444 in the file /etc/postgresql/11/main/pg_hba.conf, it will not be able to connect to the server:
#TYPE?????? DATABASE?????? ?? USER?????? ?????? ?????? ADDRESS?????? ?????? ?????? METHOD
host?????? all?????? ?????? ?????? testuser ???? ?????? 111.222.333.444?????? md5

I must set "address" to "any" as in the following:
#TYPE?????? DATABASE?????? ?? USER?????? ?????? ?????? ADDRESS?????? ?????? METHOD
host?????? all?????? ?????? ?????? testuser ???? ?????? 0.0.0.0/0?????? ?? md5


  • Can I limit access to my pgsql server through TCP Wrapper? What is the related executable?


Regards,
Timmy

??
--------------CF3DD0AAB9F2B20E8C59285A--