From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Jonathan Vanasco <jonathan(at)2xlp(dot)com>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: disable ipv6? |
Date: | 2016-04-21 21:31:46 |
Message-ID: | 571946C2.3050400@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 04/19/2016 06:35 PM, Jonathan Vanasco wrote:
> I'm running postgresql on ubuntu. the 9.4 branch from postgresql.org
>
> I think the only way to disable ipv6 is to edit postgresql.conf and explicitly state localhost in ipv4 as follows
>
> - listen_addresses = 'localhost'
> + listen_addresses = '127.0.0.1'
>
> can anyone confirm?
http://www.postgresql.org/docs/9.4/interactive/runtime-config-connection.html
"listen_addresses (string)
Specifies the TCP/IP address(es) on which the server is 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. 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. The default value is localhost, which allows
only local TCP/IP "loopback" connections to be made. While client
authentication (Chapter 19) allows fine-grained control over who can
access the server, listen_addresses controls which interfaces accept
connection attempts, which can help prevent repeated malicious
connection requests on insecure network interfaces. This parameter can
only be set at server start.
"
>
>
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | drum.lucas@gmail.com | 2016-04-21 23:07:01 | Re: Update field to a column from another table |
Previous Message | Gavin Flower | 2016-04-21 21:27:34 | Re: disable ipv6? |