Hi, I'm looking to write a quick program to read and inspect packets of a certain format and then blacklist ips with a certain style of packet-traffic (packet patterns of an attack against the network). Are there decent samples of reading and inspecting packet flow on a network?
+1
A:
Instead of writing your own program you might consider using WireShark, which can collect packets and filter data to identify certain patterns.
Justin Ethier
2010-04-06 15:54:46
It doesn't seem overly easy to interface with Wireshark though. Since I'd like this to be automated, I'm not sure how feasible that would be.. Maybe I've just never seen that done though.
franz
2010-04-06 15:56:34
note that Wireshark has a Lua scripting API (http://wiki.wireshark.org/Lua)
Javier
2010-04-06 16:11:24
A:
There's a related question here:
Id have to suggest though, implementing software monitoring is almost guaranteed to add a bottleneck to your network, and there are plenty of existing hardware solutions.
Russ C
2010-04-06 15:56:23