Capturing network traffic in ruby - pcap related issues

Posted by Acidburn2k on Stack Overflow See other posts from Stack Overflow or by Acidburn2k
Published on 2010-03-24T08:27:31Z Indexed on 2010/03/24 8:33 UTC
Read the original article Hit count: 643

Filed under:
|
|

What I need is to write very simple application, which would listen to network traffic, filter out some packets based on various layer 4/5 information and then dump those information into database.

I am quite confused on which pcap gem/plugin should I use. The basic pcap implemention seem to be a bit outdated (no changes since 2001) and doesn't work properly. I also tried pcaprub, but I am not quite sure how to get around with this library. It seem to capture raw packets without te ability to actualy get any data out of the pcap dump.

Do you have any advices on how can I realize this simple task?

Thanks in advance. :-)

© Stack Overflow or respective owner

Related posts about pcap

Related posts about ruby