Project

General

Profile

IPv4 mapped addresses » History » Revision 2

Revision 1 (stbuehler, 2009-06-03 14:54) → Revision 2/3 (radzio, 2010-08-23 18:59)

h1. IPv4 mapped addresses 

 If IPv6 is enabled (@server.use-ipv6@ in your config) and your operating system has not enabled "bindv6only" (@sysctl net.ipv6.bindv6only@ or @sysctl net.inet6.ip6.v6only@), lighttpd 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". 

 Debian enables ipv6 by default if it detects support for it; so if you don't need IPv6 you should disable that script in your lighttpd.conf; if you need IPv6 and don't like the mapped addresses you have to enable "bindv6only" and bind to the IPv4 address(es) and IPv6 address(es) yourself. 

 h3. See also 

 also: 
 * "IPv6 and IPv4-mapped_addresses":http://en.wikipedia.org/wiki/IPv6#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?]] 
 * #509: server.bind problems with BSD and listening on dual IPv4 and IPv6 addresses