M
M
mikhailisawesome2018-01-14 17:38:37
linux
mikhailisawesome, 2018-01-14 17:38:37

How to get a callback or event in NodeJS when iptables blocks/passes a data packet?

I’ve been trying to figure out how to do this trick for a long time: when iptables receives a packet with data and passes or blocks it, an event arrives in NodeJS or somehow it catches a callback, while receiving this packet (buffer or not - it doesn’t matter) or netflow . Perhaps there is some kind of layer in the form of another utility that can already transfer the event to the node?
Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daemon23RUS, 2018-01-14
@Daemon23RUS

iptables - log event -> pipe
NodeJS - read from this pipe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question