Re: Use "samehost" by default in pg_hba.conf? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Use "samehost" by default in pg_hba.conf?
Date
Msg-id 3EFF89A0-F705-4A97-88A1-FB5044A36736@hagander.net
Whole thread Raw
In response to Re: Use "samehost" by default in pg_hba.conf?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Use "samehost" by default in pg_hba.conf?
List pgsql-hackers
On 1 okt 2009, at 06.53, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Peter Eisentraut <peter_e@gmx.net> writes:
>> On Wed, 2009-09-30 at 22:08 -0400, Tom Lane wrote:
>>> (Note that you would still need a non-default setting of
>>> listen_addresses for "-h machine_name" to actually work.)
>
>> Which makes this proposal kind of uninteresting.
>
> Although come to think of it ... is there any reason besides sheer
> conservatism to not make the default listen_addresses value '*'?
> It won't result in letting in any outside connections unless you
> also add pg_hba.conf entries.

Absolutely. One less opportunity to DOS the server - it's certainly  
cheaper to deal with connection floods by never even answering the  
socket. Also, showing up in portscans for example.

Now, that trust authentication is a different issue ;)

/Magnus



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Use "samehost" by default in pg_hba.conf?
Next
From: Jaime Casanova
Date:
Subject: Re: Use "samehost" by default in pg_hba.conf?