I would like to immediately process certain types of packets if/when they arrive with a custom (bash) script.
As NetFilter is kernel space, I understand I need to look for a userspace logging tools so I set my eyes on ulogd (v.2). Unfortunately I can not find functionality that would let me handle incoming packets.
I could let ulogd output into a file, and set a separate process that monitors that file, but it seems to me too much convoluted and complex.
Is there an option to nft
or ulogd
that I missed, that would let me fire a script any time a certain packet was encountered?