CombinedLog with IPv6

CombinedLog with IPv6

am 06.04.2010 23:20:45 von Marten Lehmann

Hello,

I want to setup Apache with IPv6 hosts and so I asked myself, what
happens to REMOTE_ADDR in log files? A typical line would be

12.23.34.45 - - [06/Apr/2010:23:15:32 +0200] "GET /styles/navi.css
HTTP/1.0" 304 - "referer" "Mozilla/5.0 (compatible; Yahoo! Slurp/3.0)"

Will the first entry be a mixed typ of IPv4 and IPv6 REMOTE_ADDRs
depending on the listening interface that the visitor connected to?

How does log analyzing software like webalizer react on IPv6 addresses?

Or is it possible to tell apache to switch to an IPv6 format everytime,
resulting in something like ::FFFF:12.23.34.45 resp.
0:0:0:0:0:FFFF:0C17:222D instead of 12.23.34.45?

Megards
Marten

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: CombinedLog with IPv6

am 07.04.2010 00:24:49 von Sean Conner

It was thus said that the Great Marten Lehmann once stated:
> Hello,
>
> I want to setup Apache with IPv6 hosts and so I asked myself, what
> happens to REMOTE_ADDR in log files? A typical line would be
>
> 12.23.34.45 - - [06/Apr/2010:23:15:32 +0200] "GET /styles/navi.css
> HTTP/1.0" 304 - "referer" "Mozilla/5.0 (compatible; Yahoo! Slurp/3.0)"
>
> Will the first entry be a mixed typ of IPv4 and IPv6 REMOTE_ADDRs
> depending on the listening interface that the visitor connected to?

Yes.

fc00::2 - - [06/Apr/2010:16:25:28 -0400] "GET / HTTP/1.1" 200 2776 "-" "Mozilla/
fc00::2 - - [06/Apr/2010:16:25:28 -0400] "GET /CSS/screen.css HTTP/1.1" 200 673
fc00::2 - - [06/Apr/2010:16:25:28 -0400] "GET /images/logo.jpg HTTP/1.1" 200 110
fc00::2 - - [06/Apr/2010:16:25:28 -0400] "GET /favicon.ico HTTP/1.1" 404 299 "-"
fc00::2 - - [06/Apr/2010:16:25:34 -0400] "GET /favicon.ico HTTP/1.1" 404 299 "-"
192.168.1.10 - - [06/Apr/2010:18:09:24 -0400] "GET /favicon.ico HTTP/1.1" 404 30
192.168.1.10 - - [06/Apr/2010:18:09:24 -0400] "GET / HTTP/1.1" 200 339 "-" "Mozi
192.168.1.10 - - [06/Apr/2010:18:09:27 -0400] "GET /favicon.ico HTTP/1.1" 404 30
fc00::3 - - [06/Apr/2010:18:10:22 -0400] "GET / HTTP/1.1" 200 339 "-" "Mozilla/5
fc00::3 - - [06/Apr/2010:18:10:22 -0400] "GET /favicon.ico HTTP/1.1" 404 300 "-"

(the lines have been truncated to 80 characters for posting here)

> How does log analyzing software like webalizer react on IPv6 addresses?

Check the documentation, or just try it and see ...

-spc



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: CombinedLog with IPv6

am 07.04.2010 15:45:53 von Marten Lehmann

Hello,

>> Will the first entry be a mixed typ of IPv4 and IPv6 REMOTE_ADDRs
>> depending on the listening interface that the visitor connected to?
>
> Yes.

and is it possible to tell apache to switch to an IPv6 format for
logging everytime, so that even IPv4 addresses are logged in the IPv6
format, e.g. 12.23.34.45 becomes to 0:0:0:0:0:FFFF:0C17:222D?

Regards
Marten

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: CombinedLog with IPv6

am 07.04.2010 17:11:54 von Jeff Trawick

On Wed, Apr 7, 2010 at 9:45 AM, Marten Lehmann wrote:
> Hello,
>
>>> Will the first entry be a mixed typ of IPv4 and IPv6 REMOTE_ADDRs
>>> depending on the listening interface that the visitor connected to?
>>
>> =A0 Yes.
>
> and is it possible to tell apache to switch to an IPv6 format for logging
> everytime, so that even IPv4 addresses are logged in the IPv6 format, e.g=
..
> 12.23.34.45 becomes to 0:0:0:0:0:FFFF:0C17:222D?

no; if the IPv4 stack/protocol is used to communicate with the client,
the client IP will always be logged in IPv4 format, even when httpd is
using an IPv6-capable socket

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org