A national secret VPN supervision method, system, electronic device and storage medium

By adding the management objects of Guomi VPN devices in the MIB library and rewriting the SNMP configuration file, the problem of the inability to supervise Guomi VPN in the existing technology is solved, real-time monitoring and management of Guomi VPN devices is realized, and network management is improved Efficiency and safety.

CN114615127BActive Publication Date: 2024-11-26黄子琦 +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210217177.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2024-11-26
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

The existing technology lacks the ability to regulate national secret VPNs based on the SNMP protocol and cannot meet the needs of information security.

Method used

By adding the management objects of the Guoxin VPN device in the MIB library, rewriting the SNMP configuration file, setting the Guoxin VPN as a SNMP proxy, and using the advanced data description language ASN.1 to describe the protocol data unit PDU and the management object information library MIB, generate the Executable programs to monitor and manage information on state-secret VPN devices in real time.

Benefits of technology

Real-time monitoring and management of Guomi VPN devices has been realized, and support for VPN version information, negotiated SA and data traffic in tunnels has been added, which is convenient for network managers to learn more information, improve network management efficiency and Security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114615127B_ABST
    Figure CN114615127B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, electronic device and storage medium for supervising national secret VPN. The steps of the supervising method specifically include: adding MIB library based on SNMP protocol; rewriting SNMP configuration file, setting national secret VPN as SNMP agent; defining management object of national secret VPN device in MIB library; compiling management object, generating executable program and running; calling the node of management object in MIB library, monitoring and managing the information of national secret VPN device in real time, and the supervising system, electronic device and storage medium correspond to the above-mentioned supervising method. The national secret VPN is supervised by SNMP protocol, and more management objects such as VPN version information, negotiated SA and data flow in tunnel are added in MIB library, so that network managers can learn more information about national secret VPN and manage national secret VPN device conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a VPN supervision method, system, electronic device and storage medium, and in particular to a national secret VPN supervision method, system, electronic device and storage medium. Background Art

[0002] SNMP-based network management technology mainly uses the SNMP protocol to monitor devices in the local area network. SNMP is the simple network management protocol, which belongs to the application layer protocol. Currently, the SNMP protocol is divided into three versions: SNMPv1, SNMPv2c and SNMPv3. The main differences are security, message encapsulation format, GET efficiency and other aspects.

[0003] The technical process of network management based on SNMP is summarized as follows: 1. Set up SNMP agent; 2. Define node information of management object in MIB; 3. Call the node in MIB library to view the information of management object. With the continuous development of information technology, VPN technology has been widely used. In order to further strengthen information security, my country has extended VPN technology that meets national security standards. The existing technology lacks the application of SNMP to supervise national security VPN, which can no longer meet people's requirements and needs to be improved urgently. Summary of the invention

[0004] The purpose of the present invention is to provide a national secret VPN supervision method, system, electronic device and storage medium to solve the shortcomings of the prior art.

[0005] The present invention provides the following scheme:

[0006] A national secret VPN supervision method based on SNMP protocol, the supervision method comprising:

[0007] Based on SNMP protocol, add MIB library;

[0008] Rewrite the SNMP configuration file and set the National Secret VPN as the SNMP agent;

[0009] Defining management objects of national secret VPN devices in the MIB library;

[0010] Compiling the management object to generate an executable program and running it;

[0011] Call the nodes of the management objects in the MIB library to monitor and manage the information of the national secret VPN devices in real time.

[0012] Furthermore, the process of rewriting the SNMP configuration file specifically includes:

[0013] Change the proxy IP to agentAddress UDP:192.168.11.161:161

[0014] Added: view systemonly included 1.3.6.1.4.1.7

[0015] Add: rwcommunity private default

[0016] Systemctl restart snmpd.service.

[0017] Furthermore, when defining the management object of the national secret VPN device in the MIB library, the high-level data description language ASN.1 is used to describe the protocol data unit PDU and the management object information library MIB.

[0018] Furthermore, the .c and .h files generated by the management object are compiled, and the compilation process specifically includes:

[0019] Enter in the command line: net-snmp-config --compile-subagent readObjectreadObject.c

[0020] Among them: --compile-subagent means compiling into a subagent program, readObject is the output program name after compilation, and readObject.c is the file to be compiled.

[0021] Furthermore, by using third-party network management software, the nodes of the management objects in the MIB library are called through the management object OID to perform real-time monitoring and management of the devices equipped with the national secret VPN.

[0022] Furthermore, the third-party network management software is MG-SOFT MIB Browser.

[0023] A national secret VPN monitoring system based on SNMP protocol, the monitoring system comprising:

[0024] MIB library module, used to add MIB library based on SNMP protocol;

[0025] SNMP agent module, used to rewrite SNMP configuration files and set the national secret VPN as SNMP agent;

[0026] A management object definition module, used to define management objects of national secret VPN devices in the MIB library;

[0027] A compiling module compiles the management object, generates an executable program and runs it;

[0028] The monitoring and management module calls the nodes of the management objects in the MIB library to monitor and manage the information of the national secret VPN devices in real time.

[0029] Furthermore, in the monitoring and management module, the node of the management object in the MIB library is called through the management object OID to monitor and manage the information of the national secret VPN device in real time.

[0030] An electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0031] A computer program is stored in the memory, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method.

[0032] A computer-readable storage medium stores a computer program executable by an electronic device, and when the computer program is run on the electronic device, the electronic device executes the steps of the method

[0033] Compared with the prior art, the present invention has the following advantages: the national secret VPN is supervised by using the SNMP protocol, and more management objects such as VPN version information, negotiated SA and data flow in the tunnel are added to the MIB library, which makes it convenient for network managers to learn more information about the national secret VPN and manage the national secret VPN equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a flowchart of the national secret VPN supervision method.

[0036] Figure 2 This is the architecture diagram of the national secret VPN supervision system.

[0037] Figure 3 It is a diagram of the architecture of an electronic device.

[0038] Figure 4 It is a tree diagram of the management objects of MG-SOFT MIB Browser China Secret VPN.

[0039] Figure 5 This is the communication system framework diagram between the client and the server

[0040] Figure 6 It is a timing diagram based on SNMP protocol operations. DETAILED DESCRIPTION

[0041] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] like Figure 1 The following is a national secret VPN supervision method based on the SNMP protocol. The steps of the supervision method specifically include:

[0043] Based on SNMP protocol, add MIB library;

[0044] Rewrite the SNMP configuration file and set the National Secret VPN as the SNMP agent;

[0045] Define the management objects of national secret VPN devices in the MIB library;

[0046] Compile the management object, generate an executable program and run it;

[0047] Call the nodes of the management objects in the MIB library to monitor and manage the information of the national secret VPN devices in real time.

[0048] Preferably, the process of rewriting the SNMP configuration file specifically includes:

[0049] Change the proxy IP to agentAddress UDP:192.168.11.161:161;

[0050] Added: view systemonly included 1.3.6.1.4.1.7;

[0051] To set the operation, you need to add permissions:

[0052] Add: rwcommunity private default

[0053] After modifying the configuration file, restart the SNMP service to make the configuration file take effect:

[0054] Systemctl restart snmpd.service

[0055] Preferably, when defining the management object of the national secret VPN device in the MIB library, the high-level data description language ASN.1 is used to describe the protocol data unit PDU and the management object information library MIB. The function of the high-level data description language is to describe the data type, structure, organization and encoding method.

[0056] Preferably, the .c and .h files generated by the management object are compiled, that is, the files with the file name suffixes of .c and .h are compiled, and the compilation process specifically includes:

[0057] Enter in the command line: net-snmp-config --compile-subagent readObjectreadObject.c

[0058] Among them: --compile-subagent means compiling into a subagent program, readObject is the output program name after compilation, and readObject.c is the file to be compiled.

[0059] Preferably, a third-party network management software is used to call the node of the management object in the MIB library through the management object OID to perform real-time monitoring and management of the equipment equipped with the national secret VPN.

[0060] Preferably, the third-party network management software is MG-SOFT MIB Browser.

[0061] like Figure 2 As shown, the present invention also discloses a national secret VPN supervision system based on the SNMP protocol. The national secret VPN supervision system corresponds to the national secret VPN supervision method, and as a whole, it contributes to the prior art. The supervision system includes:

[0062] MIB library module, used to add MIB library based on SNMP protocol;

[0063] SNMP agent module, used to rewrite SNMP configuration files and set the national secret VPN as SNMP agent;

[0064] Management object definition module, used to define the management objects of national secret VPN devices in the MIB library;

[0065] Compile module, compile the management object, generate executable program and run it;

[0066] The monitoring and management module calls the nodes of the management objects in the MIB library through the management object OID to monitor and manage the information of the national secret VPN devices in real time.

[0067] Preferably, in the monitoring and management module, the node of the management object in the MIB library is called through the management object OID to monitor and manage the information of the national secret VPN device in real time.

[0068] In the above embodiments, the MIB library module, SNMP agent module, management object definition module, compilation module and monitoring management module are disclosed, but it does not mean that the national secret VPN supervision system based on the SNMP protocol is limited to the above modules. On the contrary, what the present application wants to express is that on the basis of the above modules, technical personnel in this field can arbitrarily add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. The system is open rather than closed. Just because the present embodiment only discloses the above basic functional modules, it cannot be considered that the scope of protection of the claims of the present application is limited to the disclosed basic functional modules.

[0069] like Figure 3 An electronic device shown includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0070] A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps of the national secret VPN supervision method.

[0071] A computer-readable storage medium stores a computer program that can be executed by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the national secret VPN supervision method.

[0072] The electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory. The operating system can be any one or more computer operating systems that implement electronic device control through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. In addition, in an embodiment of the present invention, the electronic device can be a handheld device such as a smart phone or a tablet computer, or can be an electronic device such as a desktop computer or a portable computer, which is not particularly limited in the embodiment of the present invention.

[0073] The execution subject of the electronic device control in the embodiment of the present invention may be an electronic device, or a functional module in the electronic device that can call and execute a program. The electronic device may obtain the firmware corresponding to the storage medium. The firmware corresponding to the storage medium is provided by the supplier. The firmware corresponding to different storage media may be the same or different, which is not limited here. After the electronic device obtains the firmware corresponding to the storage medium, the firmware corresponding to the storage medium may be written into the storage medium, specifically, the firmware corresponding to the storage medium may be burned into the storage medium. The process of burning the firmware into the storage medium may be implemented using existing technology, which will not be described in detail in the embodiment of the present invention.

[0074] The electronic device may also obtain a reset command corresponding to the storage medium. The reset command corresponding to the storage medium is provided by the supplier. The reset commands corresponding to different storage media may be the same or different, and are not limited here.

[0075] At this time, the storage medium of the electronic device is a storage medium in which the corresponding firmware is written, and the electronic device can respond to the reset command corresponding to the storage medium in the storage medium in which the corresponding firmware is written, so that the electronic device resets the storage medium in which the corresponding firmware is written according to the reset command corresponding to the storage medium. The process of resetting the storage medium according to the reset command can be implemented by the existing technology and will not be described in detail in the embodiments of the present invention.

[0076] It can be known from the description of the above implementation modes that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various implementation modes of the present application or certain parts of the implementation modes.

[0077] The device implementation described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present implementation scheme. Those of ordinary skill in the art may understand and implement it without creative work.

[0078] The present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0079] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0080] like Figure 4 A specific application scenario of the present invention shown in FIG. Figure 5 The communication system framework diagram between the client and the server shown in FIG. Figure 6 The timing diagram based on SNMP protocol operation is shown. It can be seen from the above figures and the description of the following specific application scenarios that the device information and tunnel information of the national secret VPN can be visualized and managed. The device information and national secret VPN tunnel information only need a customized MIB library to be viewed in real time at the application layer through a third-party network management software, so that managers can easily discover abnormal connection status in time, and can manage and modify some information of devices and tunnels, which greatly facilitates the management of national secret VPN by network managers, improves network security, and reduces the cost and cost of network management personnel. :

[0081] The management objects added to the MIB are:

[0082] gmvpn .1.3.6.1.4.1.2021

[0083] base .1.3.6.1.4.1.2021.1

[0084]

[0085] Connect .1.3.6.1.4.1.2021.2

[0086] gmvpnConnect .1.3.6.1.4.1.2021.2.1

[0087]

[0088] gmPerLinkTable table node: .1.3.6.1.4.1.2021.2.2

[0089]

[0090]

[0091] Consult .1.3.6.1.4.1.2021.3

[0092] sa .1.3.6.1.4.1.2021.3.1

[0093] ikesatable table node: .1.3.6.1.4.1.2021.3.1.1

[0094]

[0095] PacketStatistics: .1.3.6.1.4.1.2021.3.2

[0096]

[0097] The management object information can be queried and written into the file through commands, modifying the code in .c and .h generated by mib2c, reading the data in the file and assigning the value to the corresponding variable, so as to display the relevant information of the national secret VPN through the GET, SET and other operations in the third-party network management software MG-SOFT MIBBrowser. This solution supports snmpv1, snmpv2c and snmpv3.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A national secret VPN supervision method based on SNMP protocol, It is characterized in that The regulatory approaches include: Based on SNMP protocol, add MIB library; Rewrite the SNMP configuration file and set the National Secret VPN as the SNMP agent; Defining management objects of national secret VPN devices in the MIB library; Compiling the management object to generate an executable program and running it; Call the nodes of the management objects in the MIB library to monitor and manage the information of the national secret VPN devices in real time; The process of rewriting the SNMP configuration file includes: Change the proxy IP to agentAddress UDP:192.168.11.161:161 Added: view systemonly included 1.3.6.1.4.1.7 Add: rwcommunity private default Systemctl restart snmpd.service; Compile the .c and .h files generated by the management object, and the compilation process specifically includes: Enter in the command line: net-snmp-config --compile-subagent readObject readObject.c Among them: --compile-subagent means compiling into a subagent program, readObject is the output program name after compilation, and readObject.c is the file to be compiled.

2. According to the SNMP protocol-based national secret VPN supervision method of claim 1, It is characterized in that When defining the management objects of the national secret VPN device in the MIB library, the high-level data description language ASN.1 is used to describe the protocol data unit PDU and the management object information library MIB.

3. According to the SNMP protocol-based national secret VPN supervision method of claim 1, It is characterized in that By using third-party network management software, the nodes of the management objects in the MIB library are called through the management object OID to conduct real-time monitoring and management of devices equipped with national secret VPN.

4. According to the SNMP protocol-based national secret VPN supervision method of claim 3, It is characterized in that The third-party network management software is MG-SOFT MIB Browser.

5. A national secret VPN monitoring system based on SNMP protocol, It is characterized in that The regulatory system includes: MIB library module, used to add MIB library based on SNMP protocol; SNMP agent module, used to rewrite SNMP configuration files and set the national secret VPN as SNMP agent; A management object definition module, used to define management objects of national secret VPN devices in the MIB library; A compiling module compiles the management object, generates an executable program and runs it; The monitoring and management module calls the nodes of the management objects in the MIB library to monitor and manage the information of the national secret VPN devices in real time; The process of rewriting the SNMP configuration file includes: Change the proxy IP to agentAddress UDP:192.168.11.161:161 Added: view systemonly included 1.3.6.1.4.1.7 Add: rwcommunity private default Systemctl restart snmpd.service; Compile the .c and .h files generated by the management object, and the compilation process specifically includes: Enter in the command line: net-snmp-config --compile-subagent readObject readObject.c Among them: --compile-subagent means compiling into a subagent program, readObject is the output program name after compilation, and readObject.c is the file to be compiled.

6. According to the SNMP protocol-based national secret VPN monitoring system of claim 5, It is characterized in that In the monitoring and management module, the nodes of the management objects in the MIB library are called through the management object OID to monitor and manage the information of the national secret VPN device in real time.

7. An electronic device, It is characterized in that include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; A computer program is stored in the memory, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 4.

8. A computer-readable storage medium, It is characterized in that Its storage can be electronically A computer program executed by a device, when the computer program is run on the electronic device, The electronic device is enabled to execute the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for detecting connectivity of multi-protocol label switching virtual private network

    CN101114994A

  • Dual-protocol based VPN implementing method

    CN101179470A

  • Method, system and device for network monitoring process

    CN103036732A

  • Method and apparatus providing controlled access of requests from virtual private network devices to managed information objects using simple network management protocol

    US7099947B1