A protection method, firewall system and device

By dividing the firewall device into independent management modules and firewall modules, the problem of data reception function management failure when the firewall is attacked is solved, ensuring the security of the firewall and the continuity of management functions.

CN118555147BActive Publication Date: 2024-10-29HUNAN BOSHENGXIN MICROELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411026550.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-29
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

If the existing firewall's defense fails when it is attacked, the management function of the data receiving function will also fail, resulting in security risks.

Method used

Divide the firewall device into independent management modules and firewall modules. The management module is responsible for deploying security policies and controlling network access of the firewall module. The firewall module is responsible for data packet processing and forwarding. If the firewall module is attacked, only its data receiving function fails, and the management module Other management functions of the firewall can still be maintained.

Benefits of technology

It effectively solves the security risks caused by the failure of the firewall's data receiving function management function, ensuring that the firewall can still perform start-stop control and other management functions when it is attacked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555147B_ABST
    Figure CN118555147B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of firewalls, and discloses a protection method, a firewall system and a device. The firewall device includes a management module and a firewall module; the firewall module includes a processor, a memory module, a BIOS module, a data interface expansion module and a storage module; the management module includes a baseboard management controller, a management interface module, a status monitoring module and a firmware flash memory chip; the method includes: deploying the security policy sent by the host computer to the firewall module through the management interface of the management module; detecting whether each firewall module meets the network access condition through the management module; if so, the management module allows network access to the firewall module, so as to receive a data packet through the data interface expansion module of the firewall module, and forward the data packet processed by the protection to the target receiving end of the data packet. The present invention is conducive to solving the problem that if the firewall fails in defense, the management function of its data receiving function will also fail.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of firewalls, and in particular to a protection method, a firewall system and a firewall device. Background Art

[0002] With the advent of the "Internet +" and "artificial intelligence" era, the network security issues faced by enterprises and individuals are becoming increasingly severe. In order to meet the requirements of network security in the era of big data, enterprises keep up with the trend of network security situation and vigorously develop network security technology to deal with various network security threats. Firewall is a facility that prevents external intrusion and protects itself. It is currently one of the most effective ways to solve network security.

[0003] Currently, attackers may use a variety of strategies and techniques to weaken or bypass firewall defenses, which may indirectly affect the performance of the processor and the overall functionality of the firewall.

[0004] For example, an attacker may send a large number of packets to a firewall with the goal of exhausting the firewall's processing power and resources, preventing legitimate network traffic from passing through. In this case, the firewall's processor will be overloaded by processing too many packets, affecting its normal function.

[0005] For example, an attacker may exploit the limited capacity of the firewall's state detection table or connection table by sending a large number of false connection requests to fill these tables, causing legitimate connections to be unable to be recorded or tracked, thereby affecting the firewall's state detection function.

[0006] In the prior art, the firewall processor mainly filters, detects and responds to potential threats by executing a series of security policies and algorithms when dealing with network attacks. For example, the firewall processor checks all passing data packets and decides to allow or block the transmission of data packets based on a preset set of rules (such as ACL, access control list). This includes checking the source and destination IP addresses, port numbers, protocol types and other information of the data packets. For another example, the firewall maintains a state table to track all active network connections. The processor uses this table to ensure that the data packet is part of a legitimate connection and prevent illegal or unestablished connection data packets from passing.

[0007] In the prior art, when a network attack occurs, the processor of the firewall is directly attacked by the network attack. If the firewall defense fails, the management function of the firewall's data receiving function also fails, resulting in security risks in the firewall in the prior art. Summary of the invention

[0008] The main purpose of the present invention is to provide a protection method, a firewall system and a device, aiming to solve the problem that when the existing firewall is attacked, if the defense fails, the management function of the firewall's data receiving function will also fail, resulting in security risks.

[0009] To achieve the above object, the present invention provides a protection method for performing a firewall protection function through a firewall device; the firewall device includes a management module and a firewall module that are independent of each other and interconnected;

[0010] The firewall module includes a processor, and a memory module, a BIOS module, a data interface expansion module and a storage module respectively connected to the processor;

[0011] The management module includes a baseboard management controller, and a management interface module, a status monitoring module and a firmware flash memory chip respectively connected to the baseboard management controller;

[0012] The method comprises the following steps:

[0013] Deploy the security policy sent by the host computer to the firewall module through the management interface of the management module;

[0014] Detecting, by the management module, whether the firewall module meets the network access condition, wherein when the network access condition is met, the designated hardware status of the firewall module is normal, and the security policy of the firewall module has been deployed;

[0015] If so, the management module allows network access to the firewall module to receive data packets through the data interface expansion module of the firewall module, and forwards the data packets that have passed the protection processing to the target receiving end of the data packets.

[0016] Preferably, the firewall device comprises a plurality of cascaded firewall modules; at least one firewall module is connected to the management module as a master firewall module, and the remaining firewall modules are connected to the master firewall module as slave firewall modules;

[0017] The step of receiving a data packet through the data interface expansion module of the firewall module comprises:

[0018] The main firewall module monitors the network traffic in real time, and distributes each data packet to the data interface expansion module of each firewall module according to the network traffic, so as to perform protection processing.

[0019] Preferably, the method further comprises the following steps:

[0020] Through the management module, authorized LAN users can query the existing applications and rules of the management module and authorize security policy upgrades;

[0021] Through the management module, the software and hardware of the firewall device are monitored, and basic maintenance and management of the firewall device are performed, wherein the basic maintenance and management includes system backup, system recovery, system upgrade, sound and light alarms, and start and stop control of each firewall module.

[0022] Preferably, the method further comprises the following steps:

[0023] Through the firewall module, the access rights of users outside the LAN to the LAN are controlled, and IP address resolution is performed on all data packets passing through the firewall device to allocate user access rights;

[0024] By means of the firewall module, traffic data is monitored in real time to analyze abnormal events according to the traffic data;

[0025] Virus protection is performed through the firewall module, and the latest signature feature library is established in the firewall module. The data packet is compared and analyzed with the latest signature feature library to detect malicious intrusion;

[0026] The abnormal event is reported to the management module through the firewall module to remind the management user to update the security policy of the firewall module.

[0027] Preferably, the step of forwarding the data packet that has passed the protection processing to a target receiving end of the data packet comprises:

[0028] Determining, by the firewall module, whether the received data packet is included in the state detection table;

[0029] If it is included in the state detection table, the data packet is allowed to pass the state detection, and the data packet is forwarded to the target receiving end of the data packet, and the data packet is backed up;

[0030] If it is not included in the state detection table, determining whether the security policy rule has been matched to the data packet;

[0031] If the data packet matches the security policy rule, the data packet is forwarded to the target receiving end of the data packet, the data packet is backed up, and a state detection table is updated by recording according to the data packet;

[0032] According to the forwarded data packets, determine whether abnormal data forwarding is performed, and if so, record the abnormal data forwarding event to update the security policy;

[0033] If the data packet does not match the security policy rule, the data packet is discarded.

[0034] Preferably, the step of monitoring the traffic data in real time through the firewall module to analyze abnormal events according to the traffic data includes:

[0035] Monitor the corresponding network traffic in real time through the firewall module;

[0036] According to the network traffic, determine the traffic of the network traffic user and each LAN user sending data packets to each of the firewall modules respectively;

[0037] Analyze traffic anomalies based on the changes in the traffic volume of data packets sent by each firewall module over time.

[0038] Preferably, the method further comprises:

[0039] Obtain various firewall tasks and the execution requirements of each firewall task;

[0040] Compile a firewall task list based on various firewall tasks;

[0041] Obtaining the current task volume of each of the firewall modules;

[0042] According to the current task volume of each firewall module and the execution requirements of each firewall task, all the firewall modules are arranged to form different execution sequences for each firewall task, wherein the execution sequence of each firewall task records the execution order of each firewall module;

[0043] Arrange the execution sequence corresponding to each firewall task into the corresponding firewall task in the task list to form an execution sequence list for each firewall task;

[0044] When a new firewall task is received, the new firewall task is assigned to a firewall module at a set position in the corresponding execution sequence according to the execution sequence list and the firewall task type corresponding to the new firewall task.

[0045] Preferably, the method further comprises:

[0046] Collect known malicious traffic samples and normal traffic samples, and create a training data set based on the malicious traffic samples and normal traffic samples;

[0047] Extracting data features from data packets corresponding to malicious traffic samples and normal traffic samples, respectively, wherein the data features include: at least one of source IP, destination IP, port number, protocol type, data packet length, data packet frequency, timestamp, and digital certificate information;

[0048] Build machine models for identifying risk types of data packets;

[0049] The data packets corresponding to the malicious traffic samples and the normal traffic samples are used as input data, and the risk type of the data packet is used as output data, and the machine model is trained to obtain a machine model for identifying the risk type of the data packet; wherein the risk type of the data packet is a risk level type manually labeled according to the data features of the data packet;

[0050] Obtain the average historical traffic-time fluctuation curve of each firewall module in the historical period;

[0051] According to the average historical traffic-time fluctuation curve of each firewall module, the average historical total traffic-time fluctuation curve of the firewall device is formed;

[0052] Obtain the real-time traffic-time fluctuation curve of each firewall module in the current period;

[0053] At the rising moment when the real-time traffic-time fluctuation curve of at least one firewall module rises, determining whether the total traffic value of the firewall device at the rising moment exceeds the traffic value at the corresponding moment of the average historical total traffic-time fluctuation curve;

[0054] If so, issuing a data packet risk detection instruction to input the received data packet into the machine model through the main firewall module, thereby outputting the risk level type corresponding to each data packet;

