How can the public network access a site on the local area network?

set up a site on a computer in the company"s local area network, and there is no problem for local area network access. Now you want the public network to access this site, how to configure it?
ps: has a domain name


through the internal and external penetration tool. For example, peanut shell, ngrok


on the router that accesses the carrier line, add the following forwarding rule:

 TCP  80  443 
=>
 IP

use nginx or another server as a reverse proxy and use a subdirectory of the company's domain name to point to the intranet

Menu