是否有一个库可以执行数据包分析并阻止某些数据包的发送?
我找到了 Jpcap,但是它只满足了我一半的要求 -它不允许我阻止数据包,如常见问题解答中所述。我更喜欢跨平台(Windows、Mac、Linux)解决方案,但如果不存在,特定于操作系统的解决方案也是可以接受的。
我的目标是,在某些条件下,通过找出数据包的去向并阻止符合特定条件的数据包来阻止对某些互联网和网络资源的访问,无论资源是如何访问的。也许我的处理方式是错误的,所以任何建议将不胜感激。
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-platform (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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这只能在内核中实现,因此完全是特定于平台的。
that's only doable in the kernel, and as such is completely platform-specific.
还有 libpcap,但我不确定它是否能完全满足您的要求...
根据 sourceforce 页面:
There is also the libpcap, but I'm not sure it will exactly do what you're looking for ...
according to the sourceforce page: