Data processing method and device for border security equipment
By using the container engine to install containers and manage third-party applications in the boundary security equipment, the complex problems of system operation impact and management are solved, and flexible, convenient and secure application deployment and business expansion are achieved, management efficiency is improved and development is simplified. Maintenance process.
Patent Information
- Application Number
- CN202110699874.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-23
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-06-23
AI Technical Summary
The addition of third-party applications in boundary security equipment will affect the system operation, and the management process will be complex, and the development and maintenance process of third-party applications will be complicated.
Use container engine to install containers in boundary security devices, install third-party applications in containers, and set system resources through container engines to manage data from containers and third-party applications in order to run and access boundary security devices and intranet data.
It realizes flexible, convenient and secure deployment of third-party applications, quickly expands network equipment business functions, improves management efficiency, reduces management difficulty, and simplifies the development and maintenance process.
Smart Images

Figure CN113608821B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security, and in particular to a data processing method and apparatus for border security equipment. Background Art
[0002] With the advent of the Internet of Things (IoT), everything is connected and a large number of devices are connected to the network. These devices often have no security features or only very weak security features and are easily attacked or illegally invaded. The demand for management and security protection of these devices is increasing day by day.
[0003] Typically, an enterprise (or organization) has a NAT device (firewall or dedicated NAT device) located at the boundary between the public and internal networks, responsible for NAT address translation. Multiple branches of an enterprise also deploy networks in a similar manner.
[0004] Managing devices on the intranet through an external server is inconvenient and poses significant security risks in this network architecture. This is because numerous DNAT rules are required on the NAT device at the network boundary to access the internal network's terminal devices. Furthermore, any change in the IP address of a device on the internal network requires corresponding changes to the DNAT rules.
[0005] Faced with a diverse range of terminal devices, border security equipment must detect various protocols to identify threats. Due to the rapid pace of terminal development and change, it is extremely difficult for border security equipment to keep up with this pace of change. Due to the diverse nature of terminal devices and the varying protocol interactions, border security equipment manufacturers must invest significant manpower in rapidly updating their programs to meet security detection requirements. Otherwise, border security equipment will struggle to provide effective protection.
[0006] Integrating third-party applications on-demand on border security devices can meet the needs of rapidly expanding the business functions of network devices.
[0007] In related technologies, border security devices integrate third-party application functionality. One implementation involves adding multiple third-party service processes to the border security device system. These processes are compiled from the third-party's source code, which is typically not publicly available. This requires the border security device to provide its compilation toolchain to the third party, who then compiles the implementation into an executable file and runs it on the device.
[0008] This solution has the following issues: Scattered programs run directly on the system OS, potentially damaging the OS or file system. Third-party applications must be managed on a process-by-process basis, including memory usage monitoring, file monitoring, and CPU utilization monitoring, making management complex. Third-party applications have different functions, and monitoring these processes for anomalies or starting and stopping them may require defining different APIs, complicating development and maintenance.
[0009] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0010] An embodiment of the present invention provides a data processing method and apparatus for a border security device, so as to at least solve the technical problems in the related art that a third-party application needs to be added to the border security device, which affects the system operation of the border security device, and the management process is complicated, and the development and maintenance process of the third-party application is complicated.
[0011] According to one aspect of an embodiment of the present invention, a data processing method for a border security device is provided, comprising: installing a container engine in the border security device; establishing a container through the container engine, and installing a third-party application to be installed in the container; setting, through the container engine, system resources of the border security device that can be used by the container; and managing data of the container and the corresponding third-party application based on the system resources of the border security device that can be used by the container, wherein the container is used to run the third-party application and access the border security device and intranet data of the border security device through the container engine.
[0012] Optionally, establishing a container through the container engine and installing the third-party application to be installed in the container includes: establishing one or more containers through the container engine; importing the installation file of the third-party application into the container in the form of an image file through the container agent of the container engine; and running the image file of the installation file in the container to install the third-party application.
[0013] Optionally, before importing the installation file of the third-party application into the container in the form of an image file through the container agent of the container engine, the method further includes: performing security verification on the third-party application based on the image file through the container agent; and if the security verification of the image file of the third-party application passes, importing the image file into the container through the container agent.
[0014] Optionally, after the image file of the installation file is run in the container and the third-party application is installed, the method further includes: monitoring, through the container agent, whether the running status of the container in which the third-party application is installed is abnormal; if the running status is abnormal, importing the backup image file of the third-party application into the container through the container agent, and reloading and running the third-party application in the container, wherein the container agent is also used to manage the image files of multiple third-party applications; or, if the running status is abnormal, sending an event alarm through the container agent, wherein the event alarm is used to prompt that the container is running abnormally.
[0015] Optionally, after running the image file of the installation file in the container and installing the third-party application, the method further includes: receiving a control instruction for the container; responding to the control instruction and performing a control operation on the container, wherein the control operation includes at least one of the following: stop, start, and reload.
[0016] Optionally, managing the data of the container and the corresponding third-party application based on the system resources of the boundary security device that can be used by the container includes: setting the system resources of the boundary security device for the container through the container engine, wherein the system resources include at least one of the following: CPU resources, storage resources, IP address and port, disk resources; the container runs the third-party application through the system resources, wherein the third-party application is used to access the boundary security device and the intranet data of the boundary security device based on the system resources.
[0017] Optionally, the third-party application is a data management application. After the container runs the third-party application through the system resources, the method further includes: establishing a communication connection between the data management application and the corresponding terminal based on the system resources, wherein the system resources specify the terminals that the data management application can access, and the terminals include external network terminals and internal network terminals managed by the boundary security device; receiving management data through the container where the data management application is located, wherein the management data is data sent by the terminal through the communication connection; integrating multiple operation and maintenance management tools in the container, wherein the operation and maintenance management tools are used to assist the data management application in data management.
[0018] Optionally, the third-party application is a security management application, and after the container runs the third-party application through the system resources, the method further includes: receiving access traffic for accessing the boundary security device and the intranet terminal of the boundary security device through the security management application, wherein the access traffic is the access traffic of the boundary security device's own application, or the access traffic of the device on the external network of the boundary security device; sending the access traffic to the security management application of the boundary security device through a preset interface through the container where the security management application is located, wherein the container where the security management application is located is communicatively connected to the security management application through the preset interface, and the security management application is used to detect whether the access traffic is safe; or, receiving data information of the intranet terminal of the boundary security device through the security management application; establishing a database based on the data information through the container where the security management application is located, wherein the database is accessed by the security management application of the boundary security device to detect the data security of the intranet terminal of the boundary security device.
[0019] According to another aspect of an embodiment of the present invention, a data processing device for a border security device is provided, including: a first installation module for installing a container engine in the border security device; a second installation module for establishing a container through the container engine and installing a third-party application to be installed in the container; a setting module for setting the system resources of the border security device that can be used by the container through the container engine; and a management module for managing data of the container and the corresponding third-party application based on the system resources of the border security device that can be used by the container, wherein the container is used to run the third-party application and access the border security device and the intranet data of the border security device through the container engine.
[0020] According to another aspect of an embodiment of the present invention, a processor is provided, which is configured to run a program. When the program is run, the program executes any one of the above-mentioned data processing methods for a border security device.
[0021] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, wherein the computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned data processing methods for border security devices.
[0022] In an embodiment of the present invention, a container engine is installed in a border security device; a container is established through the container engine, and a third-party application to be installed is installed in the container; the system resources of the border security device that can be used by the container are set through the container engine; and the data of the container and the corresponding third-party application are managed based on the system resources of the border security device that can be used by the container. The container is used to run the third-party application, and the boundary security device and the intranet data of the boundary security device are accessed through the container engine. The container is configured on the border security device through the container engine to integrate the third-party application in the container, thereby achieving the purpose of flexibly, conveniently and securely deploying local applications on the border security device and quickly expanding the business functions of the network device, thereby achieving the technical effect of improving the management efficiency of the third-party application, reducing the management difficulty of the third-party application, and simplifying the development and maintenance process of the third-party application, thereby solving the technical problems in the related technology that the need to add a third-party application to the border security device will affect the system operation of the border security device, and the management process is complicated, and the development and maintenance process of the third-party application is complicated. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0024] Figure 1 is a flow chart of a data processing method for a border security device according to an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of a firewall software framework according to an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of a system structure in which firewall software and containers run third-party applications according to an embodiment of the present invention;
[0027] Figure 4 This is a schematic diagram of a firewall running a container to implement management functions according to an embodiment of the present invention;
[0028] Figure 5 This is a schematic diagram of a firewall running a container to implement management functions according to an embodiment of the present invention;
[0029] Figure 6 2 is a schematic diagram of a data processing device of a border security device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described 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 making creative efforts should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] According to an embodiment of the present invention, a method embodiment of a data processing method for a border security device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] Figure 1 FIG. 1 is a flow chart of a data processing method for a border security device according to an embodiment of the present invention. Figure 1 As shown, the method includes the following steps:
[0034] Step S102: Installing a container engine in a border security device;
[0035] Step S104: Create a container through the container engine and install the third-party application to be installed in the container;
[0036] Step S106: Setting the system resources of the boundary security device that can be used by the container through the container engine;
[0037] Step S108: Manage the data of the container and the corresponding third-party application based on the system resources of the boundary security device that can be used by the container. The container is used to run the third-party application and access the boundary security device and the intranet data of the boundary security device through the container engine.
[0038] Through the above steps, a container engine is installed in the border security device; a container is established through the container engine, and the third-party application to be installed is installed in the container; the system resources of the border security device that can be used by the container are set through the container engine; and the data of the container and the corresponding third-party application are managed based on the system resources of the border security device that can be used by the container. Among them, the container is used to run the third-party application, and the boundary security device and the intranet data of the boundary security device are accessed through the container engine. The container is configured on the border security device through the container engine to integrate the third-party application in the container, thereby achieving the purpose of flexibly, conveniently and securely deploying local applications on the border security device and quickly expanding the business functions of the network device, thereby achieving the technical effect of improving the management efficiency of third-party applications, reducing the management difficulty of third-party applications, and simplifying the development and maintenance process of third-party applications, thereby solving the technical problems in the related technology that the need to add third-party applications to the border security device will affect the system operation of the border security device, and the management process is complicated, and the development and maintenance process of third-party applications is complicated.
[0039] The aforementioned perimeter security devices, such as firewalls, are used to screen and authenticate data exchanged between different closed networks. Related technologies require integrating third-party applications within perimeter security devices to expand their functionality. However, this burdens and impacts the perimeter security device's systems, making management difficult. Furthermore, the development and maintenance of third-party applications must be performed within the perimeter security device, which increases the load and reduces security.
[0040] In this embodiment, in the border security device, a container is established through a container engine, and a third-party application is installed in the container. The container is located outside the above-mentioned border security device, and a container agent is established through the firewall's own application. The Shanshu container interacts with the container engine through the container agent, thereby interacting the data of the container outside the border security device with the container engine inside the border security device. The container engine manages the container to enable the data running the third-party application to interact with the border security device, thereby configuring the third-party application on the border security device and expanding the business functions of the border security device.
[0041] When managing containers, the container engine configures the system resources of the perimeter security device that the container can use. For example, the container engine can specify that the container use the perimeter security device's CPU, memory, IP addresses and ports, disks, and other system resources. This allows for the management of third-party references within the container and the configuration of third-party applications on the perimeter security device.
[0042] The perimeter security device can manage data for containers and corresponding third-party applications based on the perimeter security device's system resources available to the containers. Containers are used to run third-party applications, which access the perimeter security device and its intranet data through the container engine. This management of containers and corresponding third-party applications includes operational management, including running, stopping, starting, deleting, and viewing containers. It can also include managing the security of data exchanged between containers or third-party applications and the perimeter security device. This ensures the security of data exchange between third-party applications and the perimeter security device.
[0043] Using a container engine to manage containers requires access to the perimeter security device system. However, to ensure security, perimeter security devices cannot open internal windows to third parties. Therefore, a container proxy module is added to the perimeter security device's own application to provide users with management and operation of third-party application containers, thereby improving the security and reliability of perimeter security devices.
[0044] Therefore, by configuring containers on border security devices through the container engine to integrate third-party applications in the containers, the purpose of flexibly, conveniently and securely deploying local applications on border security devices and quickly expanding the business functions of network devices is achieved, and the technical effect of improving the management efficiency of third-party applications, reducing the management difficulty of third-party applications, and simplifying the development and maintenance process of third-party applications is achieved. This solves the technical problems in related technologies that the need to add new third-party applications to border security devices will affect the system operation of the border security devices, and the management process is complicated, and the development and maintenance process of third-party applications is complicated.
[0045] Optionally, establishing a container through a container engine and installing the third-party application to be installed in the container includes: establishing one or more containers through the container engine; importing the installation file of the third-party application into the container in the form of an image file through the container agent of the container engine; and running the image file of the installation file in the container to install the third-party application.
[0046] These third-party applications utilize resources provided by the border security device's system to implement their business functions, thereby extending the border security device's capabilities. Third-party applications are independently developed by third parties as containers. After development, the third-party application's installation files are packaged as container images and imported into the border security device's system via a container agent. After a series of loading and running operations, the container becomes a container. The container interacts with the border security device's native applications using the standard REST API provided by the border security device, integrating with the device's general functionality to extend the device's business capabilities.
[0047] Optionally, before importing the installation file of the third-party application into the container in the form of an image file through the container agent of the container engine, the method also includes: performing security verification on the third-party application based on the image file through the container agent; if the image file of the third-party application passes the security verification, importing the image file into the container through the container agent.
[0048] The container of the above-mentioned third-party application is provided to the border security device in the form of a container image file. The container agent provides an import function to import the image file into the system of the border security device. Before importing, the name, version, size and signature of the container image file need to be verified to ensure the security of the image file of the third-party application, thereby improving the security of the border security device.
[0049] Optionally, after the image file of the installation file is run in the container and the third-party application is installed, the method also includes: monitoring, through the container agent, whether the running status of the container in which the third-party application is installed is abnormal; in the case of an abnormality in the running status, importing the backup image file of the third-party application into the container through the container agent, and reloading and running the third-party application in the container, wherein the container agent is also used to manage the image files of multiple third-party applications; or, in the case of an abnormality in the running status, sending an event alarm through the container agent, wherein the event alarm is used to prompt the container operation abnormality.
[0050] The container agent supports managing multiple container images. When a container fails, it can load a backup image, improving system reliability. It also decouples container images from containers. After a container image is loaded and run, it can be replaced by a newly imported image. The running container then records the original image, facilitating management of container images.
[0051] The above container agent checks the status of the container in real time through a scheduled task. When the status of the container changes (abnormal exit), an event alarm is generated to remind the administrator to handle it.
[0052] Optionally, after running the image file of the installation file in the container and installing the third-party application, the method also includes: receiving a control instruction for the container; responding to the control instruction and performing a control operation on the container, wherein the control operation includes at least one of the following: stop, start, and reload.
[0053] To facilitate user experience and reduce unnecessary container manipulation errors, the container agent only provides three container operations: stop, start, and reload. Stopping a container stops a running container; starting a container restarts a stopped container; and reloading a container replaces the current container by selecting a managed container image file and loading it. This process integrates operations such as container deletion, image file loading, and container running. When running containers, the container engine is used to limit the firewall system resources and container permissions available to third-party application containers, ensuring the security and robustness of the firewall system.
[0054] Optionally, managing the data of the container and the corresponding third-party application based on the system resources of the boundary security device that can be used by the container includes: setting the system resources of the boundary security device for the container through the container engine, wherein the system resources include at least one of the following: CPU resources, storage resources, IP addresses and ports, and disk resources; the container runs the third-party application through the system resources, wherein the third-party application is used to access the boundary security device and the intranet data of the boundary security device based on the system resources.
[0055] The container engine effectively manages containers by specifying the CPU, memory, IP addresses, ports, disks, and other system resources available to the perimeter security device during container execution. The container engine manages and controls containers. By utilizing system resources to run containers, third-party applications within them can be run, expanding the functionality of perimeter security devices.
[0056] Optionally, the third-party application is a data management application. After the container runs the third-party application through system resources, the method also includes: establishing a communication connection between the data management application and the corresponding terminal based on the system resources, wherein the system resources specify the terminals that the data management application can access, and the terminals include external network terminals and internal network terminals managed by boundary security devices; receiving management data through the container where the data management application is located, wherein the management data is data sent by the terminal through the communication connection; integrating multiple operation and maintenance management tools in the container, wherein the operation and maintenance management tools are used to assist the data management application in data management.
[0057] Deploy containers on perimeter security. Third-party applications in the containers can be used as data management applications to aggregate information about terminals in the intranet (also known as private network) of perimeter security devices within the perimeter and report it to a remote management center. Figure 4As shown. Terminal information can be collected through active detection by the data management application, or by the terminal device pointing the server gateway to a perimeter security device, such as a firewall. Furthermore, the data management application can establish a connection with the designated terminal, send messages to the terminal device to execute corresponding management operations, and receive messages from the terminal to monitor the terminal device. Furthermore, numerous operation and maintenance management tools can be integrated into the container to improve the operation and maintenance management efficiency of the data management application. This approach allows the cloud management center to easily manage devices within the LAN, directly utilizing the CPU resources of the perimeter network's perimeter security devices, eliminating the need for additional equipment and saving management costs.
[0058] Optionally, the third-party application is a security management application, and after the container runs the third-party application through system resources, the method also includes: receiving access traffic for accessing the boundary security device and the intranet terminal of the boundary security device through the security management application, wherein the access traffic is the access traffic of the boundary security device's own application, or the access traffic of the device on the external network of the boundary security device; sending the access traffic to the security management application of the boundary security device through a preset interface through the container where the security management application is located, wherein the container where the security management application is located is communicated with the security management application through a preset interface, and the security management application is used to detect whether the access traffic is secure; or, receiving data information of the intranet terminal of the boundary security device through the security management application; establishing a database based on the data information through the container where the security management application is located, wherein the database is used to access the security management application of the boundary security device to detect the data security of the intranet terminal of the boundary security device.
[0059] According to the interaction mode between the container and the border security device, security functions can be divided into two categories. The first category is security functions that use the security management application in the container as the main body, using the rest API interface provided by the border security device to send relevant security operations and configurations to the border security device to prevent and control illegal traffic, such as Figure 5 As shown in Figure 1, the security management application running in the container uses the policy functions of the border security device to block traffic from detected illegal terminals. The second type of security function is primarily based on the application in the border security device. The security management application in the container is responsible for collecting security information from the intranet and sending it to the border security device to establish a security information database. The border security device's own application then analyzes and extracts useful information from the database for security protection.
[0060] It should be noted that this embodiment also provides an optional implementation, which is described in detail below.
[0061] The problem solved by this implementation is to design a complete and flexible architecture to quickly integrate third-party applications on the border security device and expand the business functions of the border security device in a specific environment. By running containers on the border security device and then running third-party applications in the containers, business functions can be expanded, such as Figure 2 As shown, Figure 2 This is a schematic diagram of a firewall software framework according to an embodiment of the present invention. Third-party applications can be independently developed and upgraded. Furthermore, a complete solution for managing and monitoring containers on perimeter security devices is provided. This provides a complete system framework for flexibly integrating third-party applications using Docker containers on perimeter security devices. This allows third-party applications to be flexibly, conveniently, and securely integrated into perimeter security devices, expanding service functionality on demand.
[0062] Figure 3 Schematic diagram of the system structure of firewall software and container running third-party applications according to an embodiment of the present invention. Figure 3 As shown, the overall system structure for running containers and deploying third-party applications on border security devices can be divided into three parts, namely the operating system kernel, the border security device's own application part, and the docker container part. The operating system kernel is the basis for the border security device's own applications and container operations, and it is shared by the two parts. The docker container engine is installed on the network border security device operating system to drive the container, and the third-party application runs in the docker container. The container agent docker agent module is developed in the border security device, which is specifically used to manage the container's image files, control the start and stop of the container, and monitor the container status. The interaction between each module is shown in the figure. Figure 2 shown.
[0063] Docker Container Engine: Running containers requires installing the Docker container engine on the perimeter security device's operating system. This engine allows for a range of management operations, including running, stopping, starting, deleting, and viewing containers. When running a container, you can specify the CPU, memory, IP address and port number, disk, and other perimeter security device system resources that the container can use. The Docker container engine manages and controls Docker containers. The Docker agent module uses the interfaces provided by the Docker container engine to manage containers.
[0064] Third-party applications: Third-party applications use the resources provided by the border security device system to implement their business functions. They are independently developed by the third party in the form of containers. After development is completed, they are packaged as container image files and imported into the border security device system through the container agent Docker agent. After a series of loading and running operations, they become containers.
[0065] The container can use the standard rest API interface provided by the border security device to interact with the device's own applications, combine with the general functions of the border security device, and expand the business functions of the border security device.
[0066] Figure 4 FIG. 1 is a schematic diagram of a firewall running a container to implement management functions according to an embodiment of the present invention. Figure 4 The management functions are as follows:
[0067] Management function: Deploy containers on the firewall. The third-party applications in the containers can serve as management agents, that is, data management applications. They aggregate the information of terminals in the intranet and report it to the remote management center. Figure 6 As shown in the figure, terminal information can be collected through active detection by third-party applications or by having the terminal device point the server gateway to the firewall. Furthermore, the management agent can establish a connection with the designated terminal, send messages to the terminal device to execute corresponding management operations, and receive messages from the terminal to monitor the terminal device. Furthermore, the container can integrate numerous O&M management tools to improve the O&M efficiency of the management agent. This approach allows the cloud-based management center to easily manage devices within the LAN, directly utilizing the CPU resources of the perimeter network's security devices, eliminating the need for additional equipment and reducing management costs.
[0068] Figure 5 FIG. 1 is a schematic diagram of a firewall running a container to implement management functions according to an embodiment of the present invention. Figure 5 As shown, the safety features are as follows:
[0069] Security functions: Based on the interaction between containers and firewall applications, security functions can be divided into two categories. The first category involves third-party applications within the container. These applications use the firewall's REST API to send security operations and configurations to the firewall to prevent and control illegal traffic. The security agent, also known as the security management application, running within the container uses the firewall's policy functionality to block traffic from detected illegal terminals. The second category involves applications within the firewall. The security agent within the container collects security information from the intranet and sends it to the firewall to establish a security information database. The firewall application then analyzes and extracts useful information from the database for security protection.
[0070] Docker agent: Using the Docker engine to manage containers requires access to the perimeter security device system. However, perimeter security devices cannot open internal windows to third parties. Therefore, a Docker agent module is added to its own application to provide users with management and operation of third-party application containers. The specific functions are described below.
[0071] Container image file management: Third-party application containers are provided to the firewall in the form of container image files. The Docker agent provides an import function to import image files into the system. Before importing, the name, version, size, and signature of the container image file must be verified to ensure security. The Docker agent supports the management of multiple container image files. When a container fails, a backup container image file can be loaded and run, improving system reliability. It also decouples container image files from containers. After a container image file is loaded and run as a container, it can be replaced by the newly imported container image file. The running container records the original image file, facilitating the management of container image files.
[0072] Container Operations: To facilitate user experience and reduce unnecessary container manipulation errors, the Docker container agent only provides three container operations: stop, start, and reload. Stopping a container stops a running container; starting a container restarts a stopped container; and reloading a container replaces the current container by selecting a managed container image file and loading it. This process integrates operations such as container deletion, image file loading, and container running. When running containers, the Docker container engine is used to limit the firewall system resources and container permissions available to third-party application containers, ensuring the security and robustness of the firewall system.
[0073] Container status monitoring: The container agent Docker agent uses scheduled tasks to view the status of the container in real time. When the status of the container changes (abnormal exit), an event alarm is generated to remind the administrator to handle it.
[0074] In one application example, this implementation involves a company using a firewall to manage video surveillance devices within its intranet. The firewall also controls access to the source devices of video surveillance traffic, interrupting traffic flow from unauthorized or counterfeit video surveillance devices. Traditional firewalls lack the ability to detect specific video surveillance devices, requiring expanded management and security capabilities. The design of this invention can quickly meet these requirements:
[0075] 1. The company independently developed a container based on a compatible version of the operating system kernel to detect video surveillance devices on the intranet. After development, the container image was packaged.
[0076] 2. Import the container image file through the firewall container agent docker agent module. After verification, load and run it as a container containing the above application.
[0077] 3. After deployment, the container uses firewall resources to obtain information about video surveillance devices in the network.
[0078] 4. Based on the information obtained, the container uses the standard restAPI interface provided by the firewall and the firewall's policies and other security protection functions to block video traffic from illegal video surveillance devices.
[0079] The container-based system solution of this embodiment is applicable to border security devices (including but not limited to network traffic border security devices, network data forwarding devices, network traffic analysis devices, network traffic management devices, such as FW / NGFW, IDS / IPS, WAF, ADC, BDS, etc.), and is applicable to virtualized border security devices (including but not limited to virtualized network traffic border security devices, virtualized network data forwarding devices, virtualized network traffic analysis devices, virtualized network traffic management devices, such as vFW / vNGFW, vIDS / vIPS, vWAF, vADC, vBDS, etc.).
[0080] This embodiment manages various terminal devices that protect the intranet on the border security device in a container-based manner, quickly expanding the management and security functions of the border security device, expanding on demand, and being flexible and fast. Third-party applications are used by importing container image files into the border security device to load and run as containers, and signature verification is performed on the imported image files. This is safe, convenient, and has good scalability. Developing third-party applications in a container-based manner can be independent of the border security device system, and has encapsulation, independence, and confidentiality. The border security device system uses the Docker engine to limit the system resources used by third-party applications, and controls their permissions, thereby protecting the security of the system. The relevant functions within the container are maintained by a third party, and the division of responsibilities is clear. The Docker agent provides users with management operations such as container image file import, container stop, container start, and container reload, and performs security verification. Management operations are safe and convenient. Real-time monitoring of container operation status.
[0081] The key point of this implementation is the complete system solution of using containers to flexibly deploy third-party applications on the perimeter security device to expand business functions. The perimeter security device uses the Docker system solution of this implementation to quickly expand the management and security functions of the intranet terminal devices.
[0082] Figure 6 Schematic diagram of a data processing device of a border security device according to an embodiment of the present invention. Figure 6 As shown, according to another aspect of an embodiment of the present invention, a data processing device for border security equipment is provided, including: a first installation module 62, a second installation module 64, a setting module 66 and a management module 68. The device is described in detail below.
[0083] A first installation module 62 is used to install a container engine in a border security device; a second installation module 64 is connected to the first installation module 62 and is used to establish a container through the container engine and install the third-party application to be installed in the container; a setting module 66 is connected to the above-mentioned second installation module 64 and is used to set the system resources of the border security device that can be used by the container through the container engine; a management module 68 is connected to the above-mentioned setting module 66 and is used to manage the data of the container and the corresponding third-party application based on the system resources of the border security device that can be used by the container, wherein the container is used to run third-party applications and access the border security device and the intranet data of the border security device through the container engine.
[0084] Through the above-mentioned device, a container engine is installed in the border security device; a container is established through the container engine, and the third-party application to be installed is installed in the container; the system resources of the border security device that can be used by the container are set through the container engine; and the data of the container and the corresponding third-party application are managed based on the system resources of the border security device that can be used by the container. Among them, the container is used to run the third-party application, and the boundary security device and the intranet data of the boundary security device are accessed through the container engine. The container is configured on the border security device through the container engine to integrate the third-party application in the container, thereby achieving the purpose of flexibly, conveniently and securely deploying local applications on the border security device and quickly expanding the business functions of the network device, thereby achieving the technical effect of improving the management efficiency of third-party applications, reducing the management difficulty of third-party applications, and simplifying the development and maintenance process of third-party applications, thereby solving the technical problems in the related technology that the need to add third-party applications to the border security device will affect the system operation of the border security device, and the management process is complicated, and the development and maintenance process of third-party applications is complicated.
[0085] According to another aspect of an embodiment of the present invention, a processor is further provided. The processor is configured to run a program, wherein the program executes any one of the above-mentioned data processing methods for a border security device when running.
[0086] According to another aspect of an embodiment of the present invention, a computer storage medium is provided. The computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned data processing methods for border security devices.
[0087] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0088] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0090] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0091] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.
[0093] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A data processing method for a border security device, It is characterized in that include: installing a container engine in the border security device; Establish a container through the container engine, and install the third-party application to be installed in the container; Setting, by the container engine, system resources of the border security device that can be used by the container; Managing the data of the container and the corresponding third-party application according to the system resources of the border security device that can be used by the container, wherein the container is used to run the third-party application and access the border security device and the intranet data of the border security device through the container engine; Wherein, managing the data of the container and the corresponding third-party application according to the system resources of the border security device that can be used by the container includes: Setting the system resources of the border security device for the container through the container engine, wherein the system resources include an IP address and a port; The container runs the third-party application through the system resources, wherein the third-party application is used to access the border security device and the intranet data of the border security device according to the system resources; Wherein, the third-party application is a security management application, and after the container runs the third-party application through the system resources, the method further includes: Receiving access traffic of the border security device and the intranet terminal of the border security device through the security management application, wherein the access traffic is the access traffic of the border security device's own application or the access traffic of the device of the extranet of the border security device; Sending relevant security operations and configurations to the security management application of the border security device through the security management application in the container based on a preset interface, wherein the container is communicatively connected with the security management application of the border security device through the preset interface, and the security management application in the container is used to detect whether the access traffic is secure; or, Receiving data information of the intranet terminal of the border security device through the security management application; A database is established according to the data information through the container where the security management application is located, wherein the database is used for access by the security management application of the border security device to detect data security of the intranet terminal of the border security device.
2. The method according to claim 1, It is characterized in that Establishing a container through the container engine and installing a third-party application to be installed in the container includes: Establish one or more containers through the container engine; Importing the installation file of the third-party application into the container in the form of an image file through the container agent of the container engine; Running the image file of the installation file in the container to install the third-party application; Before importing the installation file of the third-party application into the container in the form of an image file through the container agent of the container engine, the method further includes: Performing security verification on the third-party application according to the image file through the container agent; When the image file of the third-party application passes security verification, the image file is imported into the container through the container agent.
3. The method according to claim 2, It is characterized in that After the image file of the installation file is run in the container and the third-party application is installed, the method further includes: Monitoring, by means of the container agent, whether an abnormality occurs in the running state of the container in which the third-party application is installed; In the event of an abnormality in the running state, the backup image file of the third-party application is imported into the container through the container agent, and the third-party application is reloaded and run in the container, wherein the container agent is also used to manage the image files of multiple third-party applications; or, When an abnormality occurs in the running state, an event alarm is sent through the container agent, wherein the event alarm is used to prompt that the container is running abnormally.
4. The method according to claim 2, It is characterized in that After running the image file of the installation file in the container and installing the third-party application, the method further includes: receiving a control instruction for the container; In response to the control instruction, a control operation is performed on the container, wherein the control operation includes at least one of the following: stop, start, and reload.
5. The method according to claim 1, It is characterized in that The system resources also include at least one of the following: CPU resources, storage resources, and disk resources.
6. The method according to claim 5, It is characterized in that The third-party application is a data management application. After the container runs the third-party application through the system resources, the method further includes: Establishing a communication connection between the data management application and a corresponding terminal according to the system resources, wherein the system resources specify the terminals that the data management application can access, and the terminals include external network terminals and internal network terminals managed by the border security device; receiving management data through the container where the data management application is located, wherein the management data is data sent by the terminal through the communication connection; A plurality of operation and maintenance management tools are integrated in the container, wherein the operation and maintenance management tools are used to assist the data management application in performing data management.
7. A data processing device for border security equipment, It is characterized in that include: A first installation module, configured to install a container engine in the border security device; A second installation module is used to establish a container through the container engine, and install the third-party application to be installed in the container; A setting module, used for setting the system resources of the border security device that can be used by the container through the container engine; A management module, configured to manage data of the container and a corresponding third-party application according to system resources of the border security device that can be used by the container, wherein the container is used to run the third-party application and access the border security device and the intranet data of the border security device through the container engine; The management module is further used to set the system resources of the border security device for the container through the container engine, wherein the system resources include an IP address and a port; the container runs the third-party application through the system resources, wherein the third-party application is used to access the border security device and the intranet data of the border security device according to the system resources; The third-party application is a security management application. The management module is also used to receive access traffic to the border security device and the intranet terminal of the border security device through the security management application after the container runs the third-party application through the system resources, wherein the access traffic is the access traffic of the border security device's own application, or the access traffic of the device of the external network of the border security device; through the security management application in the container, relevant security operations and configurations are sent to the security management application of the border security device based on a preset interface, wherein the container and the security management application of the border security device are communicatively connected through the preset interface, and the security management application in the container is used to detect whether the access traffic is safe; or, receive data information of the intranet terminal of the border security device through the security management application; through the container where the security management application is located, establish a database according to the data information, wherein the database is used to be accessed by the security management application of the border security device to detect the data security of the intranet terminal of the border security device.
8. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the data processing method for a border security device according to any one of claims 1 to 6 when running.
Citation Information
Patent Citations
Contain cloud platform and server
CN109062655A
Container-based edge internet of things proxy device
CN111866084A
KR20210021831A
