32位windows7安装ipfw(完成iptables功能)

安装该篇文章的方法安装ipfw 不会出现

my_socket failed 2, cannot talk to kernel module

的错误,亲测可用


首先下载DummyNet https://github.com/luigirizzo/dummynet

下载之后解压,如果是64位系统就把binary64下面的文件拷贝到binary 目录下,复制并替换。我是32位系统所以直接解压后无改动。


接下来根据binary目录下的README文件,以下为文件内容


This directory contains the binaries to install and use IPFW and
DUMMYNET on a Windows Machine. The kernel part is an NDIS module,
whereas the user interface is a command line program.

1. INSTALL THE NDIS DRIVER
- open the configuration panel for the network card in use
  (either right click on the icon on the SYSTRAY, or go to
  Control Panel -> Network and select one card)
- click on Properties->Install->Service->Add
- click on 'Driver Disk' and select 'netipfw.inf' in this folder
- select 'ipfw+dummynet' which is the only service you should see
- click accept on the warnings for the installation of an unknown
  driver (roughly twice per existing network card)

Now you are ready to use the emulator. To configure it, open a 'cmd'
window and you can use the ipfw command from the command line.
Otherwise click on the 'TESTME.bat' which is a batch program that
runs various tests.
2. UNINSTALL THE DRIVER

- select a network card as above.
- click on Properties
- select 'ipfw+dummynet'
- click on 'Remove'


注意安装之前先禁用驱动程序签名强制Windows7系统禁用驱动程序签名强制的方法(自行搜索)

开始 - 运行(输入gpedit.msc)- 确定或者回车。打开本地组策略编辑器;

在打开的本地组策略编辑器窗口,我们找到:用户配置 - 管理模板;
在管理模板展开项中找到:系统并展开;
在系统的展开项中,我们找到:驱动程序安装,并左键单击:驱动程序安装;
在驱动程序安装对应的右侧窗口,我们找到:设备驱动的代码签名,并左键双击:设备驱动的代码签名;
在打开的设备驱动的代码签名窗口,我们选择:已启用,在选项的下拉框中,有:警告、阻止、忽略供选择。
警告:向用户通知未经数字签名的文件,并让用户决定是停止安装还是继续安装以及是否允许安装未经数字签名的文件。
阻止:命令系统拒绝安装未经数字签名的文件。
忽略:命令系统继续安装(包括安装未经数字签名的文件)。
如果我们要安装未经数字签名的驱动文件,可选择:忽略,再点击:确定;
驱动程序安装完成后,建议把刚才设置为忽略的项再设置为警告(默认设置),以增强系统的安全性。


禁用之后,安装ipfw的过程是选择一块网卡,我选择本地连接,右键->属性,如下图是我安装完成之后的(可以看到ipfw+dummynet)。




点击安装


选择服务->添加


选择 从磁盘安装


选择解压后binary目录下的netipfw.inf

安装过程中会有两次安全提醒,点击接受。


OK,现在可以测试一下,据说这个ipfw可以完成部分Linux下的iptables功能,在项目验证过程中需要这个环节,
所以测试一番




  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值