In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Linux port mapping tool rinetd under the use of many novices are not very clear, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Rinetd, a simple and easy to use tool under Linux, to achieve port mapping / forwarding / redirection.
Software download
Wget http://www.boutell.com/rinetd/http/rinetd.tar.gz
Decompression and installation
Tar zxvf rinetd.tar.gz
Make
Make install
Edit configuration
Vi / etc/rinetd.conf
0.0.0.0 8080 172.19.94.3 8080
0.0.0.0 2222 192.168.0.103 3389
1.2.3.4 80 192.168.0.10 80
Explain (0.0.0.0 indicates that all available addresses are bound locally)
Forward all requests to port 8080 on this machine to port 8080 of 172.19.94.3
Forward all requests to port 2222 on this machine to port 3389 of 192.168.0.103
Forward all port 80 requests to 1.2.3.4 to port 80 of 192.168.0.10
The command format is
Bindaddress bindport connectaddress connectport
Bound address bound port bound address connected port
Or
[Source Address] [Source Port] [Destination Address] [Destination Port]
Source address source port destination address destination port
Startup program
Pkill rinetd # # shut down the process
Rinetd-c / etc/rinetd.conf # # start forwarding
Add this command to / etc/rc.local and you can turn it on and run automatically.
View statu
Netstat-antup
Need to pay attention to
The native port bound in 1.rinetd.conf must not be occupied by other programs
two。 The system firewall running rinetd should open the bound native port
For example:
-A RH-Firewall-1-INPUT-m state-- state NEW-m tcp-p tcp-- dport 1111-j ACCEPT
-A RH-Firewall-1-INPUT-m state-- state NEW-m tcp-p tcp-- dport 2222-j ACCEPT
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.