摘要
文中介绍了Windows环境下根据Winsock 2服务提供者接口(Service Provider Interface,SPI)开发数据包过滤程序的技术,并提出一种将此技术与Socks5协议相结合,在客户端实现TCP,UDP数据包代理转发的方案。重点阐述了SPI技术实现自定义基础服务提供者或分层服务提供者的原理,以及以分层服务提供者的方式对SPI截获的TCP,UDP数据包分别进行代理转发的实现。此技术可广泛适用于单机透明代理客户端、基于代理服务器的计费系统等方面。
Simply introduces the study result of technique of packet filtrating based on SPI in Windows operating system. Then this technology is put forward innovatively to integrate with Socks,5 protocol for the design and implementetion of a solution rehted to TCP and UDP packet filtrating and forwarding. This paper focuses on some knowledge of user-defined basic service provider and layered service provider,and the key point of forwarding TCP and UDP packet to Socks5 proxy server by layered service provider, This technique is useful in the applications of Socks5 proxy client and hilling system based on proxy server technique.
出处
《计算机技术与发展》
2006年第6期45-47,共3页
Computer Technology and Development