The use of Linux lower port mapping and forwarding software rinetd

Source: Internet
Author: User

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

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.