zhmg23

我们是如此的不同

Linux端口转发工具rinetd

官网下载地址:https://boutell.com/rinetd/http/rinetd.tar.gz

1、解压安装

tar xzvf rinetd.tar.gz

cd rinetd

make

make install

注:执行make install时可能出现错误:缺少目录/usr/man/man8,此时执行 mkdir -p /usr/man/man8 ,然后在次make install即可

2、创建配置文件:

vim /etc/rinetd.conf(这个文件不存在,需要手工创建)

0.0.0.0 9056 192.168.73.86 3306

注:配置文件格式如下

[Source Address] [Source Port] [Destination Address] [Destination Port]

源地址  源端口   目的地址  目的端口

3、启动rinetd

rinetd -c /etc/rinetd.conf

注:rinetd也有windows版本,配置方法完全相同,可以查看官网


评论