windows - 为Windows实现个人防火墙,如何判断数据包属于哪个应用程序?

标签 windows security networking firewall ndis

我打算为 Windows 构建一种个人防火墙。我在网上找到了一些关于这个主题的文章,包括一些关于 StackOverflow 的问题。但它们都意味着控制协议(protocol)、地址和端口。在每个应用程序的基础上进行控制对我来说也很重要。关于在哪里查看有什么建议吗?

最佳答案

GetExtendedTcpTableTCP_TABLE_CLASS TCP_TABLE_OWNER_MODULE_CONNECTIONS 的参数将为您提供所有连接的端点和 owning process id .

您可以将表行传递给 GetOwnerModuleFromTcpEntry得到module name and path .

关于windows - 为Windows实现个人防火墙,如何判断数据包属于哪个应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2842188/

相关文章:

windows - 关于公钥加密的问题

java - 如何从路由器中的其他计算机或移动设备访问中央服务器/数据库

java - 如何修复 'Server sending data faster than client can handle, server freezes'

Windows azure 缓存错误 - "Cache referred to does not exist. Contact administrator or use the Cache administration tool to create a Cache."

c++ - 从 Windows 上的 Qt Creator 进入 Qt 源代码(不是从源代码构建的)

ruby - 用chef创建windows用户,并将用户添加到本地Administrators组

php - 如何确保上传的文件是MS Word文档?

ruby - 在 Ruby 中下载文件的安全方法

.net - .Net 上的授权和权利解决方案,就像之前在 AzMan 中一样

networking - Julia - 无法在 Wireshark 中捕获环回 UDP 数据包