The use of Linux lower port mapping and forwarding software rinetd
Before always with Iptables do forward, that cumbersome command rare memory, so here, we can use the software to achieve this purpose.
Linux Port mapping forwarding tool RINETD installation use
1. Download wget http://www.boutell.com/rinetd/http/rinetd.tar.gz
Version number rinetd 0.62
2. Installation
Tar zxvf rinetd.tar.gz
CD rinetd
3. To run make #可能会出现错误, the following modifications are required:
VI RINETD.C
Input/bindport >= 65536 query
Input/connectport >= 65536 query
Change the query to 65536 to 65535 or you will be prompted to exceed the system's maximum defined port when make
4, Manual Construction directory/usr/man/man8
Make
5. Make install
After success will prompt the file path install-m Rinetd/usr/sbin, that is, the program is placed in this location
6. Setting up the configuration file
/etc/rinetd.conf
Content format: Source IP Source Port to jump to the port of the IP to jump
Twin05a20nat.sandai.net 80 10.9.9.2 80
7, start the program: RINETD
8. To see if it started successfully: Netstat-tanulp|grep rinetd
9, join the boot start:
Vi/etc/rc.d/rc.local
Join/USR/SBIN/RINETD
10. Other Notes:
Jump that does not support FTP
To stop the program: Pkill rinetd
This article is from the "Cyberspace" blog, so be sure to keep this source http://netspace.blog.51cto.com/1069106/1687987
The use of Linux lower port mapping and forwarding software rinetd