david415 / HoneyBadger

Quantum Insert detector/recorder
GNU General Public License v3.0
305 stars 39 forks source link

find a way to filter when reading from AF_PACKET socket #63

Closed david415 closed 9 years ago

david415 commented 9 years ago

we either need an iptables related filtering method or something in our application to filter based on port number... for instance many operators of honeybadger may wish to filter on port 80...

this should reduce the need for pcap log rotation...

pavel-odintsov commented 9 years ago

Hello, David!

Just look into Suricata code (src/source-af-packet.c). They have nice support of bpf filters here.