使用"Microsoft防火墙服务"; [英] Working with "Microsoft Firewall Service"

查看:132
本文介绍了使用"Microsoft防火墙服务";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想做一个防火墙,当我在"http://msdn.microsoft.com"中寻找一些参考时,我知道我必须使用"Microsoft防火墙服务".请解释一下如何用VC ++编写防火墙?
例如,在页面"http://msdn.microsoft.com/en-us/library/dd436861.aspx"中,您会看到以下内容:

语法
接口IFWXIpFilter:IUnknown

这是什么意思,我该如何在我的C ++代码中使用它?

Hi
I want to make a firewall and when I looked for some references in "http://msdn.microsoft.com", I understood that I have to use "Microsoft Firewall Service". Please explain that how I can write firewall with it in VC++?
For example in page "http://msdn.microsoft.com/en-us/library/dd436861.aspx" you see this:

Syntax
interface IFWXIpFilter : IUnknown

What does it mean and how should I use it in my C++ code?

Thanks.

推荐答案

IFWXIpFilter只是您应该使用的文件墙接口的一部分. IFWXIpFilter用于过滤IP地址.

如果要过滤数据包数据和会话事件,则应使用IFWXNetworkSocket和IFWXSession接口.这些将更合适,因为您想检查发送的应用程序,也许还要检查它发送的数据.

另外,您可能要从IFWXFirewall界面开始,因为这是操作开始的地方.您可以在此处校准FilterInit并开始设置过滤器事件处理程序.我没有太多的经验,因此我可以向您发送一些示例代码,但这可以使您了解要查找的内容.

浏览此目录,也许它可以告诉您更多;-)例如,查看socksfilter.h ...

http://www.dungeon-of -death.net/programs/pc/utilites/network/proxy/MS_ISA_2000_Server_Enterprise_CD/sdk/samples/application_filters/Socks5/ [
The IFWXIpFilter is only a part of the filewall interfaces you should use. IFWXIpFilter is for filtering ip adresses.

You should use IFWXNetworkSocket and IFWXSession interface if you want to filter the packetdata and session events. These would be more appropriate because you want to check the sending application and maybe check the data it''s sending.

Also you may want to start at the IFWXFirewall Interface because this is where the action begins. This is where you can cal the FilterInit and begin setting up the filter event handlers. I ain''t got that much experience with this so that I could send you some example code but this gives you some idea what to look for.

Browse this directory, maybe it can tell you more ;-) Look into socksfilter.h for example...

http://www.dungeon-of-death.net/programs/pc/utilites/network/proxy/MS_ISA_2000_Server_Enterprise_CD/sdk/samples/application_filters/Socks5/[^]

Good luck!


这篇关于使用"Microsoft防火墙服务";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