[0055] According to the risk level type corresponding to the data packet, the data packet that reaches the preset risk level type will be sent to the designated firewall module, and in each firewall module, the data packet is sorted from high to low according to the risk level type corresponding to the data packet, so that the firewall module gives priority to processing data packets with high risk levels.

[0056] To achieve the above object, the present invention further proposes a firewall device, applying any of the above protection methods; the firewall device comprises a management module and a firewall module which are independent of each other and interconnected;

[0057] The firewall module includes a processor, and a memory module, a BIOS module, a data interface expansion module and a storage module respectively connected to the processor;

[0058] The management module includes a baseboard management controller, and a management interface module, a status monitoring module and a firmware flash memory chip respectively connected to the baseboard management controller;

[0059] The management module is used to connect to the host computer through the management interface module, and the firewall module is used to receive data packets through the data interface expansion module.

[0060] To achieve the above objectives, the present invention also proposes a firewall system, applying any of the protection methods described above; the firewall system includes a management system and a security protection system; the processor runs the management system, and the baseboard management controller runs the security protection system.

[0061] In the technical solution of the present invention, the firewall device is divided into an independent management module and a firewall module. When the processor of the firewall module is attacked, if the defense fails, only the processor of the firewall module fails, and the management module does not fail, which is conducive to solving the security risks caused by the simultaneous failure of the data receiving function and the management function of the firewall. Specifically, the firewall module is provided with a data interface extension module for receiving data packets; the management module is provided with a management interface module for deploying security policies, and the management module is used to control whether the firewall module allows network access. The technical solution of the present invention sets the management interface and data interface originally set in the firewall processor into two independent modules. When subjected to a network attack, if the firewall defense fails, only the data receiving function of the firewall module fails, but the management function still exists and can still be used to control the start and stop of the firewall module, as well as to perform other management functions of the firewall. Therefore, the firewall management interface and data interface are derived from two independent modules, eliminating the above-mentioned security risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A block diagram of a firewall device in an embodiment of the present invention;

[0063] Figure 2 The software modules of the firewall system in one embodiment of the present invention are composed of;

[0064] Figure 3 The figure is a flow chart of a protection method in one embodiment of the present invention.

[0065] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0066] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0067] In the following description, suffixes such as "unit", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "unit", "component" or "unit" can be used in a mixed manner.

[0068] See also Figures 1 to 3, a first embodiment of the present invention provides a protection method for performing a firewall protection function through a firewall device; the firewall device includes a management module and a firewall module that are independent of each other and interconnected;

[0069] The firewall module includes a processor, and a memory module, a BIOS (Basic Input / Output System) module, a data interface expansion module and a storage module respectively connected to the processor;

[0070] The management module includes a baseboard management controller, and a management interface module, a status monitoring module and a firmware flash memory chip respectively connected to the baseboard management controller;

[0071] The method comprises the following steps:

[0072] Step S10, deploying the security policy sent by the host computer to the firewall module through the management interface of the management module;

[0073] Step S20, detecting, by the management module, whether the firewall module meets the network access condition, wherein when the network access condition is met, the designated hardware status of the firewall module is normal, and the security policy of the firewall module has been deployed;

[0074] If so, execute step S30, the management module allows network access to the firewall module to receive data packets through the data interface expansion module of the firewall module, and forwards the data packets that have passed the protection processing to the target receiving end of the data packets.

[0075] In the technical solution of the present invention, the firewall device is divided into an independent management module and a firewall module. When the processor of the firewall module is attacked, if the defense fails, only the processor of the firewall module fails, and the management module does not fail, which is conducive to solving the security risks caused by the simultaneous failure of the data receiving function and the management function of the firewall. Specifically, the firewall module is provided with a data interface extension module for receiving data packets; the management module is provided with a management interface module for deploying security policies, and the management module is used to control whether the firewall module allows network access. The technical solution of the present invention sets the management interface and data interface originally set in the firewall processor into two independent modules. When subjected to a network attack, if the firewall defense fails, only the data receiving function of the firewall module fails, but the management function still exists and can still be used to control the start and stop of the firewall module, as well as to perform other management functions of the firewall. Therefore, the firewall management interface and data interface are derived from two independent modules, eliminating the above-mentioned security risks.

[0076] See also Figure 1In the present invention, the baseboard management controller is a BMC (Baseboard Manager Controller) module.

[0077] In a specific embodiment, the firewall module may include a domestic processor ( Figure 1 Domestic CPUs in the market), DDR memory modules (e.g. Figure 1 UDIMM, Unbuffered Dual In-line Memory Module, Unbuffered Dual In-line Memory Module), BIOS module ( Figure 1 The BIOS flash / GD25LQ128 in the text refers to the flash memory chip used to store BIOS firmware, model GD25LQ128), data interface expansion module and storage module, etc.

[0078] The processor uses domestic high-performance server processors and supports the use of multiple CPUs in parallel to improve the performance of the firewall module. The specific model can use the Feiteng Tengyun S5000C series CPU.

