How to make your own cloud platform and realize remote access control?

In addition to Ali and Tencent's various clouds, computer masters all want to build IoT cloud platforms by themselves. Today, Xiaobian will share with you a method of self-made IoT cloud platform using Ubuntu+EMQX+Node-RED, and realize remote data access at any time without public network IP!

The first step Step1 is to build the EMQX server

1. Building an IoT platform requires a server, the virtual machine used here. Download the installation package corresponding to your ubuntu version,

2. Remotely connect to the server and enter relevant instructions to download and install, and EMQ X Broker 4.2.2 is started successfully! appears, which proves that the deployment of the EMQ server is completed;

 

3. The local virtual machine opens the cloud server;

4. Open a client of EMQX, publish and subscribe messages to verify the EMQX server; here use the MQTT.FX software to test the connection to the EMQX server, and the messages published by the server can be received normally, that is, the IoT platform is successfully built ;

5. Report the device data to the visualization platform and receive platform control instructions. Just change the subscription topic of Node-RED's MQTT receiver to the topic published by the device, and set the publication topic of the Node-RED sender to the subscription topic of the device.

6. The configuration is complete, and the local browser can be accessed successfully.

 

Now it only satisfies the access control under the LAN. If there is no public network IP , fast resolution can be used to realize the WAN access.

The second step is quick analysis to realize IoT remote access

1. Add mapping for fast analysis of intranet penetration . Mapping name: custom, easy to distinguish and mark. Public port type: refers to the port used for external network access, which is selected according to the application requirements of your own scene; internal network address: a fixed address for internal network access. It can be a fixed intranet IP or a computer name. If the mapping is used locally on the server, it is recommended to fill in the 127.0.0.1 format. Application port: subject to actual conditions, do not fill in randomly.

 

2. After the setting is complete, click OK, and Quick Resolution will automatically generate a WAN access address; through this access address, you can remotely access and control the IoT platform in different places , and the mobile terminal can also achieve remote access through the Quick Resolution access address.

So far, the personal IoT cloud platform has been built, and remote access has been realized through fast analysis .

As one of the earliest NAT-DDNS service providers in China, Kuaiyan has solved the problem of long-distance communication between internal and external networks for generations of Internet users with its profound technical accumulation and safe and stable services. Compared with other solutions, Quick Analysis has the following obvious advantages:

1. Quick deployment, easy to use

Quick analysis does not change the original IT structure of the enterprise, and quickly establishes a connection with the intranet server through the cloud server, and realizes remote access to various intranet services such as OA, ERP, CRM, NAS, database, video surveillance, etc. in 3 simple steps .

2. Safe and stable, protect privacy

Full use of p2p technology for direct NAT penetration without port mapping , so that LAN data can be accessed on the external network, with faster access speed and more stability ; HTTPS protocol is constructed by SSL+HTTP protocol, which can be encrypted for transmission to ensure the security of data transmission .

3. Intelligent analysis

Quick Resolution can intelligently return and resolve addresses according to the geographical location of visitors , supports cross-border lines, and can customize intelligent line analysis ; adopts multi-line computer rooms, and selects the fastest line for users through BGP automatic routing analysis ; at the same time, access is realized through CDN technology Acceleration to provide users with a better analysis experience

4. Multi-scenario application

Provide fast, stable and secure terminal resolution services based on DoH (DNS over HTTPS) and DoT (DNS over TLS) for terminal devices such as mobile terminals, APPs, and IoT devices .

Guess you like

Origin blog.csdn.net/asdaddsd/article/details/130438651