Port mapping can be used to access specific port services from the Internet to machines in the LAN. I have summarized several port ing methods used in teaching and networking practices. I will discuss with you here.
Use IIS to redirect WWW and FTP services
Both Windows 2000 and Windows XP contain IIS components. The WWW and FTP services have the home directory redirection settings. Compared with port ing, although the names are different, the functions are similar. This article uses the WWW and FTP services of IIS 2000 in Windows 5.0 as an example.
1. WWW Service redirection
Open the Internet Service Manager in the management tool. In the "Internet Information Service" dialog box, select a Web site name, for example, "Default web site", and view its properties, under the "home directory" tab on the property page, we can set the home directory location of the WWW server. 1.
Set the main directory to "shared location on another computer", which can be in the "network directory" column, in the format of \ {server} \ {sharing name}, enter the home directory that has been set as shared on the WWW server inside the LAN, for example, \ server6 \ www.
Figure 1
You can also select "redirect to URL" and enter a link to the WWW server in the LAN in the "redirect to" column, for example, http: // 192.168.0.6, as shown in figure 2.
2. FTP service redirection
Similar to WWW Service redirection, open the Internet Service Manager in the management tool, enter the "Internet Information Service" dialog box, select the FTP site name, for example, "Default FTP site", and view its properties, under the "home directory" tab on the property page, we can set the home directory location of the FTP server.
Figure 2
Port ing function of WinRoute pro
WinRoute pro is an Internet sharing software that works in NAT (Network Address Translation) mode. It comes with the port ing function. (For http://www.newhua.com/winroute.htm)
Run WinRoute administration and log on. On the main menu, choose Settings> advanced> port mapping. The port ing setting interface is displayed. The ADD and edit interfaces of port ing entries are shown in figure 3.
Figure 3
You can set the following options: Protocol, listener port, port type (single port or continuous port in a certain range), target host, and target port.
Dedicated port ing tool porttunnel
Porttunnel is a dedicated tool for port ing. It is a directly running software, as shown in figure 4. (: Http://nj.onlinedown.net/porttunnel.htm)
Figure 4
If the operating system is Windows NT/Windows 2000/Windows XP, start is selected during the first running, and porttunnel runs automatically as a service. Click the [add] button to add an entry, click the [edit] button to edit an existing entry, and click the [delete] button to delete the entry. See Figure 5.
Figure 5
In the "New/edit port ing" dialog box, name the entry and set the port in and bind address), the output port (port out) and the output address (address out ). The "binding address" refers to the IP address (internal IP address or external IP address) that listens to the host ). If it is set to any (0.0.0.0), all IP addresses of the host are monitored.
Porttunnel provides port ing for HTTP, FTP, and SMTP services. It provides many parameter settings and can be adjusted under the corresponding label menu. In addition, porttunnel provides security settings, logging, statistics, and other functions.
The above three port ing methods have their respective advantages. For details, see the appendix.
| |
IIS 5.0/6.0 |
WinRoute prov4.1.25 |
Porttunnelv1.6.3.170 |
| Applicable Operating Systems |
Windows 2000/XP |
Windows 9x/2000/XP |
Windows 9x/2000/XP |
| Protocol Type |
TCP |
TCP, UDP, TCP/UDP, PPTP, and others |
TCP |
| Port type |
Single |
Specified range |
Single |
| Service Type |
WWW, ftp |
Set FTP based on port |
Based on the port, www/FTP/SMTP has corresponding settings |
| Features |
Service redirection can be implemented in the form of shared directories, and no service is required on the target machine.Program |
Supports a wide range of Protocols. You can set a continuous port mapped to a specific range. |
Provides independent security settings, logs, and statistics. |