下载  rinetd.exe

  做好配置文件 conf.txt 放于同一目录

  配置如下:

0.0.0.0 800 172.17.9.12 80
0.0.0.0 8000 172.17.9.13 8000
0.0.0.0 8012 172.17.9.13 8012

测试 rinetd.exe -c conf.txt 运行顺利

 

下载微软工具包

运行 instsrv.exe rinetdme C:\tools\srvany.exe  (其中rinetdme  为服务名 )

修改注册表

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\rinetdme

建立项 Parameters

在新建项中建立字符串并设置值

Application     c:\tools\rinetd.exe

AppDirectory    c:\tools\

AppParameters    -c conf.txt

完成后保存,测试服务启动成功。至此OK。

 

资源下载:

Windows Server 2003 Resource Kit Tools  

 http://www.boutell.com/rinetd/

[参考]

端口重定向工具 rinetd 和 fpipe 

exe注册成windows服务

posted on 2011-04-28 17:30  ZF2211  阅读(798)  评论(0编辑  收藏  举报