apt install ulogd2
We configure one plugin stack adding this line into the configuration file:
# Custom stack for logging connections metadata. stack=ct1:NFCT,ip2str1:IP2STR,print1:PRINTFLOW,emu1:LOGEMU
[ct1] event_mask=0x00000001 hash_enable=0
In the example above we use the NFCT input plugin, which interfaces with the nfnetlink_conntrack kernel subsystem, and provides flow-based logging.
The option hash_enable …
systemctl enable ulogd2.service systemctl start ulogd2.service