是否有一个库可以执行数据包分析并阻止某些数据包的发送?

发布于 2024-08-13 15:31:15 字数 417 浏览 7 评论 0原文

我找到了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

路还长,别太狂 2024-08-20 15:31:15

我的目标是...通过...阻止符合特定条件的[数据包]来阻止对某些互联网和网络资源的访问,无论资源是如何访问的。

这只能在内核中实现,因此完全是特定于平台的。

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.

一页 2024-08-20 15:31:15

还有 libpcap,但我不确定它是否能完全满足您的要求...

根据 sourceforce 页面:

libpcap 是一个独立于系统的用户级数据包捕获接口。 libpcap 为低级网络监控提供了一个可移植的框架。应用包括网络统计、安全监控、网络调试等。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文