.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH ANONIP "1" "September 2022" "anonip 1.1.0" "User Commands" .SH NAME anonip - a tool to anonymize IPv4 and IPv6 addresses in existing or via pipe created logfiles. .SH DESCRIPTION usage: anonip [\-h] [\-4 INTEGER] [\-6 INTEGER] [\-i INTEGER] [\-o FILE] .IP [\-\-input FILE] [\-c INTEGER [INTEGER ...]] [\-l STRING] [\-\-regex STRING [STRING ...]] [\-r STRING] [\-p] [\-d] [\-v] .PP Anonip is a tool to anonymize IP\-addresses in log files. .SS "options:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-4\fR INTEGER, \fB\-\-ipv4mask\fR INTEGER truncate the last n bits (default: 12) .TP \fB\-6\fR INTEGER, \fB\-\-ipv6mask\fR INTEGER truncate the last n bits (default: 84) .TP \fB\-i\fR INTEGER, \fB\-\-increment\fR INTEGER increment the IP address by n (default: 0) .TP \fB\-o\fR FILE, \fB\-\-output\fR FILE file to write to .TP \fB\-\-input\fR FILE File or FIFO to read from (default: stdin) .TP \fB\-c\fR INTEGER [INTEGER ...], \fB\-\-column\fR INTEGER [INTEGER ...] assume IP address is in column n (1\-based indexed; default: 1) .TP \fB\-l\fR STRING, \fB\-\-delimiter\fR STRING log delimiter (default: " ") .TP \fB\-\-regex\fR STRING [STRING ...] regex for detecting IP addresses (use optionally instead of \fB\-c\fR) .TP \fB\-r\fR STRING, \fB\-\-replace\fR STRING replacement string in case address parsing fails (Example: 0.0.0.0) .TP \fB\-p\fR, \fB\-\-skip\-private\fR do not mask addresses in private ranges. See IANA Special\-Purpose Address Registry. .TP \fB\-d\fR, \fB\-\-debug\fR print debug messages .TP \fB\-v\fR, \fB\-\-version\fR show program's version number and exit .PP Example\-usage in apache\-config: CustomLog "| \fI\,/usr/bin/anonip\/\fP [OPTIONS] \fB\-\-output\fR ${APACHE_LOG_DIR}/access.log" combined .SH AUTHORS \fBanonip\fR was written by the Swiss Privacy Foundation, which is now part of the Digitale Gesellschaft e.V. .SH "SEE ALSO" Full documentation for the \fBanonip\fR tool wit several additional examples is available in /usr/shar/doc/anonip/README.md.gz