Actions
IPv4 mapped addresses » History » Revision 1
Revision 1/3
| Next »
stbuehler, 2009-06-03 14:54
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.
See also:- http://en.wikipedia.org/wiki/IPv6#IPv4_mapped_addresses
- How do I bind to more than one address?
- #509: server.bind problems with BSD and listening on dual IPv4 and IPv6 addresses
Updated by stbuehler over 15 years ago · 1 revisions