[0079] The DDR memory module is connected to the processor, with a capacity of 64GB and a frequency of 3200MT / S. The high-capacity and high-speed design ensures the smoothness of the firewall module. DDR memory chips can be selected from domestic memory bars such as Unigroup Guoxin and Changxin Storage.

[0080] The storage module may include a SATA interface and an M.2 interface, specifically, two SATA interfaces and one M.2 interface. It can be connected to an NVME solid-state drive, a SATA solid-state drive, and a mechanical hard drive. At the same time, it can be connected to a RAID card to expand the storage interface through a PCIe×16 slot, supporting RAID functions.

[0081] The BIOS module is used to initialize hardware devices and boot the operating system. It provides debugging and diagnostic functions for hardware devices and a friendly user configuration interface, and supports trusted startup and customized design.

[0082] The data interface extension module includes several intranet extension interfaces and several extranet extension interfaces, for example, Figure 1 The 4 PCIe×8 front slots are used as the internal network expansion interface, and the 4 PCIe×8 front slots are used as the external network expansion interface. Supporting PCIe5.0, it can expand 1G, 10G, 40G, 100G and 800G network cards and other devices.

[0083] The management module includes a baseboard management controller and a management interface module.

[0084] The baseboard management controller communicates with the processor in the firewall module through interfaces such as PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard), USB (Universal Serial Bus), UART (Universal Asynchronous Receiver / Transmitter), LPC (Low PinCount), I2C (Inter-Integrated Circuit bus, a bidirectional two-wire serial bus), and GPIO (General-Purpose Input / Output) to deploy relevant policies of the firewall module;

[0085] Control the LED and power on / off of the entire firewall through GPIO; connect the temperature sensor through I2C to monitor the firewall temperature, and then control the fan speed according to the temperature information. When the temperature is too high, the firewall module can be restarted or shut down;

[0086] Monitor the voltage of the firewall module through ADC (Analog-to-Digital Converter). When the voltage is abnormal, the firewall module can be alarmed, restarted, or shut down.

[0087] The management interface module includes: a management network port and a heartbeat network port connected to the baseboard management controller through a gigabit network, a USB Type-A interface connected to the baseboard management controller through a USB interface, an RJ45 interface (Registered Jack 45, a standardized physical interface widely used in Ethernet network connections) and a Console interface (a physical interface specifically used for local management of the device) connected to the baseboard management controller through a UART interface.

[0088] Among them, the management network port and the Console port can be connected to the host computer respectively to receive host computer instructions, deploy and manage firewall-related policies, and remotely restart and shut down the firewall module.

[0089] The heartbeat network port is used for hot standby function.

[0090] The USB interface is used for debugging and installing related applications.

[0091] BMC firmware can be customized and developed, and BMC chips are preferably Hunan Boshengxin Microelectronics SDX2500, Feiteng E2000S and other chips.

[0092] Furthermore, in the present invention, Internet users and LAN users can send data to each other. The firewall plays a protective role between the two; when Internet users send data packets to LAN users, and when LAN users send data packets to Internet users, the firewall device in the present invention will perform corresponding protection processing to prevent Internet users from sending abnormal data packets to LAN users, and to prevent LAN users from sending abnormal data packets to Internet users.

[0093] Based on the first embodiment of the protection method of the present invention, in the second embodiment of the protection method of the present invention, the firewall device includes a plurality of cascaded firewall modules; at least one firewall module is connected to the management module as a main firewall module, and the remaining firewall modules are connected to the main firewall module as slave firewall modules;

[0094] The step of receiving a data packet through the data interface expansion module of the firewall module in step S30 includes:

[0095] Step S31, the main firewall module monitors the network traffic in real time, and distributes each data packet to the data interface expansion module of each firewall module according to the network traffic for receiving and performing protection processing.

[0096] In the present invention, at least one firewall module serves as a main firewall module, the main firewall module is connected to the baseboard management controller of the management module, and the remaining firewall modules serve as slave firewall modules, connected to the main firewall module.

[0097] The baseboard management controller is connected to the host computer and is used to receive instructions from the host computer and send the security policy deployed by the host computer to the main firewall module. The main firewall module sends the security policy deployed by the host computer to the slave firewall module.

[0098] According to the actual situation of network traffic and the task situation of each firewall module, the main firewall module distributes data packets to each firewall module (which may include the main firewall module or not) to achieve task balance among the firewall modules.

[0099] Based on the first embodiment to the second embodiment of the protection method of the present invention, in the third embodiment of the protection method of the present invention, the method further includes:

[0100] Step S40, through the management module, authorizing the local area network user to query the existing applications and rules of the management module and authorizing the security policy upgrade;

[0101] Step S50, through the management module, the software monitoring and hardware monitoring of the firewall device are performed, and the basic maintenance management of the firewall device is performed, wherein the basic maintenance management includes system backup, system recovery, system upgrade, sound and light alarm and start and stop control of each firewall module.

[0102] The firewall system of the present invention includes a management system and a security protection system. The software modules of the firewall system are as follows: Figure 2 As shown. The management system provides administrators with management functions such as resource management, authorization management, system management, and log management. It can set policies, rules, and parameters related to identity authentication and access control, manage and maintain the firewall module, and provide a supporting environment for the operation of the application access control subsystem.

[0103] Specifically, the management module performs temperature detection, voltage detection, and other operating parameter detections on the firewall device to determine whether each component in the firewall device is operating normally through the operating parameter detection.

[0104] For example, when the management module detects that the temperature of the firewall device is abnormal, it controls the fan speed according to the specific temperature information and compares the temperature information with the set temperature threshold. When there is a firewall module whose temperature exceeds the temperature threshold (it can be considered that when the processor temperature of the firewall module exceeds the temperature threshold, the firewall module is overheated), the firewall module with the abnormal temperature can be restarted or shut down.

[0105] For another example, the management module detects the voltage of the firewall device through an analog-to-digital converter. When there is a firewall module with abnormal voltage, an alarm signal can be issued, and / or the firewall module with abnormal voltage can be restarted or shut down.

[0106] Furthermore, the host computer can also remotely restart or shut down a specified firewall module through the management module.

[0107] Based on the first to third embodiments of the protection method of the present invention, in a fourth embodiment of the protection method of the present invention, the method further includes the following steps:

[0108] Step S60, controlling the access rights of users outside the LAN to the LAN through the firewall module, and performing IP address resolution on all data packets passing through the firewall device to allocate user access rights;

[0109] Step S70, monitoring the traffic data in real time through the firewall module to analyze abnormal events according to the traffic data;

[0110] Step S80, performing virus protection through the firewall module, establishing a latest signature feature library in the firewall module, and comparing and analyzing the data packet with the latest signature feature library to detect malicious intrusion;

[0111] Step S90: Reporting the abnormal event to the management module through the firewall module to remind the management user to update the security policy of the firewall module.

[0112] With the support of policies, rules and configurations provided by the management system, the security protection system provides access control, data monitoring, virus protection, and reports system status and behavior logs.

[0113] The firewall's signature library is a key component of the firewall system for identifying and blocking known malicious activities. This library contains a series of predefined patterns, rules or "signatures" that represent the characteristics of known network attacks, malware, viruses or other security threats. When network packets pass through the firewall, the firewall checks whether these packets match any signatures in the signature library.

[0114] Based on the second embodiment of the protection method of the present invention, in a fifth embodiment of the protection method of the present invention, the step of forwarding the data packet processed by the protection to the target receiving end of the data packet in step S30 includes:

[0115] Step S32, determining whether the received data packet is included in the status detection table by the firewall module;

[0116] Step S33, if it is included in the state detection table, the data packet is allowed to pass the state detection, and the data packet is forwarded to the target receiving end of the data packet, and the data packet is backed up;

[0117] Step S34, if it is not included in the state detection table, determine whether the security policy rule has been matched to the data packet;

[0118] Step S35, if the data packet matches the security policy rule, forwarding the data packet to the target receiving end of the data packet, backing up the data packet, and recording according to the data packet to update the status detection table;

[0119] Step S36, judging whether abnormal data forwarding is performed according to the forwarded data packet, and if so, recording the abnormal data forwarding event to update the security policy;

[0120] Step S37: If the data packet does not match the security policy rule, the data packet is discarded.

[0121] The state inspection table of the firewall is the core component of the state inspection firewall, which is used to track and manage the state of network connections. The state inspection firewall not only filters data packets based on static rules, but also monitors the life cycle of network connections by maintaining a state table, from connection establishment to data transmission until connection termination.

[0122] In this embodiment, in step S36, the forwarded data packet is also detected to determine whether abnormal data forwarding is performed. In this detection of the data packet, it is necessary to determine whether the target receiving end of the data packet has received a data packet of a different size from the data size allowed to be forwarded. If so, it is determined that abnormal data forwarding is performed. At this time, it is considered that the data packet corresponding to the abnormal data forwarding belongs to an attack behavior that bypasses the security rules, and the abnormal data forwarding event needs to be recorded to update the security policy, so as to prevent this type of data packet from bypassing the security rules and forwarding next time.

[0123] Based on the fourth embodiment of the protection method of the present invention, in a sixth embodiment of the protection method of the present invention, step S70 includes:

[0124] Step S71, monitoring the corresponding network traffic in real time through the firewall module;

[0125] Step S72, according to the network traffic, determining the traffic of the network traffic user and each LAN user sending data packets to each of the firewall modules respectively;

[0126] Step S73, analyzing traffic anomalies according to changes in the traffic of data packets sent by each firewall module over time.

[0127] The monitoring of network traffic in step S71 includes monitoring the fluctuation of network traffic received by each firewall module over time at each time point. When an abnormal fluctuation occurs, it is considered as an abnormal traffic event.

