ANONIP(1)
β¨ NAME β¨
Okay bestie, anonip(1) is a User Commands tool and it's giving privacy π anonip anonymizes IPv4 and IPv6 addresses in logfiles, whether they already exist or get piped in live π¦
πΈ DESCRIPTION πΈ
Here's the vibe check on how you call it π
usage: anonip [-h] [-4 INTEGER] [-6 INTEGER] [-i INTEGER] [-o FILE]
[--input FILE] [-c INTEGER [INTEGER ...]] [-l STRING] [--regex
STRING [STRING ...]] [-r STRING] [-p] [-d] [-v]
Anonip is a tool to anonymize IP-addresses in log files. It's literally that simple, no cap π«Ά
π options π
-h,--helpβ shows the help message and then bounces π-4 INTEGER,--ipv4mask INTEGERβ truncates the last n bits of IPv4 addresses (default:12) π-6 INTEGER,--ipv6mask INTEGERβ truncates the last n bits of IPv6 addresses (default:84) β¨-i INTEGER,--increment INTEGERβ increments the IP address by n (default:0) π§-o FILE,--output FILEβ the file you want to write to π--input FILEβ a file or FIFO to read from (default: stdin) π-c INTEGER [INTEGER ...],--column INTEGER [INTEGER ...]β tells anonip the IP address lives in column n. It's 1-based, so counting starts at 1 π (default:1)-l STRING,--delimiter STRINGβ your log delimiter (default:" ") π--regex STRING [STRING ...]β a regex for finding IP addresses. Use it optionally instead of-cπ₯-r STRING,--replace STRINGβ a replacement string for when address parsing fails, like0.0.0.0π-p,--skip-privateβ leaves addresses in private ranges alone, so they don't get masked. See the IANA Special-Purpose Address Registry for the deets π¦-d,--debugβ prints debug messages if you want the behind-the-scenes tea β-v,--versionβ shows the program's version number and then exits π
Here's the example-usage for apache-config, bestie πΈ
CustomLog "| /usr/bin/anonip [OPTIONS]
--output ${APACHE_LOG_DIR}/access.log" combined
π AUTHORS π
anonip was written by the Swiss Privacy Foundation, which is now part of the Digitale Gesellschaft e.V. Iconic origin story π
π¦ SEE ALSO π¦
Full documentation for the anonip tool, with several additional examples, lives at /usr/shar/doc/anonip/README.md.gz π
Bye bestie π«Ά that's the whole tea on anonip 1.1.0 from September 2022, ANONIP(1) πβ¨
π¦ where this page comes from
- debian bookworm: anonip 1.1.0-2 Β· BSD-3-Clause
- ubuntu noble: anonip 1.1.0-2 Β· BSD-3-Clause
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms