Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 565981337BCC for ; Thu, 10 Mar 2011 14:37:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 74906-07 for ; Thu, 10 Mar 2011 18:37:16 +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 981C91337B6E for ; Thu, 10 Mar 2011 14:37:15 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p2AIb7k12435; Thu, 10 Mar 2011 13:37:07 -0500 (EST) From: Bruce Momjian Message-Id: <201103101837.p2AIb7k12435@momjian.us> Subject: Re: Listen on IPv6 only In-Reply-To: <1299677993.10591.1.camel@gilbertoc.mtcorp.etecsa.cu> To: gilberto.castillo@etecsa.cu Date: Thu, 10 Mar 2011 13:37:07 -0500 (EST) CC: Dyonisius Visser , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UNKNOWN-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/129 X-Sequence-Number: 37001 Gilberto Castillo Martínez wrote: > > > El mi?, 09-03-2011 a las 13:58 +0100, Dyonisius Visser escribi?: > > hi guys > > > > I am in the process of converting my network to IPv6 only (well, as > > much as possible). > > Since our own network has fully functional IPv6 connectivity, I should > > be able to move all services that are used internally only, to IPv6 > > only. > > Postgres is one of those services. > > > > I could not find anywhere in the docs how to configure this. > > However, the following seems to do the trick: > > > > listen_addresses = '::' > > > > This will make postgres listen on IPv6 only: > > > > root@cajones:~# telnet 127.0.0.1 5432 > > Trying 127.0.0.1... > > telnet: Unable to connect to remote host: Connection refused > > > > root@cajones:~# telnet ::1 5432 > > Trying ::1... > > Connected to ::1. > > Escape character is '^]'. > > > > Might be an idea to add this to the docs. > > Maybe!!. Interesting. How would someone listen only on IPv4 addresses? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +