On Thu, May 22, 2008 at 09:56:26PM +1000, Rod Whitworth wrote:
> I may have to set up an OpenBSD installation to replace a Linux box
> that is running Apache 2.x and it is expected to serve content to
> requests from IPv4 hosts and IPv6 hosts.
> 
> Each address family has its own interface and totally distinct IPs so
> we don't have those strange v6 IPs that include the v4 address.
> 
> The Apache docs on their website say:
> "--enable-v4-mapped is the default on all platforms but FreeBSD,
> NetBSD, and OpenBSD, so this is probably how your Apache was built."
> and:
> "If your platform supports it and you want Apache to handle IPv4 and
> IPv6 connections on separate sockets (i.e., to disable IPv4-mapped
> addresses), specify the --disable-v4-mapped configure option.
> --disable-v4-mapped is the default on FreeBSD, NetBSD, and OpenBSD."
> 
> Apart from the crazy idea that you should need one or the other option
> (what is wrong with a default and one option?) I cannot find the
> disable option in any of the port code or the distfiles except for some
> docos.
> 
> Can anybody tell me what the default really is if I use an OpenBSD
> package or port, please.
> If it is not the option I need, what is the approved way to compile
> with the added option? Just add it to the Makefile in the port's root?
> 

OpenBSD does not support IPv4 addresses mapped into IPv6 addresses. It
always needs seperate sockets for each address family. So using
--enable-v4-mapped on OpenBSD would lead to a non working apache (it will
only serve IPv6 but no IPv4 will make it to the server.

-- 
:wq Claudio

Reply via email to