pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jason L. Amerson <drjason@alphagenius.org>
Cc: 'Adrian Klaver' <adrian.klaver@aklaver.com>
Cc: 'PostgreSQL' <pgsql-general@lists.postgresql.org>
Subject: Re: Remote Connection Help
Date: Sat, 23 Nov 2019 13:20:15 -0500
Message-ID: <6277.1574533215@sss.pgh.pa.us> (raw)
In-Reply-To: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABuVVSK1v04TJ0tdXt5WWqWAQAAAAA=@alphagenius.org>
References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org>
	<30565.1574365295@sss.pgh.pa.us>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAADOEJI873oKRryLCsjPa3CMAQAAAAA=@alphagenius.org>
	<e3e3f445-b608-00c8-1ee5-8f6caa39b019@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABM2v1p8+7ITIOK7/K4ym/CAQAAAAA=@alphagenius.org>
	<f8e01e08-d2f3-b82a-149b-3e9c4ed9f425@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAQvQm11sXiQYE+SPyhFDycAQAAAAA=@alphagenius.org>
	<da7712de-60d4 -a28a-82d1-642 841f939fa@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAD98zB/RR6pR6qPvq0atpJVAQAAAAA=@alphagenius.org>
	<c3c5e1e4-c3e2-538b-352c-8ec9091044c4@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7! tuYAAAAAAA4AABAAAABuVVSK1v04TJ0tdXt5WWqWAQAAAAA=@alphagenius.org>

"Jason L. Amerson" <drjason@alphagenius.org> writes:
> I removed both version of PostgreSQL from Ubuntu. I had to delete some
> files manually. I used the repository to install PostgreSQL and then I
> configured it for remote access and now everything works great! I can
> log in from my Windows computers using pgAdmin. Thank you to you and
> everyone else who had the patience to work with me. I appreciate all of
> your help. I just have one last question. I see many tutorials on the
> Internet showing you how to setup iptables with PostgreSQL. Should I do
> this or not?

Usually the reason for messing with iptables is either

1. You have to, because your machine's default firewall rules aren't
letting in connections to Postgres.  You evidently haven't got that
problem.

2. You want to block off access to the database server from addresses
you don't trust.  Configuring pg_hba.conf is typically a sufficient
answer for that; but you might want an iptables filter too, either
because you're a belt-and-suspenders-too kind of guy, or because you're
afraid of DDoS storms with more connection requests/sec than Postgres
can reject easily.  I can't say whether either of those apply to you;
but I would note that the DDoS scenario only applies if your server
is reachable from the net-at-large, which is seldom a good idea in
the first place.

			regards, tom lane





view thread (37+ messages)

Message-ID: <6277.1574533215@sss.pgh.pa.us>
Permalink:  ../6277.1574533215@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6277.1574533215@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, drjason@alphagenius.org, adrian.klaver@aklaver.com
  Subject: Re: Remote Connection Help
  In-Reply-To: <6277.1574533215@sss.pgh.pa.us>
  References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org> <30565.1574365295@sss.pgh.pa.us> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAADOEJI873oKRryLCsjPa3CMAQAAAAA=@alphagenius.org> <e3e3f445-b608-00c8-1ee5-8f6caa39b019@aklaver.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABM2v1p8+7ITIOK7/K4ym/CAQAAAAA=@alphagenius.org> <f8e01e08-d2f3-b82a-149b-3e9c4ed9f425@aklaver.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAQvQm11sXiQYE+SPyhFDycAQAAAAA=@alphagenius.org> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAD98zB/RR6pR6qPvq0atpJVAQAAAAA=@alphagenius.org> <c3c5e1e4-c3e2-538b-352c-8ec9091044c4@aklaver.com> <6277.1574533215@sss.pgh.pa.us>

* 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