Project

General

Profile

Server use-ipv6Details » History » Revision 5

Revision 4 (radzio, 2010-08-23 19:55) → Revision 5/9 (radzio, 2010-08-23 20:03)

h1. server.use-ipv6 

 *Default:* @disable@ 

 You can use this setting if lighty was compiled without @--disable-ipv6@ 
 and you have working IPv6 on your box. 

 *Note:* You can bind it to IPv6 sockets freely *without* enabling this option. 

 h3. How does it work? 

 If your operating system has not enabled @bindv6only@ 
 (Linux: @sysctl net.ipv6.bindv6only@ | BSD: @sysctl net.inet6.ip6.v6only@) 
 and @server.set-v6only@ is disabled (added and enabled by default since version:1.4.27), 
 it binds to an IPv6 socket and accepts IPv4 connections on it. 
 This results in IPv4 mapped addresses in the access.log like "::ffff:127.0.0.1". 

 If you need IPv6 and don't like the mapped addresses, you have to enable @bindv6only@ 
 *or* leave this option disabled and bind to the IPv4 address(es) and IPv6 address(es) yourself. 

 Please use @server.use-ipv6@ only for hostnames, not without server.bind or empty address.  
 Your config will break if the kernel default for @bindv6only@ changes. 

 h3. See also 

 * "IPv6 and IPv4-mapped addresses":http://en.wikipedia.org/wiki/IPv6#IPv4-mapped_addresses 
 * [[FrequentlyAskedQuestions#How-do-I-bind-to-more-than-one-address|How do I bind to more than one address?]] 
 * [[IPv6-Config#Changes-in-1427|IPv6 changes in 1.4.27]] 
 * "IPv6 and IPv4-mapped addresses":http://en.wikipedia.org/wiki/IPv6#IPv4-mapped_addresses