LINUX port ing tool rinetd is simple, short, and quick. complete the test. OK system environment: the centos6.0 system requires the gcc component yum-yinstallgcc * to download wgethttp: // www.boutell.com/rinetd/http
LINUX endPortYingShotWorkWithRINETD Simple, short, and fastComplete Test OK
System environment: centos6.0 the system requires the gcc component
Yum-y install gcc *After installation
First Download wget http://www.boutell.com/rinetd/http/rinetd.tar.gz
Decompress tar zxvf rinetd.tar.gz
Cd rinetd
Then an error occurs during the make process.
Vi rinetd. c
Input/bindPort> = 65536 query
Input/connectPort> = 65536 query
Modify the query 65536 to 65535.Otherwise, the system will prompt that the system has exceeded the maximum defined port number during make.
Make install
Rinetd. c: 176: Warning: conflict with the built-in function 'log' type
Rinetd. c: In function 'log ':
Rinetd. c: 1395: Warning: 'log' is always equivalent to 'true'
Gcc rinetd. o match. o-o rinetd
Install-m 700 rinetd/usr/sbin
Install-m 644 rinetd.8/usr/man/man8
Install: The general File "/usr/man/man8" cannot be created: the file or directory does not exist.
Make: *** [install] Error 1
Create man/directory under/usr
Then re-make install
After make install, the system will prompt the directory after installation
/Usr/sbin
Cd/usr/sbin to enter the directory and then run./rinetd
The system will prompt that/etc/rinetd. conf cannot be found.
Cd/etc/
Create file rinetd
Vi rinetd
Input:
SOURCE ip portDestination ip port
192.168.1.2 25 192.168.11.11 21
Then, the directory cd/usr/sbin is returned.
./Rinetd-c/etc/rinetd
That's all. The results are quite good.