First, Application Introduction
After using the router, Internet users cannot access the hosts in the LAN, so they cannot access the web, FTP, mail and other servers built in the intranet. The virtual server function can map the intranet server to the Internet, and realize the opening-up.
This article instructs the Router virtual server function application and the establishment method.
Second, demand analysis
In this paper, an enterprise needs to map the Web server to the needs of the extranet as an example to introduce the specific setting method. The specific requirements of the enterprise are as follows (the actual configuration is based on actual parameters):
IP address of the server: 192.168.1.10
Ports on the extranet access server: TCP 8080
Note : In order to avoid the attack from opening the real port of the server to the extranet, it is recommended that the external port be different from the real port.
Third, set up the method
1 , enter the Setup interface
Enter the melogin.cn (or 192.168.1.1) login router interface in the browser's address bar and click on the
Advanced Settings in the upper-right corner of the page, as shown below:
Click on the advanced user > Virtual Server to enter the Setup interface, as shown below:
2 , adding mapping entries
Click Add , as shown below:
Enter the parameters for the server you want to map and click Save as follows:
external Port: The external port is the open port, that is, the port used by the Internet access server.
After adding the list is as follows:
At this point, the virtual Server rule settings are complete.
3 , login DDNS
If your broadband is not a static IP address, you can request a domain name and log in to the router in Advanced settings > Advanced user > DDNS . After logging in, use your domain name and open port to access the server.
Enter the DDNS settings interface, input peanut Shell username and password , check automatic login , click Login , login successful, the interface will display domain name information. The following figure:
If you do not apply for the peanut Shell domain name, please log in the Peanut Shell official website registration domain name first.
4 , external network access server
Based on the above settings, Internet users access the Web page server through the browser, in the form of: Domain name: External Port , as shown below: