new: mod_ipv6calc for Apache
Hi, I'm very happy to announce the long planned Apache module, which is able to set CountryCode and Anonymized IPv4/IPv6 address in environment and this can be used for logging. With this module it is possible to replace the client IP address by the anonymized one in access log (not in error log btw.), e.g. a909:16fa:9092:23ff:a909:4941::7 "DE" - [30/May/2015:18:14:59 +0200] "GET / HTTP/1.1" 403 4609 "-" "curl/7.40.0" 127.0.0.0 "-" - [30/May/2015:18:15:02 +0200] "HEAD / HTTP/1.0" 403 - "-" "-" Source: subdirectory "mod_ipv6calc" in latest CVS, see also the default configuration for Apache "ipv6calc.conf" and the "README.mod_ipv6calc" Tested on Apache 2.2 and 2.4. It's my first Apache module, so it can have some issues still - avoid it to use this inital version on production systems until it gets stabilized... Regards, Peter
Hi, after approx. 2 month module code got stabilized and extended. Now also tokens for ASN, Registry and the anonymization method were added: Example log of anonymized requests: 245.216.31.139 "US/8075/ARIN/keep-type-asn-cc" - [24/Jul/2015:21:42:40 +0200] "GET / HTTP/1.1" 200 3549 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; http://www.bing.com/bingbot.htm)" a909:16fa:9092:23ff:a909:4941::7 "DE/8767/RIPENCC/keep-type-asn-cc" - [24/Jul/2015:21:41:51 +0200] "GET /favicon.ico HTTP/1.1" 200 4710 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0" related log format: LogFormat "%{IPV6CALC_CLIENT_IP_ANON}e \"%{IPV6CALC_CLIENT_COUNTRYCODE}e/%{IPV6CALC_CLIENT_ASN}e/%{IPV6CALC_CLIENT_REGISTRY}e/%{IPV6CALC_ANON_METHOD}e\" %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_anon Also some caching was included now. RPM build is also working well, test RPMs for CentOS 7 can be downloaded some days from http://koji.fedoraproject.org/koji/taskinfo?taskID=10467519 Regards, Peter Am 30.05.2015 um 19:09 schrieb Peter Bieringer:
Hi,
I'm very happy to announce the long planned Apache module, which is able to set CountryCode and Anonymized IPv4/IPv6 address in environment and this can be used for logging.
With this module it is possible to replace the client IP address by the anonymized one in access log (not in error log btw.), e.g.
a909:16fa:9092:23ff:a909:4941::7 "DE" - [30/May/2015:18:14:59 +0200] "GET / HTTP/1.1" 403 4609 "-" "curl/7.40.0"
127.0.0.0 "-" - [30/May/2015:18:15:02 +0200] "HEAD / HTTP/1.0" 403 - "-" "-"
Source: subdirectory "mod_ipv6calc" in latest CVS, see also the default configuration for Apache "ipv6calc.conf" and the "README.mod_ipv6calc"
Tested on Apache 2.2 and 2.4.
It's my first Apache module, so it can have some issues still - avoid it to use this inital version on production systems until it gets stabilized...
Regards, Peter
-- Dr. Peter Bieringer mailto:pb@bieringer.de Heideckstr. 27 phone: +49-89-36109687 D-80637 Muenchen fax: +49-89-36109689 Germany mobile: +49-174-9015046
participants (1)
-
Peter Bieringer