Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTe7V-0005Vp-ND for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 19:38:33 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTe7T-0003Ho-PG for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 19:38:33 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTe7T-0007Ha-5N for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 19:38:31 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TTe7S-0003v2-4u for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 19:38:30 +0000 Date: Wed, 31 Oct 2012 19:38:30 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost" To: pgsql-bugs@postgresql.org From: pj@illuminatedcomputing.com X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/255 X-Sequence-Number: 34555 The following bug has been logged on the website: Bug reference: 7632 Logged by: Paul Jungwirth Email address: pj@illuminatedcomputing.com PostgreSQL version: 9.1.6 Operating system: Ubuntu 12.04 LTS, x86_64 Description: = After a default install of Postgres, I see that it's binding not just to localhost, but also to my public IP. The port is reported open by nmap, and I see this: # netstat -an | grep 5432 tcp 0 0 66.175.223.51:5432 0.0.0.0:* = LISTEN = tcp 0 0 127.0.0.1:5432 0.0.0.0:* = LISTEN = Postgres still binds to the public IP even after I uncomment the `listen_addresses` line at `/etc/postgresql/9.1/main/postgresql.conf`, set it to the following, and do `service postgresql restart`: listen_addresses =3D 'localhost'