Install rinetd in centos

Source: Internet
Author: User
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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.