pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: Rodrigo Sakai <rodrigo.sakai@poli.usp.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Change port number
Date: Sun, 12 Feb 2006 20:13:44 -0500
Message-ID: <1834.1139793224@sss.pgh.pa.us> (raw)
In-Reply-To: <43EFDB98.1060201@commandprompt.com>
References: <000f01c63041$49743d80$1401a8c0@netsis01xp>
	<43EFDB98.1060201@commandprompt.com>

"Joshua D. Drake" <jd@commandprompt.com> writes:
> Rodrigo Sakai wrote:
>> I have a question about changing the port number of Databases 
>> server. It was told to me that is a good administrative practice to 
>> change the port number of the services, like change the 5432 to 6985 
>> or any other number. This is for security reasons. Is really a good 
>> practice?

> Well, not really. Anyone who wants to get in, is just going to scan your 
> ports to find out what is open anyway. What you really need to do
> is have a decent firewall in place and correctly configure postgresql 
> from the beginning.

It's just "security by obscurity".  Now there's nothing wrong with that,
as long as you realize that it's only one obstacle in the path of an
attacker, and not a very large one.  Use it as one component of your
security plan, but not the only one.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <1834.1139793224@sss.pgh.pa.us>
Permalink:  ../1834.1139793224@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1834.1139793224@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jd@commandprompt.com, rodrigo.sakai@poli.usp.br
  Subject: Re: Change port number
  In-Reply-To: <1834.1139793224@sss.pgh.pa.us>
  References: <000f01c63041$49743d80$1401a8c0@netsis01xp> <43EFDB98.1060201@commandprompt.com> <1834.1139793224@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