Linux Port forwarding-rinted tool deployment, configuration, use

Source: Internet
Author: User
Tags ssh port

Editor's note


Recently, as the company opened a customized project planning, for each project will open a test server, the implementation will use the test server SSH port, MySQL port, web port, in order to save resources (public IP, server resource reuse), based on the rinted tool to build a port forwarding server. The flowchart below will be a better way to express the functionality that this article is about to achieve!


1, source installation rinted:

Download and decompress the source package:

CD/USR/LOCAL/SRC && wget && tar XF rinetd.tar.gz && CD rinetd

To modify the compilation configuration:

Sed-i ' s/65536/65535/g ' rinetd.c# modify the port range, otherwise it will be an error

Compile and install:

Mkdir-p/usr/man/man8 && make && make install

Edit Profile:/etc/rinetd.conf

#自定义mysql端口: 3001/3100# custom SSH port: 2001/2500# custom Web port: 801/899# port forwarding: [Source Address] [source port] [Destination address] [Destination port]0.0.0.0 8080 10.124.162.114 80800.0.0.0 443 10.124.162.114 80800.0.0.0 3001 10.124.162.114 33080# port mapping: Bindaddress Bindport connectaddress Connectportlogfile/var/log/rinetd.log

Start and close:

#启动/usr/sbin/rinetd-c/etc/rinetd.conf #关闭pkill rinetd


Linux Port forwarding-rinted tool deployment, configuration, use

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.