CombinedLog with IPv6

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Marten Lehmann [ Di, 06 April 2010 23:20 ] [ ID #2037952 ]

Re: CombinedLog with IPv6

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Sean Conner [ Mi, 07 April 2010 00:24 ] [ ID #2038010 ]

Re: CombinedLog with IPv6

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Marten Lehmann [ Mi, 07 April 2010 15:45 ] [ ID #2038016 ]

Re: CombinedLog with IPv6

On Wed, Apr 7, 2010 at 9:45 AM, Marten Lehmann <lehmann [at] cnm.de> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Jeff Trawick [ Mi, 07 April 2010 17:11 ] [ ID #2038019 ]
Webserver » gmane.comp.apache.user » CombinedLog with IPv6

Vorheriges Thema: Apache Doesn't See My SSLCACertificateFile
Nächstes Thema: A question about 'sticky_session_force' in file "workers.properties"