Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Added so_freebind and so_transparent to the listen directive

Maxim Dounin
March 27, 2014 01:14PM
Hello!

On Thu, Mar 27, 2014 at 04:34:37PM +0100, Trygve Vea wrote:

> # HG changeset patch
> # User Trygve Vea <trygve.vea@redpill-linpro.com>
> # Date 1395933815 -3600
> # Thu Mar 27 16:23:35 2014 +0100
> # Node ID 13e6a37c2f57443b0d5dd0abce8d9d4ab00e31e3
> # Parent 2411d4b5be2ca690a5a00a1d8ad96ff69a00317f
> Added so_freebind and so_transparent to the listen directive
>
> This solves a Linux/IPv6-specific problem.
>
> To be able to listen to an IPv6 address that is not yet available on the host,
> one need to use the IP_FREEBIND and IP_TRANSPARENT socket options.
>
> The use case in question is for a failover setup with several service-
> addresses in a IPv6-only environment.
>
> IPv4 has a sysctl available (ip_nonlocal_bind), which is not available for
> IPv6 - thus making these patches necessary.

Isn't bind on INADDR_ANY/IN6ADDR_ANY works for you?

It is expected to work fine and allows to accept connections on
all addresses currently available on a host without any
non-portable tricks.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Added so_freebind and so_transparent to the listen directive

Trygve Vea 1221 March 27, 2014 11:36AM

Re: [PATCH] Added so_freebind and so_transparent to the listen directive

Maxim Dounin 333 March 27, 2014 01:14PM

Re: [PATCH] Added so_freebind and so_transparent to the listen directive

Trygve Vea 415 March 27, 2014 02:16PM

Re: [PATCH] Added so_freebind and so_transparent to the listen directive

Piotr Sikora 387 March 27, 2014 04:40PM

Re: [PATCH] Added so_freebind and so_transparent to the listen directive

Trygve Vea 663 March 27, 2014 04:58PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready