In-depth explanation of the principle of router port ing

Source: Internet
Author: User

Next, Let's explain in depth the principle of router port ing. First, let everyone know the principle of router port ing, and then give a comprehensive introduction. When solving similar problems, I found this article and it feels good.

Router port ing is actually a type of NAT address translation that we often call. Its function is to convert public addresses into private addresses, A route-based ADSL Broadband Router has a dynamic or fixed public IP address. ADSL is directly connected to the HUB or vswitch, and all computers share the internet. At this time, there is only one external address for ADSL, such as 61.177.0.7. The internal IP address is a private address. For example, if ADSL is set to 192.168.0.1, the following computers are set to 192.168.0.2 to 192.168.0.254 in sequence.

How can I implement the NAT Function on a Broadband Router? Generally, vrouters can use virtual server settings and open hosts (DMZHost ). Generally, users can define different ports for providing services as needed, while the open host is for IP addresses. The firewall function is disabled to directly map a single IP address of the LAN to an external IP address, instead of the number of ports, this method only supports one internal computer.

The most common router port ing is for servers in the network to use internal private IP addresses. However, many users want to use the router port ing to view these server addresses on the Internet, here, we need to figure out the port number of the service used. For example, the HTTP service is 80, and the FTP service is Port 20 and port 21. The most common port 80 is used as an example to set a virtual HTTP server. Assume that the internal HTTP Server IP address is 10.0.0.10.

Enter http: // 10.0.0.2 in the browser to go to other configuration pages, modify the HASB-100 itself HTTP service port, not recommended to close, because usually use WEB Settings HASB-100, change the HTTP server port to 81. Submit and restart.

Open HASB-100 control page http: // 10.0.0.2: 81 enter the Virtual Server Page, enter public port 80, Private Port 80, port type is TCP, Host IP address 10.0.0.10. Click Add settings, save and restart the HASB-100. The settings are complete. At this time, the Internet can access the internal 10.0.0.10 by entering the IP address of the HASB-100 in IE, of course, 10.0.0.10 to open the HTTP service.

Let's talk about the FTP virtual server. Note that FTP is two ports, 20 and 21, both of which must be mapped to the vro port. The method is the same as above. First, disable the FTP service for the HASB-100 on another configuration page. Submit and save. Then, add two mappings to the Virtual Server Page. Just like HTTP, we will not talk about them here.

In other settings, DMZ settings are disabled by default. You must enable this function to enable the virtual server in the LAN. Go to the vro and click "other settings"> "NAT"> "add ". Select "REDIRECT" as the rule type ". Select "TCP" as the Protocol ". Enter your computer address, for example, 192.168.0.2 ".

Select "HTTP80" for the start destination router port ing. If you map other ports, select "any other port" and enter the port number on the right. Terminate the destination port, which is the same as the starting destination port. To map a port range, for example, "60000-60020", set the starting destination port to 60000 and ending destination port to 60020.

At the end of router port ing, click Submit. Click "advanced" in the main menu, and there is a forwarding in the next menu. Set up webserver on the internal pc192.168.1.2 as an example. Set extport: 80to80, ipaddress: 192.168.1.2, and click "apply.

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.