Home > OS >  Linux under the easiest port forwarding to use tools
Linux under the easiest port forwarding to use tools

Time:09-16

Linux under the easiest to use port forwarding tool
Website address: http://www.rinetd.com/
Software download
Wget http://www.rinetd.com/download/rinetd.tar.gz

Unpack the installation
The tar ZXVF rinetd. Tar. Gz
Make
Make install

Edit the 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
80 192.168.0.10 80
1. 2.
Explain (0.0.0.0 native binding all the available address)
All will be sent to the native port 8080 forward requests to port 8080 172.19.94.3
All will be sent to the native port 2222 forward requests to port 3389 192.168.0.103
All will be sent to 2 80 port forward requests to the 192.168.0.10 port 80

Start the program
Pkill rinetd # # close process
The/usr/sbin/rinetd forward # # start
Add this command to the/etc/rc. Local it can run automatically boot

Check the state of
Netstat antup

Need to pay attention to
1. Rinetd. Conf binding in the local port must not be taken up in other programs
2. Run rinetd system firewall should open the binding of local port
For example:
- A RH - Firewall - 1 - INPUT - m state - the state NEW -m TCP -p TCP -- dport 1111 - jACCEPT
- A RH - Firewall - 1 - INPUT - m state - the state NEW -m TCP -p TCP -- dport 2222 - jACCEPT
  • Related