Port forwarding in linux [Details]

Source: Internet
Author: User

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

 

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.