作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (06): 123-125. doi: 10.3969/j.issn.1000-3428.2007.06.043

• 安全技术 • 上一篇    下一篇

基于封包截获技术的个人防火墙核心驱动技术

陈少辉,张艳宁,刘艳玲   

  1. (西北工业大学计算机软件学院,西安 710065)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-03-20 发布日期:2007-03-20

Kernel Driver Technology of Double Filtering Personal Firewall

CHEN Shaohui, ZHANG Yanning, LIU Yanling   

  1. (Department of Computer and Software, Northwestern Polytechnical University, Xi’an 710065)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-03-20 Published:2007-03-20

摘要: 针对多数防火墙防外不防内的致命缺点,提出了一种双重过滤设计方案:在内核模式下用TDI虚拟驱动接口挂接技术实现对通过传输层的数据封包截获,在应用模式下采用Winsock 2 SPI技术实现对基于Socket网络连接通信的服务截获,克服了单方面截获数据包的缺点。介绍了核心层虚拟驱动编程技术。

关键词: 过滤驱动, IRP分层, Winsock 2 SPI, 截获

Abstract: The disadvantage of the function of the most firewall production is capturing the attack from the outer network not form the inner network. A new double filtering packet mechanism based on kernel and user mode scheme is presented and accomplished with the development of the personal firewall technology. In the kernel mode, the network driver program is developed to implement the raw net packet capturing through the TDI virtual driver interface technology. In the user mode, all program are developed to implement the services based on Socket capturing and filtering through the Winsock 2 SPI technology. Therefore, the shortcoming is overcomed during capturing packet only by kernel mode or user mode, and greatly improved the system security performance.

Key words: Filtering driver, Layered IRP, Winsock 2 SPI, Capture