[0128] Based on the second embodiment of the protection method of the present invention, in a seventh embodiment of the protection method of the present invention, the method further includes:

[0129] Step S100, obtaining various firewall tasks and obtaining execution requirements of various firewall tasks;

[0130] Step S110, compiling a firewall task list according to various firewall tasks;

[0131] Step S120, obtaining the current task amount of each firewall module;

[0132] Step S130, according to the current task volume of each firewall module and the execution requirements of each firewall task, all the firewall modules are arranged to form different execution sequences for each firewall task, wherein the execution sequence of each firewall task records the execution order of each firewall module; the execution order refers to the arrangement order suitable for executing the corresponding firewall task. For example, if the execution requirement of the firewall task is that the firewall module load is small, then the execution sequence of the firewall task records the order of the load of each firewall module from small to large.

[0133] Step S140, arranging the execution sequence corresponding to each firewall task into the corresponding firewall task in the task list to form an execution sequence list for each firewall task;

[0134] Step S150, when a new firewall task is received, the new firewall task is assigned to a firewall module at a set position in the corresponding execution sequence according to the execution sequence list and the firewall task type corresponding to the new firewall task.

[0135] In this embodiment, the firewall includes multiple firewall tasks, and the execution requirements of each firewall task put forward different requirements on the resources and load of the firewall module. Therefore, according to the different resources and loads of each firewall module, the arrangement sequence suitable for executing each firewall task is different.

[0136] For each firewall task, a corresponding execution sequence is formed. When a new firewall task comes down, the firewall module at the set position is found according to the corresponding arrangement sequence. It is the module suitable for receiving the firewall task, which is conducive to optimizing the task allocation of the firewall device. The set position can be set as needed. For example, the set position can be the first, second, third, or other positions. When the execution requirements of the firewall task are modified, the corresponding execution sequence will also be rearranged. When the situation of the firewall module changes, the execution sequence will also be rearranged. For example, when the load situation of each firewall module changes, the execution sequence corresponding to the load situation will also be rearranged.

[0137] Based on the second embodiment of the protection method of the present invention, in an eighth embodiment of the protection method of the present invention, the method further includes:

[0138] Step S160, collecting known malicious traffic samples and normal traffic samples, and creating a training data set based on the malicious traffic samples and the normal traffic samples;

[0139] Step S170, extracting data features from the data packets corresponding to the malicious traffic samples and the normal traffic samples, respectively, wherein the data features include: at least one of source IP, destination IP, port number, protocol type, data packet length, data packet frequency, timestamp, and digital certificate information;

[0140] Step S180, constructing a machine model for identifying the risk type of a data packet;

[0141] Step S190, using the data packets corresponding to the malicious traffic samples and the normal traffic samples as input data, using the data packet risk type as output data, and training the machine model to obtain a machine model for identifying the data packet risk type; wherein the data packet risk type is a risk level type manually labeled according to the data features of the data packet;

[0142] Step S200, obtaining the average historical traffic-time fluctuation curve of each firewall module in the historical period;

[0143] Step S210, forming an average historical total flow-time fluctuation curve of the firewall device according to the average historical flow-time fluctuation curve of each firewall module; wherein the average historical total flow-time fluctuation curve of the firewall device is obtained by summing the average historical flow-time fluctuation curves of each firewall module.

[0144] Step S220, obtaining the real-time traffic-time fluctuation curve of each firewall module in the current period;

[0145] Step S230, at the rising moment when the real-time traffic-time fluctuation curve of at least one firewall module rises, determine whether the total traffic value of the firewall device at the rising moment exceeds the traffic value at the corresponding moment of the average historical total traffic-time fluctuation curve; wherein the total traffic value of the firewall device at the rising moment is obtained by summing the real-time traffic of each firewall module at the rising moment.

[0146] Step S240, if yes, issue a data packet risk detection instruction to input the received data packet into the machine model through the main firewall module, thereby outputting the risk level type corresponding to each data packet;

[0147] Step S250, according to the risk level type corresponding to the data packet, the data packet reaching the preset risk level type is sent to the designated firewall module, and in each firewall module, the data packet is sorted from high to low according to the risk level type corresponding to the data packet, so that the firewall module gives priority to processing the data packet with a high risk level.

[0148] Furthermore, it also includes:

[0149] Step S260, at the falling moment when the real-time total flow-time fluctuation curve of at least one firewall module falls, determine whether the total flow value of the firewall device at the falling moment is lower than the flow value at the corresponding moment of the average historical total flow-time fluctuation curve; wherein, the total flow value of the firewall device at the falling moment is obtained by summing the real-time flow of each firewall module at the falling moment.

[0150] Step S270: If yes, issue a stop data packet risk detection instruction.

[0151] In this embodiment, the risk level of each data packet is predicted during the period of rising data traffic, and the firewall module is enabled to process data packets with high risk levels first, which is conducive to detecting malicious intrusion events in advance and strengthening the protection of the firewall. In addition, time is reserved for the management system to detect malicious intrusions in advance, report them, and defend against them.

[0152] Moreover, packet risk detection is not a continuous detection, but is triggered and exited according to the traffic changes in the firewall module and the total traffic changes of the firewall device. It is triggered adaptively according to traffic changes, which neither wastes computing resources during idle time nor starts in advance when traffic anomalies occur. It realizes the adaptive and intelligent switching and exit of the firewall's more advanced defense functions (automatically triggering and exiting the packet risk detection function, and giving priority to processing high-risk packets in each firewall module).

[0153] See also Figure 1 , in order to achieve the above object, the present invention also proposes a firewall device, applying any of the above protection methods; the firewall device includes a management module and a firewall module that are independent of each other and interconnected;

[0154] The firewall module includes a processor, and a memory module, a BIOS module, a data interface expansion module and a storage module respectively connected to the processor;

[0155] The management module includes a baseboard management controller, and a management interface module, a status monitoring module and a firmware flash memory chip respectively connected to the baseboard management controller;

[0156] The management module is used to connect to the host computer through the management interface module, and the firewall module is used to receive data packets through the data interface expansion module.

[0157] Preferably, the data interface expansion module includes an intranet expansion interface and an extranet expansion interface, the management interface module includes a management network port and a heartbeat network port connected to the baseboard management controller through a gigabit network, a USB Type-A interface connected to the baseboard management controller through a USB interface, and an RJ45 interface and a Console interface connected to the baseboard management controller through a UART interface.

[0158] To achieve the above objectives, the present invention also proposes a firewall system, applying any of the protection methods described above; the firewall system includes a management system and a security protection system; the processor runs the management system, and the baseboard management controller runs the security protection system.

[0159] The firewall system of the present invention includes a management system and a security protection system. The management system provides administrators with management functions such as resource management, authorization management, system management, and log management. It can set policies, rules, and parameters related to identity authentication and access control, manage and maintain firewall modules, and provide a support environment for the operation of application access control subsystems. With the support of policies, rules, and configurations provided by the management system, the security protection system provides access control, data monitoring, virus protection, and reports system status and behavior logs. The software modules of the firewall system are as follows: Figure 2 shown.

[0160] The effects achieved by the present invention are as follows: the firewall device is designed based on domestically produced CPU and BMC chips, is 100% domestically produced, fully implements the trusted computing security strategy, can effectively protect information security, adopts high-performance server CPU and PCIe5.0 expansion interface, can meet the high-performance scenarios of firewalls, and CPU cascading technology can further improve firewall performance, which can effectively solve the hardware security and performance problems of existing firewalls.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device to enter the method described in each embodiment of the present invention.

[0162] In the description of this specification, the description with reference to the terms "an embodiment", "another embodiment", "other embodiments", or "first embodiment to Xth embodiment" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, method steps or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0163] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0164] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0165] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A protection method, characterized in that: Used to perform firewall protection functions through a firewall device; the firewall device includes a management module and a firewall module that are independent of each other and interconnected, and the firewall device includes a plurality of cascaded firewall modules; at least one firewall module is connected to the management module as a main firewall module, and the remaining firewall modules are connected to the main firewall module as slave firewall modules; The firewall module includes a processor, and a memory module, a BIOS module, a data interface expansion module and a storage module respectively connected to the processor; The management module includes a baseboard management controller, and a management interface module, a status monitoring module and a firmware flash memory chip respectively connected to the baseboard management controller; The method comprises the following steps: Deploy the security policy sent by the host computer to the firewall module through the management interface of the management module; Detecting, by the management module, whether the firewall module meets the network access condition, wherein when the network access condition is met, the designated hardware status of the firewall module is normal, and the security policy of the firewall module has been deployed; If so, the management module allows network access to the firewall module to receive data packets through the data interface extension module of the firewall module, and forwards the data packets that have passed the protection processing to the target receiving end of the data packets; The step of receiving data packets through the data interface extension module of the firewall module includes: the main firewall module monitors network traffic in real time, and distributes each data packet to the data interface extension module of each firewall module for receiving according to the network traffic, so as to perform protection processing; The method further comprises: Collect known malicious traffic samples and normal traffic samples, and create a training data set based on the malicious traffic samples and normal traffic samples; Extracting data features from data packets corresponding to malicious traffic samples and normal traffic samples, respectively, wherein the data features include: at least one of source IP, destination IP, port number, protocol type, data packet length, data packet frequency, timestamp, and digital certificate information; Build machine models for identifying risk types of data packets; The data packets corresponding to the malicious traffic samples and the normal traffic samples are used as input data, and the risk type of the data packet is used as output data, and the machine model is trained to obtain a machine model for identifying the risk type of the data packet; wherein the risk type of the data packet is a risk level type manually labeled according to the data features of the data packet; Obtain the average historical traffic-time fluctuation curve of each firewall module in the historical period; According to the average historical traffic-time fluctuation curve of each firewall module, the average historical total traffic-time fluctuation curve of the firewall device is formed; Obtain the real-time traffic-time fluctuation curve of each firewall module in the current period; At the rising moment when the real-time traffic-time fluctuation curve of at least one firewall module rises, determining whether the total traffic value of the firewall device at the rising moment exceeds the traffic value at the corresponding moment of the average historical total traffic-time fluctuation curve; If so, issuing a data packet risk detection instruction to input the received data packet into the machine model through the main firewall module, thereby outputting the risk level type corresponding to each data packet; According to the risk level type corresponding to the data packet, the data packet that reaches the preset risk level type will be sent to the designated firewall module, and in each firewall module, the data packet is sorted from high to low according to the risk level type corresponding to the data packet, so that the firewall module gives priority to processing data packets with high risk levels.

2. The protection method according to claim 1, characterized in that: The method further comprises the following steps: Through the management module, authorized LAN users can query the existing applications and rules of the management module and authorize security policy upgrades; Through the management module, the software and hardware of the firewall device are monitored, and basic maintenance and management of the firewall device are performed, wherein the basic maintenance and management includes system backup, system recovery, system upgrade, sound and light alarms, and start and stop control of each firewall module.

3. The protection method according to claim 1, characterized in that: The method further comprises the following steps: Through the firewall module, the access rights of users outside the LAN to the LAN are controlled, and IP address resolution is performed on all data packets passing through the firewall device to allocate user access rights; By means of the firewall module, traffic data is monitored in real time to analyze abnormal events according to the traffic data; Virus protection is performed through the firewall module, and the latest signature feature library is established in the firewall module. The data packet is compared and analyzed with the latest signature feature library to detect malicious intrusion; The abnormal event is reported to the management module through the firewall module to remind the management user to update the security policy of the firewall module.

4. The protection method according to claim 1, characterized in that: The step of forwarding the data packet that has passed the protection processing to a target receiving end of the data packet comprises: Determining, by the firewall module, whether the received data packet is included in the state detection table; If it is included in the state detection table, the data packet is allowed to pass the state detection, and the data packet is forwarded to the target receiving end of the data packet, and the data packet is backed up; If it is not included in the state detection table, determining whether the security policy rule has been matched to the data packet; If the data packet matches the security policy rule, the data packet is forwarded to the target receiving end of the data packet, the data packet is backed up, and a state detection table is updated by recording according to the data packet; According to the forwarded data packets, determine whether abnormal data forwarding is performed, and if so, record the abnormal data forwarding event to update the security policy; If the data packet does not match the security policy rule, the data packet is discarded.

5. The protection method according to claim 3, characterized in that: The step of monitoring the traffic data in real time through the firewall module to analyze abnormal events according to the traffic data includes: Monitor the corresponding network traffic in real time through the firewall module; According to the network traffic, determine the traffic of the network traffic user and each LAN user sending data packets to each of the firewall modules respectively; Analyze traffic anomalies based on the changes in the traffic volume of data packets sent by each firewall module over time.

6. The protection method according to claim 1, characterized in that: The method further comprises: Obtain various firewall tasks and the execution requirements of each firewall task; Compile a firewall task list based on various firewall tasks; Obtaining the current task volume of each of the firewall modules; According to the current task volume of each firewall module and the execution requirements of each firewall task, all the firewall modules are arranged to form different execution sequences for each firewall task, wherein the execution sequence of each firewall task records the execution order of each firewall module; Arrange the execution sequence corresponding to each firewall task into the corresponding firewall task in the task list to form an execution sequence list for each firewall task; When a new firewall task is received, the new firewall task is assigned to a firewall module at a set position in the corresponding execution sequence according to the execution sequence list and the firewall task type corresponding to the new firewall task.

7. A firewall device, characterized in that: The protection method according to any one of claims 1 to 6 is applied; the firewall device comprises a management module and a firewall module which are independent of each other and connected to each other; the firewall device comprises a plurality of cascaded firewall modules; at least one firewall module is connected to the management module as a main firewall module, and the remaining firewall modules are connected to the main firewall module as slave firewall modules; The firewall module includes a processor, and a memory module, a BIOS module, a data interface expansion module and a storage module respectively connected to the processor; The management module includes a baseboard management controller, and a management interface module, a status monitoring module and a firmware flash memory chip respectively connected to the baseboard management controller; The management module is used to connect to the host computer through the management interface module, and the firewall module is used to receive data packets through the data interface expansion module.

8. A firewall system, characterized in that: The protection method described in any one of claims 1 to 6 is applied; the firewall system includes a management system and a security protection system; the processor runs the management system, and the baseboard management controller runs the security protection system.

Citation Information

Patent Citations

  • Firewall based on multiprocessor architecture

    CN109558366A

  • Firewall system of user mode pipeline architecture

    CN111614631A