postgresql listens on all interfaces by default

Bug #12530 reported by 66dny9r02
8
Affects Status Importance Assigned to Milestone
postgresql (Ubuntu)
Invalid
Medium
Martin Pitt

Bug Description

PostgreSQL listens on any interface instead of loopback only by default like
other servers do. (/etc/postgresql/postgresql.conf:virtual_host) I suppose
that's not intended.

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #0)
> PostgreSQL listens on any interface instead of loopback only by default like
> other servers do.

What do you mean by "other servers"? ssh, exim4, and other server packages
usuall do listen on all interfaces to make them work out of the box. The
exceptions are packages which are installed by default in the "Desktop" task
(like postfix, portmap, and Cups); because of our "zero open ports in the
default install" policy these must be restricted to localhost only.

PostgreSQL is not installed by default, and thus it should listen on all
interfaces. Please note that you cannot connect from non-localhost anyway since
this must explicitly be configured in /etc/postgresql/pg_hba.conf. Requiring the
same kind of configuration in _two_ configuration files is confusing and
unnecessary.

Revision history for this message
66dny9r02 (66dny9r02) wrote :

Ok, I agree (I was looking at mysql, which doesn't listen on all interfaces, and
thought that was normal). This is better indeed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.