Welcome! Log In Create A New Profile

Advanced

Re: IPv4 & IPv6

Maxim Dounin
April 05, 2013 05:44PM
Hello!

On Fri, Apr 05, 2013 at 04:17:09PM -0400, B.R. wrote:

> Hello,
>
> I noticed in an article dedicated to the subject
> (Fr)http://blog.pastoutafait.org/billets/activer-le-support-ipv6-de-nginxthat
> to allow Nginx to listen both on IPv4 and IPv6 interfaces
> simultaneously, you needed to set sysctl with the following configuration
> (otherwise Nginx listening binds conflict one with each other):
>
> net.ipv6.bindv6only = 1
>
> However, this has conflicting and unwanted effects on other applications
> such as Java.
>
> Is there any other way to allow Nginx ot listen on both interface types
> without mandatory system configuration?

There is "ipv6only" parameter of the "listen" directive, which
allows to listen on ipv6 and ipv4 sockets reliably and
simulteniously regardless of the system configuration.
Configuration like

listen 80;
listen [::]:80 ipv6only=on;

will do the trick.

As of nginx 1.3.x, the ipv6only=on is used by default and there is
no need to specify it explicitly.

See http://nginx.org/r/listen for more details.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

IPv4 & IPv6

B.R. April 05, 2013 04:20PM

Re: IPv4 & IPv6

Maxim Dounin April 05, 2013 05:44PM

Re: IPv4 & IPv6

Ted Lemon April 05, 2013 05:48PM

RE: IPv4 & IPv6

Lukas Tribus April 05, 2013 05:50PM

Re: IPv4 & IPv6

B.R. April 05, 2013 06:10PM

Re: IPv4 & IPv6

Maxim Dounin April 05, 2013 06:22PM

Re: IPv4 & IPv6

B.R. April 05, 2013 08:04PM

Re: IPv4 & IPv6

B.R. April 05, 2013 08:50PM

Re: IPv4 & IPv6

B.R. April 06, 2013 02:28AM

Re: IPv4 & IPv6

Maxim Dounin April 06, 2013 06:40AM

Re: IPv4 & IPv6

B.R. April 06, 2013 10:54AM

Re: IPv4 & IPv6

B.R. April 06, 2013 11:04AM

Re: IPv4 & IPv6

Igor Sysoev April 06, 2013 11:24AM

Re: IPv4 & IPv6

B.R. April 06, 2013 04:08PM

Re: IPv4 & IPv6

Jim Ohlstein April 06, 2013 04:46PM

Re: IPv4 & IPv6

Igor Sysoev April 07, 2013 02:40AM

Re: IPv4 & IPv6

Maxim Dounin April 06, 2013 05:26PM

Re: IPv4 & IPv6

B.R. April 06, 2013 05:46PM

Re: IPv4 & IPv6

Ted Lemon April 05, 2013 06:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready