Secure remote management system for terminal equipment
By establishing a remote security management tunnel based on SSL and MQTT between the terminal equipment and the management platform, combined with VPN technology, the problem of insufficient security and adaptability in the remote management solution is solved, and the terminal equipment is realized under different network environments secure remote management.
Patent Information
- Application Number
- CN202410833304.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing remote management solution does not consider security issues during transmission, resulting in the inability of terminal devices to perform secure remote management under different network environments.
A secure remote management system for terminal equipment was designed. By establishing a remote security management tunnel between terminal equipment and management platform, using the national secret SSL and MQTT protocols for communication, and combining VPN technology, it ensures the security and reliability of data transmission. sex.
It realizes secure remote management of terminal devices in different network environments, supports security management of terminal devices with or without IP addresses, and improves communication security and the adaptability of management platforms.
Smart Images

Figure CN118400228B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data security, and in particular to a secure remote management system for terminal equipment. Background Art
[0002] With the development of the Internet of Things, more and more devices need to be remotely managed. The current main technical solutions include: Telnet, SSH, SNMP, TR-069, MQTT, and remote Web login remote management.
[0003] The current remote management solution does not take into account the security issues during the transmission process. At the same time, since the terminal devices can be in different network environments, for example:
[0004] 1. The terminal device and the remote management platform are in the same LAN. The terminal device has an IP address and acts as a client or server.
[0005] 2. The terminal device and the remote management platform are in the same LAN, the terminal device does not have an IP address, and other devices with IP addresses are connected to the terminal device;
[0006] 3. The terminal device is in the local area network, the remote management platform is in the Internet (with a public IP address), the terminal device has a local area network IP address, and acts as a client or server;
[0007] 4. The terminal device is in the LAN, the remote management platform is in the Internet (with a public IP address), the terminal device does not have a LAN IP address, and other devices with LAN IP addresses are connected to the terminal device;
[0008] 5. The terminal device is in the LAN, the remote management platform is in the Internet (with a public IP address), the terminal device does not have a LAN IP address, and other devices with LAN IP addresses are connected to the terminal device.
[0009] Since the terminal devices are in different network environments, it is easy to cause insecure communication with the management platform, resulting in the inability to perform secure remote management. Summary of the invention
[0010] The main purpose of the present invention is to provide a secure remote management system for terminal devices, aiming to overcome the current lack of consideration of the security issues of remote management and the defects of being unable to perform remote management in different network environments.
[0011] To achieve the above-mentioned object, the present invention provides a secure remote management system for terminal devices, comprising a terminal device and a management platform; the terminal device comprises a local security management module, a local management service module and a first VPN component; the management platform comprises a remote security management module, a remote management service module and a second VPN component;
[0012] A remote security management tunnel is established between the local security management module and the remote security management module, and the remote security management tunnel communicates based on the national secret SSL and MQTT protocols; wherein the local security management module includes an IP address and a non-IP address;
[0013] The local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel;
[0014] The remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel.
[0015] Furthermore, a remote security management tunnel is established between the local security management module and the remote security management module, including:
[0016] The local security management module acts as a TCP client to establish a TCP connection with the TCP server of the remote security management module;
[0017] The local security management module negotiates with the remote security management module to establish a national secret SSL tunnel through the national secret SSL protocol;
[0018] The local security management module uses the MQTT protocol to establish an MQTT message channel to communicate with the remote security management module.
[0019] Furthermore, when the terminal device has an IP address, the local security management module acts as a TCP client to establish a TCP connection with the TCP server of the remote security management module; the local security management module uses the IP address of the terminal device, and the remote security management module uses the IP address of the management platform;
[0020] When the terminal device does not have an IP address, the local security management module acts as a TCP client, utilizes Nginx transparent proxy technology and uses the IP address of the downstream device accessed by the terminal device as the IP address of the TCP client to establish a TCP connection with the TCP server of the remote security management module; wherein the remote security management module uses the IP address of the management platform; the Nginx transparent proxy technology at least includes tproxy technology based on Nginx.
[0021] Furthermore, the local security management module uses the MQTT protocol to establish an MQTT message channel to communicate with the remote security management module, including:
[0022] The MQTT client on the local security management module and the MQTT agent on the remote security management module establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0023] The MQTT client on the remote security management module establishes a publish / subscribe based message channel with the MQTT agent on the remote security management module.
[0024] Furthermore, when the terminal device acts as a client, the local management service module establishes a connection with the remote management service module through the first VPN component; the VPN control information and VPN data encapsulation of the first VPN component are securely transmitted to the management platform through the local security management module and the remote security management tunnel;
[0025] When the terminal device acts as a server, the remote management service module establishes a connection with the local management service module through the second VPN component; the VPN control information and VPN data encapsulation of the second VPN component are securely transmitted to the terminal device through the remote management service module via the remote security management tunnel.
[0026] Furthermore, the first VPN component and the second VPN component each include a VPN data message processing module based on a virtual network card.
[0027] Furthermore, when the terminal device and the management platform are in the same local area network, the terminal device and the management platform are interconnected via a switch;
[0028] The local management service module uses the IP address of the virtual network card in the first VPN component to connect with the remote management service module using the IP address of the virtual network card in the second VPN component.
[0029] Furthermore, when the terminal device and the management platform are not in the same local area network, the terminal device is interconnected with the management platform via a router;
[0030] The local management service module uses the IP address of the virtual network card in the first VPN component to connect with the remote management service module using the IP address of the virtual network card in the second VPN component.
[0031] Further, the terminal device has a downstream device;
[0032] When the terminal device acts as a client, the terminal device simulates the IP address of the downstream device through the tproxy technology, and the downstream device establishes a connection with the remote management service module through the first VPN component of the terminal device; the VPN control information and VPN data encapsulation of the first VPN component are securely transmitted to the management platform through the remote security management tunnel; the terminal device uses the IP address of the virtual network card in the first VPN component, and the remote management service module uses the IP address of the virtual network card in the second VPN component;
[0033] When the terminal device acts as a server, the remote management service module establishes a connection with the terminal device through the second VPN component; the VPN control information and VPN data encapsulation of the second VPN component are securely transmitted to the terminal device through the remote security management tunnel; the terminal device uses the IP address of the virtual network card in the first VPN component, and the remote management service module uses the IP address of the virtual network card in the second VPN component.
[0034] Further, when the remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel, a management code is generated for management verification;
[0035] The generation of the management code includes:
[0036] The remote management service module obtains first attribute information of the management platform and obtains second attribute information of the terminal device;
[0037] Generate an attribute matrix based on the first attribute information and the second attribute information; wherein the attribute matrix is a matrix of three rows and four columns, and each matrix position has a character;
[0038] Obtain the IP address of the management platform, and add the numeric characters in the IP address to a blank matrix of three rows and four columns in sequence to generate a numeric matrix;
[0039] The attribute matrix is subjected to character screening based on the digital matrix to obtain screening characters; and the management code is generated based on the screening characters.
[0040] The secure remote management system of terminal devices provided by the present invention comprises a terminal device and a management platform; the terminal device comprises a local security management module, a local management service module and a first VPN component; the management platform comprises a remote security management module, a remote management service module and a second VPN component; a remote security management tunnel is established between the local security management module and the remote security management module, and the remote security management tunnel communicates based on the national secret SSL and MQTT protocols; wherein the local security management module includes an IP address and a non-IP address; the local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel; the remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel. In the present invention, communication security is guaranteed by establishing a remote security management tunnel; the local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel, so that the terminal device can be securely remotely managed even in different network environments, and supports terminal devices with or without IP addresses. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a structural block diagram of a secure remote management system for terminal devices in one embodiment of the present invention;
[0042] Figure 2 is a schematic diagram of a secure remote management system application of a terminal device in one embodiment of the present invention;
[0043] Figure 3 is a schematic diagram of a second application of a secure remote management system for a terminal device in one embodiment of the present invention;
[0044] Figure 4 3 is a schematic diagram of a secure remote management system application of a terminal device in one embodiment of the present invention;
[0045] Figure 5 4 is a schematic diagram of a secure remote management system application of a terminal device in one embodiment of the present invention;
[0046] Figure 6 Schematic diagram of application 5 of a secure remote management system for terminal devices in one embodiment of the present invention.
[0047] The implementation, functional features and advantages of the present invention will be further described in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0049] In one embodiment of the present invention, a secure remote management system for terminal devices is provided, including terminal devices and a management platform; the terminal devices include a local security management module, a local management service module, and a first VPN component; the management platform includes a remote security management module, a remote management service module, and a second VPN component;
[0050] A remote security management tunnel is established between the local security management module and the remote security management module, and the remote security management tunnel communicates based on the national secret SSL and MQTT protocols; wherein the local security management module includes an IP address and a non-IP address;
[0051] The local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel;
[0052] The remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel.
[0053] In this embodiment, it specifically includes:
[0054] Local security management module: It is a key component installed on the terminal device and is responsible for secure interaction with the management platform. It supports two situations, namely, with an IP address or without an IP address. The system is flexibly designed to adapt to devices in different network environments. Through the National SSL (SSL encryption standard recognized by the State Administration of Commercial Cryptography) and MQTT protocol, it establishes a secure remote management tunnel with the remote security management module of the management platform to ensure the encryption and integrity of data transmission.
[0055] Local management service module: This module is connected to the remote management service module of the management platform through the established remote security management tunnel to realize the interaction of specific management commands and services.
[0056] First VPN component: Its control information and data encapsulation are all carried out through the above-mentioned secure management tunnel, which means that even when transmitted over the public Internet, it can be guaranteed that the data will not be eavesdropped or tampered with.
[0057] Remote security management module: corresponds to the local security management module on the terminal device side, responsible for maintaining a secure connection with the terminal device and ensuring that all management operations are performed within an encrypted channel.
[0058] Remote management service module: Through the remote security management tunnel, it directly performs remote management tasks on the terminal device and its downstream devices, such as software updates, configuration adjustments, monitoring status, etc., to achieve comprehensive management and control of the terminal.
[0059] Second VPN component: cooperates with the first VPN component of the terminal to form an encrypted tunnel in the entire data transmission process. It is a virtual communication link, combined with a remote security management tunnel, to ensure that all communication content between the local management service module and the remote management service module is safe and reliable.
[0060] In this embodiment, communication security is guaranteed by establishing a remote security management tunnel; the local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel, so that the terminal device can be securely remotely managed even in different network environments, and supports terminal devices with or without IP addresses.
[0061] In summary, the above system utilizes the encryption technology of the national secret SSL and the lightweight characteristics of the MQTT protocol, combined with VPN technology, to build an end-to-end secure communication link from the terminal device to the management platform. This design can not only effectively protect the communication content from external attacks, but also provide stable and secure remote management capabilities in complex network environments, especially for those devices without fixed public IP addresses. It is very suitable for the Internet of Things (IoT), internal enterprise network management, and remote monitoring scenarios with high security requirements.
[0062] In one embodiment, establishing a remote security management tunnel between the local security management module and the remote security management module includes:
[0063] The local security management module acts as a TCP client to establish a TCP connection with the TCP server of the remote security management module;
[0064] The local security management module negotiates with the remote security management module to establish a national secret SSL tunnel through the national secret SSL protocol;
[0065] The local security management module uses the MQTT protocol to establish an MQTT message channel to communicate with the remote security management module.
[0066] In this embodiment, it specifically includes:
[0067] First, the local security management module, as a TCP client, actively initiates a connection request with the remote security management module TCP server. TCP (Transmission Control Protocol) is a connection-oriented, reliable transport layer protocol that provides basic connection guarantees for data transmission between the two parties, ensuring that data packets arrive at the other party in order and without loss.
[0068] National SSL tunnel negotiation and establishment: Once the TCP connection is successfully established, the next step is to negotiate and establish an encrypted tunnel based on the National SSL (SSL / TLS encryption standard in the national commercial encryption system) between the local security management module and the remote security management module. This process involves key exchange, authentication, and negotiation of encryption algorithms to ensure the confidentiality and integrity of subsequent data transmission. National SSL complies with China's commercial encryption management regulations and is suitable for domestic application environments with strict security requirements. In this way, even if the data is transmitted on an insecure network (such as the Internet), its content cannot be easily interpreted.
[0069] MQTT protocol message channel establishment: Finally, under the protection of the national secret SSL tunnel, the local security management module and the remote security management module respectively start the MQTT (Message Queuing Telemetry Transport) protocol to establish a message channel. MQTT is a lightweight publish / subscribe message transmission protocol that is particularly suitable for devices with limited resources and low-bandwidth, high-latency network environments, such as IoT applications. Through MQTT, both ends can efficiently publish messages to specific topics and subscribe to these topics to receive messages, achieving flexible and targeted information exchange.
[0070] In summary, the solution provides basic transmission security through TCP connection, the national secret SSL tunnel ensures the secure encryption of data during transmission, and the MQTT protocol efficiently manages and transmits actual management instructions and device status information on this secure basis. The combination of the three constitutes a remote security management communication mechanism that is both secure and efficient. This design is very suitable for scenarios that require strict data protection and real-time remote management capabilities, such as industrial Internet of Things, smart city infrastructure management, etc.
[0071] In one embodiment, when the terminal device has an IP address, the local security management module acts as a TCP client to establish a TCP connection with the TCP server of the remote security management module; the local security management module uses the IP address of the terminal device, and the remote security management module uses the IP address of the management platform;
[0072] When the terminal device does not have an IP address, the local security management module acts as a TCP client, utilizes Nginx transparent proxy technology and uses the IP address of the downstream device accessed by the terminal device as the IP address of the TCP client to establish a TCP connection with the TCP server of the remote security management module; wherein the remote security management module uses the IP address of the management platform; the Nginx transparent proxy technology at least includes tproxy technology based on Nginx.
[0073] In this embodiment, it specifically includes:
[0074] When the terminal device has an IP address: In this case, the process is relatively straightforward. The local security management module uses the IP address of the terminal device itself as the source address, plays the role of a TCP client, and actively initiates a connection request to the TCP server of the remote security management module (located on the management platform and has a fixed IP address). This step is based on the standard TCP / IP protocol stack and directly establishes an end-to-end connection between the two, laying the foundation for subsequent SSL tunneling and MQTT communications.
[0075] When the terminal device does not have an IP address: When the terminal device does not have a directly routable public IP address, the connection establishment process becomes more complicated. At this time, the local security management module still acts as a TCP client, but it does not directly use its own IP address (because it does not have or cannot be directly routed), but uses the IP address of the downstream device as its proxy address for outbound connections.
[0076] Nginx transparent proxy technology plays a key role here. Nginx is a high-performance HTTP and reverse proxy server that also supports TCP proxy. By configuring Nginx to run with transparent proxy technology, it can receive connection requests from the local security management module and use its own IP address (that is, the IP address of the downstream device of the terminal device) as the source address to initiate a TCP connection to the remote security management module. In this way, even if the terminal device itself is not configured with an IP, it can indirectly establish a TCP connection with the remote security management module through Nginx as an intermediary.
[0077] The above method bypasses the limitation of not configuring an IP, so that even in an environment with a more complex network configuration, the terminal device can still communicate securely with the management platform, thereby realizing the remote management function.
[0078] In summary, this solution flexibly responds to terminal device connection problems under different network conditions. Through direct connection or indirect connection using Nginx transparent proxy, it ensures that all terminal devices can be effectively included in the coverage of the remote security management system, thereby improving the adaptability and practicality of the system.
[0079] In one embodiment, the local security management module uses the MQTT protocol to establish an MQTT message channel to communicate with the remote security management module, including:
[0080] The MQTT client on the local security management module and the MQTT agent on the remote security management module establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0081] The MQTT client on the remote security management module establishes a publish / subscribe based message channel with the MQTT agent on the remote security management module.
[0082] In this embodiment, it specifically includes:
[0083] The message channel between the local security management module and the remote security management module is established: Local MQTT client: The local security management module has an embedded MQTT client, which establishes a connection with the remote MQTT agent (located on the remote security management module) through the previously established national secret SSL encrypted tunnel. This step ensures the security and privacy protection of MQTT messages during transmission, because all messages will be encrypted by the SSL tunnel.
[0084] Publish / Subscribe Mode: The local MQTT client and the remote MQTT broker use the classic MQTT protocol publish / subscribe mode for communication. The local client can publish messages to specific topics (such as device status updates, alarm information, etc.), and the services on the remote management platform (or other clients subscribed to the same topic) can subscribe to these topics to receive messages, and vice versa, thus achieving a flexible, two-way communication mechanism.
[0085] The MQTT agent on the remote security management module acts as a central node, serving external MQTT clients (such as the client of the local security management module) and other possible remote management services, which interact with the MQTT agent through a publish / subscribe model.
[0086] The core of this solution is to use the high efficiency and lightweight characteristics of the MQTT protocol, combined with the security provided by the national secret SSL tunnel, to establish a safe and efficient communication channel. The local security management module establishes a connection with the MQTT agent of the remote security management module through the MQTT client, realizing the reporting of device status and the issuance of management instructions. All of this is carried out under the protection of the encrypted SSL tunnel, ensuring the confidentiality and integrity of the information.
[0087] In one embodiment, when the terminal device acts as a client, the local management service module establishes a connection with the remote management service module through a first VPN component; VPN control information and VPN data encapsulation of the first VPN component are securely transmitted to the management platform through the local security management module via the remote security management tunnel;
[0088] When the terminal device acts as a server, the remote management service module establishes a connection with the local management service module through the second VPN component; the VPN control information and VPN data encapsulation of the second VPN component are securely transmitted to the terminal device through the remote management service module via the remote security management tunnel.
[0089] In this embodiment, the solution uses a flexible role switching mechanism and dual security protection (MQTT over SSL tunnel + VPN) to ensure that whether the terminal device actively connects to the management platform as a client or passively accepts the connection of the management platform as a server, data interaction and remote management operations can be performed in a highly secure environment. This maximizes the security of communication content while improving system flexibility, and is particularly suitable for remote management application scenarios with strict requirements for data security and privacy protection.
[0090] In one embodiment, the first VPN component and the second VPN component each include a VPN data message processing module based on a virtual network card.
[0091] In one embodiment, when the terminal device and the management platform are in the same local area network, the terminal device and the management platform are interconnected via a switch;
[0092] The local management service module uses the IP address of the virtual network card in the first VPN component to connect with the remote management service module using the IP address of the virtual network card in the second VPN component.
[0093] In one embodiment, when the terminal device and the management platform are not in the same local area network, the terminal device is interconnected with the management platform via a router;
[0094] The local management service module uses the IP address of the virtual network card in the first VPN component to connect with the remote management service module using the IP address of the virtual network card in the second VPN component.
[0095] In one embodiment, the terminal device has a downstream device;
[0096] When the terminal device acts as a client, the terminal device simulates the IP address of the downstream device through the tproxy technology, and the downstream device establishes a connection with the remote management service module through the first VPN component of the terminal device; the VPN control information and VPN data encapsulation of the first VPN component are securely transmitted to the management platform through the remote security management tunnel; the terminal device uses the IP address of the virtual network card in the first VPN component, and the remote management service module uses the IP address of the virtual network card in the second VPN component;
[0097] When the terminal device acts as a server, the remote management service module establishes a connection with the terminal device through the second VPN component; the VPN control information and VPN data encapsulation of the second VPN component are securely transmitted to the terminal device through the remote security management tunnel; the terminal device uses the IP address of the virtual network card in the first VPN component, and the remote management service module uses the IP address of the virtual network card in the second VPN component.
[0098] In this embodiment, it specifically includes:
[0099] Connection establishment: The terminal device uses the first VPN component (including the virtual network card) as a client to establish a secure VPN connection with the second VPN component of the remote management service module (located on the management platform). This allows secure communication with the remote management platform even in a network without a fixed public IP or behind NAT.
[0100] Data transmission security: The control information and data encapsulation generated by the first VPN component are transmitted through the established remote security management tunnel (based on the national encryption SSL and MQTT protocols). In this way, through the additional encryption layer of the SSL tunnel, double encryption ensures the absolute security of information during transmission.
[0101] When the terminal device acts as a server: When the terminal device needs to be actively managed from the management platform, the roles are reversed, and the remote management service module acts as a client and establishes a connection with the first VPN component through its second VPN component.
[0102] The data transmission path remains unchanged: Despite the change in roles, the data transmission security mechanism remains the same. That is, the control information and data encapsulation of the second VPN component are still securely transmitted to the terminal device through the remote security management tunnel. This design ensures that the data security level remains the same regardless of the connection method.
[0103] Use of virtual network card IP address: Whether the terminal device is a client or a server, it uses the IP address assigned by its first VPN component virtual network card for communication, while the remote management service module uses the virtual network card IP address of its second VPN component. This configuration method simplifies network management, makes connection establishment and identification more direct, and also facilitates the implementation of IP-based access control policies and audits on the management platform.
[0104] The above technical solution provides all-round remote management support for downstream devices of terminal devices through flexible role definition and highly secure communication mechanism (combined with VPN and SSL tunnel). Whether in the client or server role, it can ensure the security of data during transmission and the efficiency of communication. It is particularly suitable for the management of Internet of Things (IoT) devices in complex network environments, ensuring the security and convenience of management operations.
[0105] For ease of understanding, the following is explained in conjunction with specific examples. In a specific embodiment, the local security management module on the terminal device is specifically a local security management channel APP, the local management service module is specifically a local management service APP, and the first VPN component includes a virtual network card and a VPN module (used to read and write the virtual network card, i.e., a VPN data message processing module); the remote security management module on the management platform is specifically a remote security management channel APP, the remote management service module is specifically a remote management service APP, and the second VPN component includes a virtual network card and a VPN module (used to read and write the virtual network card).
[0106] Combined with reference Figure 1 , which is a structural block diagram of a secure remote management system for terminal devices.
[0107] The terminal device side mainly includes: local security management channel APP, local management service APP, and VPN related components.
[0108] Local security management channel APP: It is the core component of the terminal device side in the terminal device's security remote management system. It interacts with the remote security management channel APP on the management platform side to provide a remote security management channel based on national encryption SSL and MQTT technology for the terminal device side.
[0109] The local security management channel APP specifically includes: TCP client (implemented using Nginx transparent proxy technology when the terminal device has no IP address) establishes a TCP connection with the management platform, the national SSL negotiates with the management platform to establish a national SSL tunnel, MQTT is used to encapsulate and transmit VPN and business data, and the VPN module interacts with the local VPN virtual network card to realize the reading and writing of virtual network card data;
[0110] Local management service APP: refers to the service program running on the terminal device side for configuring and managing the device itself. The local management service APP completes the sending and receiving of remote management information of the management platform through the TCP / IP protocol stack of the terminal device and interacts with the virtual network card;
[0111] VPN-related components include: TUN / TAP virtual network card, and VPN module (virtual network device data packet processing module).
[0112] The management platform side mainly includes: remote security management channel APP, remote management service APP, and VPN related components.
[0113] Remote security management channel APP: It is the core component of the management platform side, interacting with the local security management channel APP on the terminal device side, and providing the management platform side with a remote security management channel based on the national SSL and MQTT technology. The remote security management channel APP specifically includes: the TCP server accepts the TCP connection of the terminal device, the national SSL negotiates with the terminal device to establish a national SSL tunnel, MQTT is used to encapsulate and transmit VPN and business data, and the VPN module interacts with the local VPN virtual network card to realize the reading and writing of the virtual network card data;
[0114] Remote management service APP: refers to the service program running on the management platform side for configuring and managing remote terminal devices. The remote management service APP completes the sending and receiving of remote management information through the TCP / IP protocol stack of the management platform system and interacts with the virtual network card;
[0115] VPN-related components include: TUN / TAP virtual network card, and VPN module (virtual network device data packet processing module).
[0116] The overall process of remote security management of terminal devices on the management platform is:
[0117] Step 1: The terminal device uses the local security management channel APP to establish a remote security management tunnel with the management platform through the remote security management channel APP based on the national secret SSL and MQTT. It specifically includes three steps:
[0118] 1. The local security management channel APP acts as a TCP client (implemented using Nginx transparent proxy technology when the terminal device has no IP address) to establish a TCP connection with the TCP server of the remote security management channel APP;
[0119] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0120] 3. The local security management channel APP and the remote security management channel APP establish a publish / subscribe based message channel through MQTT.
[0121] Step 2: The local management service APP on the terminal device side establishes a connection with the remote management service APP on the management platform side. When the terminal device acts as a client, the local management service APP establishes a connection with the remote management service APP through the VPN module, wherein the VPN control message and VPN data encapsulation are securely transmitted through the remote security management tunnel of the local security management channel APP. When the terminal device acts as a server, the remote management service APP establishes a connection with the local management service APP through the VPN module, wherein the VPN control message and VPN data encapsulation are securely transmitted through the remote security management tunnel of the remote security management channel APP.
[0122] Step 3: The remote management terminal device on the management platform side is managed securely. The remote management service APP on the management platform side performs secure remote management (remote management instructions and data) through the remote security management tunnel established by the local security management channel APP and the remote security management channel APP.
[0123] In a specific embodiment, referring to Figure 2 , which is a schematic diagram of the application of a secure remote management system for terminal devices when the terminal device and the management platform are in the same local area network and the terminal device has an IP address.
[0124] Among them, the IP address of the terminal device is IP2, the VPN virtual network card IP address of the terminal device is IP1; the IP address of the management platform is IP3; the VPN virtual network card IP address of the management platform is IP4; the terminal device and the management platform are interconnected through a switch.
[0125] When the terminal device acts as a client, the process of remote secure management of the terminal device is as follows:
[0126] 1. The local security management channel APP acts as a TCP client to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device IP address IP2, and the remote security management channel APP uses the management platform IP address IP3 for connection;
[0127] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0128] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0129] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0130] 5. The local management service APP establishes a connection with the remote management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0131] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the local security management channel APP and then securely transmitted via the national SSL security tunnel;
[0132] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP.
[0133] When the terminal device acts as a server, the process of remote secure management of the terminal device is as follows:
[0134] 1. The local security management channel APP acts as a TCP client to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device IP address: IP2, and the remote security management channel APP uses the management platform IP address: IP3 for connection;
[0135] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0136] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0137] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0138] 5. The remote management service APP establishes a connection with the local management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0139] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the remote security management channel APP and then securely transmitted via the national secret SSL security tunnel;
[0140] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP.
[0141] Reference Figure 3 , which is a schematic diagram of the application of a secure remote management system for terminal devices when the terminal device and the management platform are in the same local area network and the terminal device does not have an IP address.
[0142] The terminal device has no IP address. The terminal device accesses other devices (i.e. downstream devices) through IP address: IP2, i.e. using the IP of other access devices. The terminal device VPN virtual network card IP address: IP1; the management platform IP address: IP3, the management platform VPN virtual network card IP address: IP4; the terminal device and the management platform are interconnected through a switch.
[0143] When the terminal device acts as a client, the process of remote secure management of the terminal device is as follows:
[0144] 1. The local security management channel APP acts as a TCP client, using Nginx transparent proxy technology and using the IP address of other devices connected to the terminal device as the TCP client IP to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device to access the IP address of other devices: IP2, and the remote security management channel APP uses the management platform IP address: IP3 for connection;
[0145] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0146] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0147] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0148] 5. The local management service APP establishes a connection with the remote management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0149] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the local security management channel APP and then securely transmitted via the national SSL security tunnel;
[0150] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP;
[0151] When the terminal device acts as a server, the process of remote secure management of the terminal device is as follows:
[0152] 1. The local security management channel APP acts as a TCP client, using Nginx transparent proxy technology and using the IP address of other devices connected to the terminal device as the TCP client IP to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device to access the IP address of other devices: IP2, and the remote security management channel APP uses the management platform IP address: IP3 for connection;
[0153] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0154] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0155] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0156] 5. The remote management service APP establishes a connection with the local management service APP through the VPN module. The local management service APP (server) uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0157] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the remote security management channel APP and then securely transmitted via the national secret SSL security tunnel;
[0158] 7. Remote management service APP, through the secure tunnel established by local security management channel APP and remote security management channel APP, to perform secure remote management (remote management instructions and data interaction).
[0159] Reference Figure 4 , which is a schematic diagram of the application of a secure remote management system for terminal devices, in which the terminal device is in a local area network, the management platform is in the Internet, the terminal device has a local area network IP address, and the terminal device has a secure remote management system.
[0160] Among them, the LAN IP address of the terminal device is: IP2, the VPN virtual network card IP address of the terminal device is: IP1; the Internet IP address of the management platform is: IP5, the VPN virtual network card IP address of the management platform is: IP4; the terminal device is interconnected with the management platform through a router.
[0161] When the terminal device acts as a client, the process of remote secure management of the terminal device is as follows:
[0162] 1. The local security management channel APP acts as a TCP client to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device IP address: IP2, and the remote security management channel APP uses the management platform IP address: IP5 for connection;
[0163] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0164] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0165] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0166] 5. The local management service APP establishes a connection with the remote management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0167] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the local security management channel APP and then securely transmitted via the national SSL security tunnel;
[0168] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP.
[0169] When the terminal device acts as a server, the process of remote secure management of the terminal device is as follows:
[0170] 1. The local security management channel APP acts as a TCP client to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device IP address: IP2, and the remote security management channel APP uses the management platform IP address: IP5 for connection;
[0171] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0172] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0173] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0174] 5. The remote management service APP establishes a connection with the local management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0175] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the remote security management channel APP and then securely transmitted via the national secret SSL security tunnel;
[0176] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP.
[0177] Reference Figure 5 , which is a schematic diagram of the application of a secure remote management system for terminal devices when the terminal device is in a local area network, the management platform is in the Internet, and the terminal device does not have a local area network IP address.
[0178] Among them, the terminal device has no IP address, the terminal device accesses the LAN IP address of other devices: IP2, the terminal device VPN virtual network card IP address: IP1; the management platform Internet IP address: IP5, the management platform VPN virtual network card IP address: IP4; the terminal device is interconnected with the management platform through a router.
[0179] When the terminal device acts as a client, the process of remote secure management of the terminal device is as follows:
[0180] 1. The local security management channel APP acts as a TCP client, using Nginx transparent proxy technology and using the IP address of other devices connected to the terminal device as the TCP client IP to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device to access the IP address of other devices: IP2, and the remote security management channel APP uses the management platform IP address: IP5 for connection;
[0181] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0182] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0183] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0184] 5. The local management service APP establishes a connection with the remote management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0185] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the local security management channel APP and then securely transmitted via the national SSL security tunnel;
[0186] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP.
[0187] When the terminal device acts as a server, the process of remote secure management of the terminal device is as follows:
[0188] 1. The local security management channel APP acts as a TCP client, using Nginx transparent proxy technology and using the IP address of other devices connected to the terminal device as the TCP client IP to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device to access the IP address of other devices: IP2, and the remote security management channel APP uses the management platform IP address: IP5 for connection;
[0189] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0190] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0191] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0192] 5. The remote management service APP establishes a connection with the local management service APP through the VPN module. The local management service APP uses the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0193] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the remote security management channel APP and then securely transmitted via the national secret SSL security tunnel;
[0194] 7. The remote management service APP performs secure remote management (remote management instructions and data interaction) through the secure tunnel established between the local security management channel APP and the remote security management channel APP.
[0195] Reference Figure 6 , which is a schematic diagram of the application of a secure remote management system for terminal devices when the terminal device is in a local area network, the management platform is in the Internet, and the terminal device does not have a local area network IP address.
[0196] Among them, the terminal device has no IP address, the terminal device accesses the LAN IP address of other devices: IP2, the terminal device VPN virtual network card IP address: IP1; the management platform Internet IP address: IP5, the management platform VPN virtual network card IP address: IP4; the terminal device is interconnected with the management platform through a router.
[0197] When the terminal device acts as a client, the process of remote secure management of the terminal device is as follows:
[0198] 1. The local security management channel APP acts as a TCP client, using Nginx transparent proxy technology and using the IP address of other devices connected to the terminal device as the TCP client IP to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device to access the IP address of other devices: IP2, and the remote security management channel APP uses the management platform IP address: IP5 for connection;
[0199] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0200] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0201] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0202] 5. Other device management service apps (i.e., management service apps on downstream devices) establish a connection with the remote management service app through the VPN module. Other management service apps use the terminal device VPN virtual network card IP address: IP1, and the remote management service app uses the management platform VPN virtual network card IP address: IP4 for connection;
[0203] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the local security management channel APP and then securely transmitted via the national SSL security tunnel;
[0204] 7. The remote management service APP securely remotely manages the downstream devices of the terminal device (remote management instructions and data interaction) through the secure tunnel established by the local security management channel APP and the remote security management channel APP;
[0205] In this embodiment, the terminal device VPN related network configuration example:
[0206] a. Add port mapping on the terminal device, and map the IP address and port of other device management service apps that need to be accessed to the specific port of the terminal device VPN virtual network card IP address;
[0207] b. Intercept data packets from other device management service apps on the terminal device and redirect them to the terminal device for local processing.
[0208] When the terminal device acts as a server, the process of remote secure management of the terminal device is as follows:
[0209] 1. The local security management channel APP acts as a TCP client, using Nginx transparent proxy technology and using the IP address of other devices connected to the terminal device as the TCP client IP to establish a TCP connection with the TCP server of the remote security management channel APP. The local security management channel APP uses the terminal device to access the IP address of other devices: IP2, and the remote security management channel APP uses the management platform IP address: IP5 for connection;
[0210] 2. The local security management channel APP and the remote security management channel APP establish a national SSL tunnel through national SSL negotiation to ensure the security of remote management between terminal devices and the management platform;
[0211] 3. The MQTT client of the local security management channel APP and the MQTT Broker of the remote security management channel APP establish a publish / subscribe based message channel through the national secret SSL tunnel;
[0212] 4. The MQTT client of the remote security management channel APP establishes a publish / subscribe-based message channel with the MQTT Broker of the remote security management channel APP;
[0213] 5. The remote management service APP establishes a connection with other device management service APPs through the VPN module. Other device management service APPs use the terminal device VPN virtual network card IP address: IP1, and the remote management service APP uses the management platform VPN virtual network card IP address: IP4 for connection;
[0214] 6. The VPN control message and VPN data are encapsulated by the MQTT client of the remote security management channel APP and then securely transmitted via the national secret SSL security tunnel;
[0215] 7. The remote management service APP securely remotely manages the downstream devices of the terminal device (remote management instructions and data interaction) through the secure tunnel established by the local security management channel APP and the remote security management channel APP;
[0216] In this embodiment, the terminal device VPN related network configuration example:
[0217] c. Add port mapping on the terminal device, and map the IP address and port of other device management service apps that need to be accessed to the specific port of the terminal device VPN virtual network card IP address;
[0218] d. Intercept data packets from other device management service apps on the terminal device and redirect them to the terminal device for local processing.
[0219] In the above embodiment, the MQTT data encapsulation example is:
[0220] MQTT data includes two types: text messages and binary messages. Different topics are used for distribution:
[0221] 1) VPN control message format (text message):
[0222] a) Configure virtual network card message:
[0223] 2) VPN data encapsulation (binary message):
[0224] Use the original message directly.
[0225] 3) Business message example (text message):
[0226] a) Get the device status.
[0227] In the above embodiment, the terminal device has no IP address, and the working process of using Nginx transparent proxy technology is as follows:
[0228] 1. Configure the IP address of other devices connected to the terminal device or obtain the IP address of the connected device by monitoring the data of the connected device on the terminal device;
[0229] 2. Update the Nginx transparent proxy configuration, set the local listening port, update the IP address bound to the Nginx transparent proxy (that is, the IP address of other devices connected to it), and set the proxy upstream address (upstream) to the IP and port of the management platform;
[0230] 3. Set up firewall rules to intercept the response message of the management platform IP and redirect the message to the terminal device for local processing;
[0231] 4. The local security management channel APP connects to the local listening address of the Nginx transparent proxy and establishes a security management channel with the management platform through the Nginx transparent proxy.
[0232] In one embodiment, when the remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel, a management code is generated for management verification;
[0233] The generation of the management code includes:
[0234] The remote management service module obtains first attribute information of the management platform and obtains second attribute information of the terminal device;
[0235] Generate an attribute matrix based on the first attribute information and the second attribute information; wherein the attribute matrix is a matrix of three rows and four columns, and each matrix position has a character;
[0236] Obtain the IP address of the management platform, and add the numeric characters in the IP address to a blank matrix of three rows and four columns in sequence to generate a numeric matrix;
[0237] The attribute matrix is subjected to character screening based on the digital matrix to obtain screening characters; and the management code is generated based on the screening characters.
[0238] In this embodiment, the technical solution is a method for implementing secure remote management of terminal devices and their downstream devices through a remote management service module, the core of which is to use management codes for identity authentication and authority control to ensure the security of management operations. Specifically, it includes:
[0239] Management code generation background: When performing remote management, in order to prevent unauthorized access and operation, the system needs a mechanism to verify the identity of the entity requesting management rights (such as an administrator). This article proposes to perform such verification by generating a unique management code.
[0240] Information collection: The remote management service module first obtains a set of attribute information from the management platform, including but not limited to the identifier, version number, security key, etc. of the management platform, as the basic data for verification. At the same time, it also collects relevant attribute information of the terminal device, including device ID, operating system version, hardware serial number, etc., to further personalize and refine the generation of management codes.
[0241] Constructing an attribute matrix: Based on the above two sets of attribute information, the system constructs a matrix with 3 rows and 4 columns. Each matrix position is filled with a specific character, which is derived from or based on the first attribute information and the second attribute information through a preset conversion or encoding to ensure the uniqueness of the management code and its relevance to a specific environment.
[0242] Integrate IP address information: Get the IP address of the management platform and fill each numeric character in sequence into a blank matrix with 3 rows and 4 columns. This process essentially introduces a dynamic element directly related to the network environment based on the existing attribute information, further enhancing the complexity and security of the management code.
[0243] Character screening and management code generation: Use digital matrix and attribute matrix to perform preset character screening. The specific screening rules can be to use the numbers in the digital matrix as indexes or masks, select the corresponding characters in the attribute matrix, or perform preset logical operations (for example, select characters in different columns when the number is even / odd).
[0244] Based on the characters obtained in the above screening process, the management code is finally generated. The management code can be obtained by directly sorting the characters in sequence, or by continuing to screen the characters in sequence, or by re-sorting the screened characters based on the characteristics of the digital matrix and then combining them in sequence.
[0245] In summary, the above solution combines static attribute information with dynamic network environment information (IP address), adopts matrix construction and character screening mechanism, and creates a management code that is both complex and highly relevant to the management context. This code is used as the key credential for authentication and authorization in remote management services, effectively improving the system's security management capabilities.
[0246] In other embodiments, the generation of the management code includes:
[0247] The remote management service module obtains first attribute information of the management platform and obtains second attribute information of the terminal device;
[0248] Generate an attribute matrix based on the first attribute information and the second attribute information; wherein the attribute matrix is a matrix of three rows and four columns, and each matrix position has a character;
[0249] Obtain the IP address of the management platform, extract the numeric characters in the IP address, and construct a virtual curve based on the numbers corresponding to the extracted numeric characters according to preset rules; for example, an angle, a ray, a triangle, a circle, etc. can be generated based on the corresponding numbers, and the rules for generating the curve can be defined in advance.
[0250] The virtual curve and the attribute matrix are superimposed to select characters that overlap between the virtual curve and the attribute matrix as screening characters; and the management code is generated based on the screening characters.
[0251] In one embodiment, the first attribute information is identification information of the management platform, which is character combination information; the second attribute information is identification information of the terminal device, which is character combination information.
[0252] During the generation process of the digital matrix, if the number of numeric characters in the IP address is more than the matrix positions of the blank matrix, the excess numeric characters are discarded; if the number of numeric characters in the IP address is more than the matrix positions of the blank matrix, the numeric characters from the beginning of the IP address are added to the blank matrix positions.
[0253] Performing character screening on the attribute matrix based on the digital matrix to obtain screened characters includes:
[0254] Calculate the average value of each digital character in the digital matrix, take the digital character in the digital matrix that is greater than the average value as the target character, and the position where the target character is located is the target position;
[0255] The digital matrix is aligned with the attribute matrix, and a position aligned with the target position of the digital matrix is searched in the attribute matrix as the target attribute position; the character at the target attribute position is obtained to obtain the screening character.
[0256] In this embodiment, the technical solution further details the specific algorithm steps for generating the management code, especially how to use the identification information of the management platform and the terminal device and the IP address of the management platform to create a management code that is both unique and closely related to the management environment. Specifically, it includes:
[0257] First attribute information: refers to the unique identification information of the management platform, such as a string of letters and numbers, used to identify and verify the identity of the management platform.
[0258] The second attribute information is the identification information of the terminal device, which is also a combination of characters. It is used to ensure that the management operation is associated with a specific terminal device, thereby enhancing the directionality and security of management.
[0259] IP address processing: Use the IP address of the management platform to strengthen the dynamic and environmental relevance of the management code. If the number of numeric characters in the IP address exceeds the capacity of the blank matrix (12 positions), only the first 12 numbers are taken; if there are less than 12, the IP address is repeated until the matrix is filled. This ensures that an adaptive matrix can be generated even in the face of different IPs, while also maintaining the flexibility of the method.
[0260] Calculate the average value: First, calculate the average value of all digital characters in the digital matrix. This is a simplified example, but it actually indicates a quantitative processing method that aims to introduce a nonlinear selection mechanism.
[0261] Determine the target character and position: Compare the size of each digital character with the average value, select those digital characters that are larger than the average value as the target characters, and record their positions in the matrix as the target positions. This step selects specific matrix cells by numerical value, providing a basis for subsequent character screening.
[0262] Aligning the attribute matrix with the digital matrix: Aligning the digital matrix with the attribute matrix by position means that each target position in the digital matrix has a corresponding character position in the attribute matrix. The characters at these positions are selected as screening characters because they are associated with the targets in the digital matrix.
[0263] Generate management code: Finally, the filter characters selected from the attribute matrix according to the above rules are combined to form the final management code. This management code not only contains the characteristic information from the management platform and terminal devices, but also further increases its complexity and security through the dynamic data of the IP address and the filter logic based on the digital average.
[0264] In summary, the above technical solution, through a series of ingenious designs, cleverly integrates fixed identification information and real-time network environment information, and uses mathematical operations (average value calculation) and logical screening to create a highly customized and unpredictable management code, effectively improving the security and authentication efficiency of remote management services.
[0265] In summary, the secure remote management system of the terminal device provided in the embodiment of the present invention includes a terminal device and a management platform; the terminal device includes a local security management module, a local management service module and a first VPN component; the management platform includes a remote security management module, a remote management service module and a second VPN component; a remote security management tunnel is established between the local security management module and the remote security management module, and the remote security management tunnel communicates based on the national secret SSL and MQTT protocols; wherein the local security management module includes an IP address and a non-IP address; the local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel; the remote management service module remotely manages the terminal device or the downstream device of the terminal device through the remote security management tunnel. In the present invention, communication security is guaranteed by establishing a remote security management tunnel; the local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel, so that the terminal device can be securely remotely managed even in different network environments, and supports terminal devices with or without IP addresses.
[0266] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0267] It should be noted that, in this article, the terms include, contain or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence includes a ... does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0268] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A secure remote management system for terminal devices, It is characterized in that It includes a terminal device and a management platform; the terminal device includes a local security management module, a local management service module and a first VPN component; the management platform includes a remote security management module, a remote management service module and a second VPN component; A remote security management tunnel is established between the local security management module and the remote security management module, and the remote security management tunnel communicates based on the national secret SSL and MQTT protocols; wherein the local security management module includes an IP address and a non-IP address; The local management service module and the remote management service module establish a connection through the remote security management tunnel; the VPN control information and VPN data encapsulation of the first VPN component and the second VPN component are securely transmitted through the remote security management tunnel; The remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel; When the remote management service module remotely manages the terminal device or a downstream device of the terminal device through the remote security management tunnel, a management code is generated for management verification; The generation of the management code includes: The remote management service module obtains first attribute information of the management platform and obtains second attribute information of the terminal device; Generate an attribute matrix based on the first attribute information and the second attribute information; wherein the attribute matrix is a matrix of three rows and four columns, and each matrix position has a character; Obtain the IP address of the management platform, and add the numeric characters in the IP address to a blank matrix of three rows and four columns in sequence to generate a numeric matrix; The attribute matrix is subjected to character screening based on the digital matrix to obtain screening characters; and the management code is generated based on the screening characters.
2. The secure remote management system for terminal devices according to claim 1, It is characterized in that The remote security management tunnel is established between the local security management module and the remote security management module, including: The local security management module acts as a TCP client to establish a TCP connection with the TCP server of the remote security management module; The local security management module negotiates with the remote security management module to establish a national secret SSL tunnel through the national secret SSL protocol; The local security management module uses the MQTT protocol to establish an MQTT message channel to communicate with the remote security management module.
3. The secure remote management system for terminal devices according to claim 2, It is characterized in that When the terminal device has an IP address, the local security management module acts as a TCP client to establish a TCP connection with the TCP server of the remote security management module; the local security management module uses the IP address of the terminal device, and the remote security management module uses the IP address of the management platform; When the terminal device does not have an IP address, the local security management module acts as a TCP client, utilizes Nginx transparent proxy technology and uses the IP address of the downstream device accessed by the terminal device as the IP address of the TCP client to establish a TCP connection with the TCP server of the remote security management module; wherein the remote security management module uses the IP address of the management platform; the Nginx transparent proxy technology at least includes tproxy technology based on Nginx.
4. The secure remote management system for terminal devices according to claim 2, It is characterized in that The local security management module uses the MQTT protocol to establish an MQTT message channel to communicate with the remote security management module, including: The MQTT client on the local security management module and the MQTT agent on the remote security management module establish a publish / subscribe based message channel through the national secret SSL tunnel; The MQTT client on the remote security management module establishes a publish / subscribe based message channel with the MQTT agent on the remote security management module.
5. The secure remote management system for terminal devices according to claim 1, It is characterized in that When the terminal device acts as a client, the local management service module establishes a connection with the remote management service module through the first VPN component; VPN control information and VPN data encapsulation of the first VPN component are securely transmitted to the management platform through the local security management module and the remote security management tunnel; When the terminal device acts as a server, the remote management service module establishes a connection with the local management service module through the second VPN component; the VPN control information and VPN data encapsulation of the second VPN component are securely transmitted to the terminal device through the remote management service module via the remote security management tunnel.
6. The secure remote management system for terminal devices according to claim 4, It is characterized in that The first VPN component and the second VPN component each include a VPN data message processing module based on a virtual network card.
7. The secure remote management system for terminal devices according to claim 6, It is characterized in that When the terminal device and the management platform are in the same local area network, the terminal device and the management platform are interconnected via a switch; The local management service module uses the IP address of the virtual network card in the first VPN component to connect with the remote management service module using the IP address of the virtual network card in the second VPN component.
8. The secure remote management system for terminal devices according to claim 6, It is characterized in that When the terminal device and the management platform are not in the same local area network, the terminal device is interconnected with the management platform via a router; The local management service module uses the IP address of the virtual network card in the first VPN component to connect with the remote management service module using the IP address of the virtual network card in the second VPN component.
9. The secure remote management system for terminal devices according to claim 1, It is characterized in that The terminal device has a downstream device; When the terminal device acts as a client, the terminal device simulates the IP address of the downstream device through the tproxy technology, and the downstream device establishes a connection with the remote management service module through the first VPN component of the terminal device; the VPN control information and VPN data encapsulation of the first VPN component are securely transmitted to the management platform through the remote security management tunnel; The terminal device uses the IP address of the virtual network card in the first VPN component, and the remote management service module uses the IP address of the virtual network card in the second VPN component; When the terminal device acts as a server, the remote management service module establishes a connection with the terminal device through the second VPN component; VPN control information and VPN data encapsulation of the second VPN component are securely transmitted to the terminal device through the remote security management tunnel; The terminal device uses the IP address of the virtual network card in the first VPN component, and the remote management service module uses the IP address of the virtual network card in the second VPN component.
