Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7BC0F133616B for ; Fri, 11 Mar 2011 11:32:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 40661-08 for ; Fri, 11 Mar 2011 15:31:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id C5BCA1337BA6 for ; Fri, 11 Mar 2011 11:31:55 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p2BFVpD24018; Fri, 11 Mar 2011 10:31:51 -0500 (EST) From: Bruce Momjian Message-Id: <201103111531.p2BFVpD24018@momjian.us> Subject: Re: Listen on IPv6 only In-Reply-To: <1299790117.15499.17.camel@gilbertoc.mtcorp.etecsa.cu> To: gilberto.castillo@etecsa.cu Date: Fri, 11 Mar 2011 10:31:51 -0500 (EST) CC: Dyonisius Visser , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1299857511-15265-0_" Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/145 X-Sequence-Number: 37017 --ELM1299857511-15265-0_ Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UNKNOWN-8BIT" Gilberto Castillo Martínez wrote: > > > El jue, 10-03-2011 a las 15:33 -0500, Bruce Momjian escribi?: > > Dyonisius Visser wrote: > > > On 10 March 2011 21:03, Bruce Momjian wrote: > > > > > > > OK, let's skip documenting this then. ?They can already do this via > > > > pg_hba.conf. > > > > > > Restricting access via pg_hba.conf is something else than listening > > > (or not) on sockets... > > > > > > FYI, the listen_addresses is basically the same as sshd's ListenAddress. > > > > Yes, listen_addresses prevents anyone from even binding to the address. > > I keep thinking you should put that information somewhere accessible > comun. Attached doc patch applied. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --ELM1299857511-15265-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/listen.diff" diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 8e27f73..0c682c8 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -324,7 +324,9 @@ SET ENABLE_SEQSCAN TO OFF; to listen for connections from client applications. The value takes the form of a comma-separated list of host names and/or numeric IP addresses. The special entry * - corresponds to all available IP interfaces. + corresponds to all available IP interfaces. The entry + 0.0.0.0 allows listening for all IPv4 addresses and + :: allows listening for all IPv6 addresses. If the list is empty, the server does not listen on any IP interface at all, in which case only Unix-domain sockets can be used to connect to it. --ELM1299857511-15265-0_--