pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timmy Siu <timmy.siu@aol.com>
To: Bob Jolliffe <bobjolliffe@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Allowing client access
Date: Thu, 10 Oct 2019 02:39:55 +0800
Message-ID: <09a5e67e-646d-4efb-2879-d66da69e54f5@aol.com> (raw)
In-Reply-To: <CACd=f9fN9Vyh-pxjp-hahaa-DeBGWDrxZf-2aDBLw7Fwi5G+ng@mail.gmail.com>
References: <d08c493f-9845-2ab6-c0e3-6e0044eec452@aol.com>
	<CACd=f9fN9Vyh-pxjp-hahaa-DeBGWDrxZf-2aDBLw7Fwi5G+ng@mail.gmail.com>

Dear Bob,
Thank you.?? hostssl works out of the box!?? It does not require extra 
configuration.?? I can connect to my own pgsql server via pgadmin 4.?? I 
personally feel that Postgresql v11 is much clever than Mysql v5.7 (I 
haven't tried its v8).

I also have tested postgres against TCP Wrappers but it is not compiled 
against TCP wrappers library.?? May I suggest the community to have 
postgres to work with TCP wrappers.?? Its security will be better.

Regards,
Timmy


> Hi Timmy
>
> You need to use CIDR form in your pg_hba.conf.  So:
>
> host all testuser  111.222.333.444/32  md5
>
> Most likely you would probably want to ensure ssl connection if coming
> over untrusted network.  So, at minimum, this is better:
>
> hostssl all testuser  111.222.333.444/32  md5
>
> This is better still:
>
> hostssl testdb testuser  111.222.333.444/32  md5
>
> Better still (IMHO) is to keep it local and use ssh tunnel, but I
> understand that might be difficult and not necessarily desirable,
> depending on the context.
>
> Regards
> Bob





view thread (4+ messages)  latest in thread

Message-ID: <09a5e67e-646d-4efb-2879-d66da69e54f5@aol.com>
Permalink:  ../09a5e67e-646d-4efb-2879-d66da69e54f5@aol.com/
Also on:    postgresql.org/message-id/09a5e67e-646d-4efb-2879-d66da69e54f5@aol.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: timmy.siu@aol.com, bobjolliffe@gmail.com
  Subject: Re: Allowing client access
  In-Reply-To: <09a5e67e-646d-4efb-2879-d66da69e54f5@aol.com>
  References: <d08c493f-9845-2ab6-c0e3-6e0044eec452@aol.com> <CACd=f9fN9Vyh-pxjp-hahaa-DeBGWDrxZf-2aDBLw7Fwi5G+ng@mail.gmail.com> <09a5e67e-646d-4efb-2879-d66da69e54f5@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