ANONIP(1)

πŸ“¦
version 1.1.0 Β· 3 versions
, in debian bookworm, ubuntu noble

✨ 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, like 0.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