Xiaobai uses an old mobile phone to build a web server (2): internal network penetration to achieve external network access (1)

Disclaimer: This blog does not involve overturning the wall, it is only used between the public network and the local area network, within the scope permitted by national laws

In Building a web server with an old mobile phone (1): Realizing LAN access_Kiss Plasma Blog-CSDN Blog , we have already set up the internal network environment, which can only be accessed in the LAN. If you want to access it under the public network, you need Perform intranet penetration .

1. Intranet penetration

1. Introduction to Intranet Penetration

The principle of intranet penetration is to map ports, allowing computers on the external network to find computers on the internal network; simply speaking, the services of the LAN cannot be accessed from the external network, and the port mapping from the external network to the internal network is realized through the internal network penetration technology , to implement extranet access to intranet services

2. Intranet penetration tool

There are many intranet penetration schemes. The popular tools on the market that support intranet penetration include Ngrok, Natapp, Xiaomi Ball, Sunny-Ngrok, echosite, Ssh + autossh, Lanproxy, Spike, Frp, etc. Ngrok is recommended, most tools actually is based on Ngrok

This article adopts the simplest one: use peanut shells to achieve intranet penetration (you need to pay a real-name authentication fee of 6 yuan, and then basically use it permanently)

2. Download and use peanut shells

Need to download two Android software: 1. Berry Peanut Shell Management 2. Berry Peanut Shell Intranet Version

1. Berry Peanut Shell Management

It is a software used to manage Bai Rui peanut shells

After registration

Enter peanut shell management, select custom mapping, select HTTP as the mapping type, and fill in Xiaobai for the intranet host. Use an old mobile phone to build a web server (1): Realize LAN access ip, port write 8080

2. Enable intranet penetration

Use the same account managed by Berry Peanut Shell to log in to the intranet version of Berry Peanut Shell and enable intranet penetration.

If there is no red prompt message, the penetration is successful 

 

3. Effect

Now you can use the domain name provided by Peanut Shell to access the server

Here we have successfully established the server, and the domain name given by the peanut shell can be accessed through the public network. Of course, this domain name is very ugly. We can purchase the domain name by ourselves and resolve it to the domain name through dns. Note: Only when the intranet version of Beirui Peanut Shell and ksweb run at the same time can the server be accessed normally! ,

Peanut shells are simple to achieve intranet penetration, but only one application can be mapped, and there is a display of 1G traffic and 1M bandwidth.

Therefore, intranet penetration can also be achieved through other solutions

Guess you like

Origin blog.csdn.net/qq_43445867/article/details/131501263
Recommended