linux下用rinetd做端口转发


端口转发映射的程序叫rinetd,启动方法rinetd -c /etc/rinetd.conf 。

把1.1.1.1的11端口映射到2.2.2.2的3389端口,配置文件如下

[root@localhost iso]# cat /etc/rinetd.conf
1.1.1.1 11 2.2.2.1 3389
1.1.1.1 12 2.2.2.2 3389
1.1.1.1 13 2.2.2.3 22
1.1.1.1 14 2.2.2.4 80
allow *.*.*.*
logfile /var/log/rinetd.log

要说iptables也能实现,但不清楚具体的命令是啥,这个链那个链的,我对iptables一直都不感冒

相关内容

    暂无相关文章