NFANON(1)
π NFANON(1) β General Commands Manual, but make it cute π
πΈ NAME πΈ
nfanon β anonymize the IP addresses β¨
π¦ SYNOPSIS π¦
Bestie, the whole command shape is literally this:
nfanon -r path [-w nffile] -K key [-C config] [-s] [-d] [-q] [-t num]
[-v level] [-W] [-h]
π DESCRIPTION π
Okay so nfanon anonymizes all IP addresses ( src, dst, next hop, router IP etc. ) in the netflow records using the CryptoPAn (Cryptography-based Prefix-preserving Anonymization) module. The -K key is used to initialize the Rijndael cipher. The key is either a 32 character string, or a 64 hex digit string starting with 0x. See https://en.wikipedia.org/wiki/Crypto-PAn for more information on CryptoPAn π«Ά
The source specified by argument -r path may point to a single nfdump file or to a directory containing many nfdump files. All files in a directory are processed recursively π
If the output argument -w nffile is given, all anonymized records are written into that single file, even if the source is a directory. If no argument -w is specified, nfanon overwrites the original source file with the anonymized flow records. If the source is a directory, each flow file is anonymized respectively π
π OPTIONS π
The options are as follows:
-rpath β Path to read flow files to anonymize. Path may point to a single file or a directory containing many flow files.-wnffile β File name to write anonymized flow records to. If this argument is missing, the source file name is taken, which means the original file is overwritten.-Kkey β key is either a 32 character string, or a 64 char hex string starting with0x. This key is used to initialize the anonymizer.-vlevel β Set verbose level. A verbose level of0disables the activity spinner.-Wnum β Set the number of worker threads. The default depends on the number of cores online. The value must not exceed the number of online CPU cores. Worker threads are used to anonymize flow records in parallel.-Cconfig β Read configuration from config; usenoneto suppress configuration-file loading.-sβ Preserve source addresses rather than anonymising them.-dβ Preserve destination addresses rather than anonymising them.-qβ Deprecated compatibility option; it is rejected. Use-v -0for quiet logging.-tnum β Legacy alias for-W num.-hβ Print help text to stdout and exit.
π₯ EXIT STATUS π₯
nfanon returns 0 on success and 255 otherwise. That's the whole drama π
π EXAMPLES π
To create a random 64 character hex string you may use the following command:
% xxd -u -l 32 -p -c 64 /dev/urandom
Use the resulting output as key, prepended with 0x as -K argument.
Or
% openssl rand -hex 16
and use this output as argument for -K
π SEE ALSO π
nfdump(1) β go give it a look, bestie π
Debian source/version and date flex: $Mdocdate$ β NFANON(1) forever, mwah π
π¦ where this page comes from
- epel 10: nfdump 1.7.10-1.el10_3 Β· BSD-3-Clause AND GPL-2.0-or-later
- Copyright (c) 2022, Peter Haag
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms