|
NAMEipv6loganon - HTTP server log file anonymizerSYNOPSIScat /var/log/httpd/access_log | ipv6loganon [OPTIONS]DESCRIPTIONThis program anonymizes IPv4/IPv6 addresses in HTTP server log filesTakes data from stdin, processes it to stdout. Depending on the anonymization method, address parts (prefix/interface identifier) are 1. simply zeroized by given masks. 2. anonymized by zeroizing only required bits (partially depending on specified masks). 3. anonymized by trying to keep for IPv4 and IPv6 addresses (keep-type-asn-cc) When zeroing only required bits (mode 2) the possibilities are
When anonymizing with keep (mode 3) the relevant fields are: type of address, Autonomous System Number (ASN), and Country Code (CC) This method requires an IPv4/IPv6 to Country Code and ASN resolution, provided by GeoIP Big advantage: ipv6logstats(8) result should be the same as with raw data Anonymized IPv4 addresses are from experimental range 240.0.0.0/8 Anonymized IPv6 addresses are using (currently hijacked) prefix a909::/16 Anonymized IPv6 IID is starting with a9x9 (x = anonymized nibbles of SLA) OPTIONSGeneral options:
External database options (depending on compiled-in suppport):
Input/output options:
Performance options:
Processing options: Shortcut for anonymization presets:
Supported methods [--anonymize-method METHOD]:
Custom control:
EXAMPLESOriginal lines (stdin):207.46.98.53 - - [01/Jan/2007:00:01:15 +0100] "GET /Linux+IPv6-HOWTO/x1112.html HTTP/1.0" 200 6162 "-" "msnbot/1.0 (+http://search.msn.com/msnbot.htm)" 253 6334 2002:52b6:6b01:1:216:17ff:fe01:2345 - - [10/Jan/2007:15:04:28 +0100] "GET /favicon.ico HTTP/1.1" 200 4710 "http://www.bieringer.de/linux/IPv6/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Firefox/1.5.0.9 pango-text" 413 5005 Modified lines (stdout): 207.46.98.0 - - [01/Jan/2007:00:01:15 +0100] "GET /Linux+IPv6-HOWTO/x1112.html HTTP/1.0" 200 6162 "-" "msnbot/1.0 (+http://search.msn.com/msnbot.htm)" 253 6334 2002:52b6:6b00:0:216:17ff:fe00:0 - - [10/Jan/2007:15:04:28 +0100] "GET /favicon.ico HTTP/1.1" 200 4710 "http://www.bieringer.de/linux/IPv6/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Firefox/1.5.0.9 pango-text" 413 5005 Anonymization method: keep-type-asn-cc echo "1.2.3.4" | ./ipv6loganon --anonymize-preset keep-type-asn-cc 246.24.59.65 echo "2001:a60:1400:1201:221:70ff:fe01:2345" | ./ipv6loganon --anonymize-preset keep-type-asn-cc a909:16fa:9092:23ff:a909:4291:4022:1708 SEE ALSOipv6calc(8), ipv6logstat(8)REPORTING BUGSReport bugs via GitHub: https://github.com/pbiering/ipv6calc/issuesLICENSEGPLv2AUTHORSPeter Bieringer <pb@bieringer.de>
Visit the GSP FreeBSD Man Page Interface. |