From: Timmy Siu <timmy.siu@aol.com>
To: pgsql-general@lists.postgresql.org
Subject: Allowing client access
Date: Wed, 9 Oct 2019 20:33:41 +0800
Message-ID: <d08c493f-9845-2ab6-c0e3-6e0044eec452@aol.com> (raw)
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
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: timmy.siu@aol.com
Subject: Re: Allowing client access
In-Reply-To: <d08c493f-9845-2ab6-c0e3-6e0044eec452@aol.com>
References: <d08c493f-9845-2ab6-c0e3-6e0044eec452@aol.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