您的位置:首页 > 其它

Rinetd.exe 通过 instsrv.exe/srvany.exe 注册服务实现稳定端口转发

2011-04-28 17:30 375 查看
下载 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服务
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: