最近一直在配置Dummynet,发现了很多问题。首先我在Windows 8.1平台下配置后,发现无法打开ipfw.exe。 经过解决,需要Crgwin下打开ipfw.exe. 原因应该是ipfw是基于Linux源开发的,在Windows打开需要一个模拟Linux的软件,而Crgwin就是让你在Windows找到Linux的感觉。
具体操作如下,将所下载的ipfw文件复制到Crgwin文件夹,之后就可以按Linux 与 ipfw的操作方法进行了。
Shark@Lau ~
$ ls
Shark@Lau ~
$ cd ..
Shark@Lau /home
$ ls
Shark
Shark@Lau /home
$ touch xiaohe.txt
Shark@Lau /home
$ cd Xiaohe/
Shark@Lau /home/Xiaohe
$ ls
ipfw3-2012
Shark@Lau /home/Xiaohe
$ cd ipfw3-2012/
Shark@Lau /home/Xiaohe/ipfw3-2012
$ ls
~$README binary64 ipfw Makefile README tcc_glue.h
binary glue.h kipfw Makefile.inc sys
Shark@Lau /home/Xiaohe/ipfw3-2012
$ make
-bash: make: command not found
Shark@Lau /home/Xiaohe/ipfw3-2012
$ cd ipfw/
Shark@Lau /home/Xiaohe/ipfw3-2012/ipfw
$ ls
add_rules glue.c ipfw.8 ipv6.c qsort.c ws2_32.def
dummynet.c humanize_number.c ipfw2.c main.c qsort_r.c
expand_number.c include ipfw2.h Makefile rule_test.sh
Shark@Lau /home/Xiaohe/ipfw3-2012/ipfw
$ make
-bash: make: command not found
Shark@Lau /home/Xiaohe/ipfw3-2012/ipfw
$ locate make
Shark@Lau /home/Xiaohe/ipfw3-2012/ipfw
$ updatedb
/usr/bin/find: ‘/cygdrive/c/$Recycle.Bin/S-1-5-18’: Permission denied
/usr/bin/find: 探测到文件系统循环;‘/cygdrive/c/cygwin64’ 是与 ‘/’ 相同的文件系 统循环的一部分。
/usr/bin/find: ‘/cygdrive/c/inetpub/history’: Permission denied
/usr/bin/find: ‘/cygdrive/c/inetpub/logs/FailedReqLogFiles’: Permission denied
/usr/bin/find: ‘/cygdrive/c/inetpub/logs/LogFiles/W3SVC1’: Permission denied
/usr/bin/find: ‘/cygdrive/c/inetpub/temp/appPools’: Permission denied
/usr/bin/find: ‘/cygdrive/c/inetpub/temp/ASP Compiled Templates’: Permission den ied
/usr/bin/find: ‘/cygdrive/c/inetpub/temp/IIS Temporary Compressed Files’: Permis