Linux安装rinetd

本文档详细介绍了rinetd版本0.62的安装步骤及配置方法,包括从源码编译安装到配置虚拟服务器重定向的过程,并提供了解决安装过程中遇到问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载wget http://www.boutell.com/rinetd/http/rinetd.tar.gz

 

[root@DBA128 ~]tar -xvf rinetd.tar.gz

[root@DBA128 ~]# cd rinetd

[root@DBA128 rinetd]#

 

 

查看安装文档README

root@DBA128 rinetd]# more README

rinetd version 0.62, by Thomas Boutell. Released under

the terms of the GNU General Public License, version 2 or later.

 

This program is used to efficiently redirect connections

from one IP address/port combination to another. It is

useful when operating virtual servers, firewalls

and the like.

 

A binary for 32-bit Windows (95, 98, NT) is included (see the

file rinetd.exe). Windows 3.1 is not supported.

 

To build under Unix, check the Makefile for platform-

specific details and then type make. To install, type

"make install" as root.

 

To build under Windows, use the provided project

files with Microsoft Visual C++. Windows 3.1 is not supported.

 

For documentation run "make install", then type

"man rinetd" for details. Or, read index.html in

your browser.

 

[root@DBA128 rinetd]#

 

[root@DBA128 rinetd]# make

 [root@DBA128 rinetd]# make install

install -m 700 rinetd /usr/sbin

install -m 644 rinetd.8 /usr/man/man8

install: 无法创建普通文件"/usr/man/man8": 没有那个文件或目录

make: *** [install] 错误 1

[root@DBA128 rinetd]#

此时出现错误

手动出现创建目录

[root@DBA128 rinetd]# mkdir –p /usr/man/man8

[root@DBA128 rinetd]# make install

install -m 700 rinetd /usr/sbin

install -m 644 rinetd.8 /usr/man/man8

[root@DBA128 rinetd]#

[root@DBA128 rinetd]# vim /etc/rinetd.conf

192.168.81.136 40012 10.19.69.106 30012

[root@DBA128 rinetd]# /usr/sbin/rinetd -c /etc/rinetd.conf

[root@DBA128 rinetd]# netstat -an | grep 40012

tcp        0      0 192.168.81.136:40012        0.0.0.0:*                   LISTEN     

[root@DBA128 rinetd]# more /etc/rinetd.conf

 

 

可以添加到开机启动

[root@DBA128 rinetd]# vim /etc/rc.d/rc.local

/usr/sbin/rinetd -c /etc/rinetd.conf

 

转载于:https://my.oschina.net/ulink/blog/701132

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值