Rinetd is ancient, small, efficient, and open-source
Rinetd is a tool for redirecting the Transmission Control Protocol (TCP) connection in Unix and Linux operating systems. Rinetd is a single-process server that processes any number of connections to the address/Port Pairs specified in the configuration file etc/rinetd. Although rinetd uses non-locking I/O operations as a single process, it may redirect many connections without adding additional burden on this machine.
1. download the software rinetd.tar.gz.tar.
Http://www.boutell.com/rinetd/
2. decompress, compile, and install
Tar xvf rinetd.tar.gz.tar
Cd rinetd
Make & make install
3. Write the configuration file
Vi/etc/rinetd. conf
File Format:
Source Address Source Port Destination Address destination port
For example, on the local machine:
0.0.0.0 2200 0.0.0.0 22
3. Start
Rinetd
/Etc/rinetd. conf will be read by default
If you specify the rinetd-c path file