开发者

Is there a library that can perform packet analysis and block certain packets from being sent?

I found Jpcap, however it only meets half my requirements - it does not allow me to block packets, as stated in the FAQ. I would prefer a cross-platfor开发者_JAVA技巧m (Windows, Mac, Linux) solution, but if one does not exist, OS-specific solutions would be acceptable.

My goal is to, under certain conditions, block access to certain Internet and network resources by finding out where the packets are going and blocking the ones that meet specific criteria, regardless of how the resource was accessed. Perhaps I'm going about this the wrong way, so any advice would be appreciated.


My goal is to ... block access to certain Internet and network resources by ... blocking [packets] that meet specific criteria, regardless of how the resource was accessed.

that's only doable in the kernel, and as such is completely platform-specific.


There is also the libpcap, but I'm not sure it will exactly do what you're looking for ...

according to the sourceforce page:

libpcap is a system-independent interface for user-level packet capture. libpcap provides a portable framework for low-level network monitoring. Applications includenetwork statistics collection, security monitoring, network debugging, etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