The plugin performs IPv4/IPv6 address anonymization of all flow records. There are two available methods that could be applied on IP addresses, CryptoPAN and address truncation.
To identify IPFIX fields of a record to modify, the plugin uses a type of an Information Element linked to each field. Thus, any record field with known corresponding Information Element and type is always automatically anonymized. Enterprise-specific Information Elements are supported too.
<intermediate>
<name>Flow anonymization</name>
<plugin>anonymization</plugin>
<params>
<type>CryptoPAn</type>
<key>0123456789abcdefghijklmnopqrstuv</key>
</params>
</intermediate>
type : | Type of anonymization method. The string is case insensitive.
|
||||
---|---|---|---|---|---|
key : | Optional cryptography key for CryptoPAn anonymization. The length of the string must be exactly 32 bytes. If the key is not specified, a random one is generated during the initialization. |
Usually all common IP addresses are automatically anonymized. However, if an IPFIX field is not, make sure that the particular Information Element is defined among other definitions provided by libfds library. Mainly in case of Enterprise-Specific Information Elements, there is a chance that the definitions are missing. See the documentation of the library, for help to easily add extra definitions in few steps.