Re: Getting rid of "accept incoming network connections" prompts on OS X

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Dave Page <dpage(at)pgadmin(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Getting rid of "accept incoming network connections" prompts on OS X
Date: 2014-10-25 18:52:36
Message-ID: 11427.1414263156@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> Have we dug deep enough into the firewall configuration to evaluate
>> other options? Can we, for example, exclude a port range?

> Not that I've been able to detect. Any simple way to do that would
> presumably open up exactly the security hole Apple is trying to close,
> so I'd bet against there being one. (It is annoying that the firewall
> triggers on ports bound to 127.0.0.1, though --- it's not apparent why
> that's a security risk. Perhaps there's some way to adjust that choice?)

And a bit of experimentation later: it seems that on Yosemite (and
probably earlier OS X versions), "localhost" maps to all three of these
addresses:
127.0.0.1
::1
fe80:1::1
Binding to 127.0.0.1 does not trigger the firewall popup. Binding
to ::1 doesn't, either. But binding to fe80:1::1 does. So the
easy fix, for a default installation, is to keep the postmaster
from binding to that last address.

I'm not sufficiently up on my IPv6 to be sure exactly what that third
address does. Perhaps it is a bug in the firewall logic that it
considers that address external? If it *is* externally accessible,
what the heck is the OS doing including it in "localhost"?

(Not sure if it's relevant, but I've got IPv6 set to "link-local only"
in network preferences.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2014-10-25 19:00:33 Re: How ugly would this be? (ALTER DATABASE)
Previous Message Tom Lane 2014-10-25 18:26:01 Re: Getting rid of "accept incoming network connections" prompts on OS X