Welcome 微信登录

首页 / 操作系统 / Linux / Linux下用rinetd做端口转发

Linux下端口转发映射的程序叫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一直都不感冒Ubuntu:HQ 即时地球壁纸-XPlanetFXLinux SWAP的查看与维护相关资讯      Linux教程 
  • Linux教程:如何在命令行中查看目  (07/28/2014 12:22:23)
  • Linux 修改root密码  (11/03/2012 07:53:38)
  • su - root 与su root的区别  (06/06/2012 00:39:40)
  • Linux进程间通信:消息队列  (01/28/2013 09:43:00)
  • U盘安装Linux开机无法启动解决方法  (10/07/2012 08:55:52)
  • Windows 7/Linux 同步时间  (05/15/2012 06:17:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数