The first step is to ensure that your intranet machine can smoothly connect to the Internet through the so-called proxy server. Here we will not talk much about it.
Let's look at this picture. As for how the proxy server with a public IP address (or the proxy gateway) connects to the Internet (also in the question mark), this is an ISP problem for individual users, I won't talk about it here.
This server has dual-nic, one set IP address is 61.134.36.58 to connect to the Internet, and the other set to 192.168.0.1 to connect to the Intranet. The parameter settings are as follows:
Server
ADP 1 is connected to the Internet. (Enable Internet Connection Sharing in advanced options)
ADP 2 is connected to the Intranet. parameters:
IP: 192.168.0.10
Subnet Mask: 255.255.255.0
Gateway: NULL
DNS: NULL
Enable the DNS service in the DNS console of the server and enable the forwarder to forward the DNS provided by your ISP, that is, the DNS of adp1 (If this option is not set, then the client can only access the Web using IP addresses)
Client (intranet machine settings)
IP: 192.168.0 .*
Subnet Mask: 255.255.255.0
Gateway: 192.168.0.1
DNS: 192.168.0.1
In this case, the client can be connected to the Internet.
I used two machines for testing, one as a server and one as a client without passing through the hub, and directly connected with a network cable.
Step 2: add Port ing so that users on the internet can access the Intranet through your proxy server (proxy gateway.
Here we need a tool. porttunnel.
: Http://down.huigezi.net/soft/tool/PortTunnel_CH.zip
Of course, you can also search for other products on the Internet. This software is currently free of charge.
Install this program on your proxy server (proxy gateway), and then set
The following uses the HTTP service mapped to port 80 of 192.168.0.10 as an example.
Start this program, such
Click "add"
For more information, see.
Name: site name. Enter it at will.
Input Port: This indicates which port of the server is mapped to the machine on the Intranet, as long as the server does not use the port. 36.58 does not enable the HTTP service, so port 80 is available. (You can also change it to another one)
Output port: this refers to the port that the Intranet computer provides services. For example, if you use the gray pigeon vip version, enter 80 here (the default automatic Launch port is 80. If you change it, );
Output address: this refers to the Intranet computer to which the port is mapped; that is, the gray pigeon client is used on the Intranet computer.
It's actually quite easy to know after a try.