Firewall configuration management method based on chained retrieval

By parsing firewall and routing device configuration files using a chain-based retrieval method, generating configuration tables, and establishing security domain mappings, the efficiency and quality issues in firewall configuration management are resolved, enabling fast and accurate configuration management.

CN118921208APending Publication Date: 2024-11-08AGRI BANK OF CHINA CO LTD FUJIAN BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411049143.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Existing technologies suffer from inefficiency and poor quality in firewall configuration management, especially when dealing with multiple firewalls or routing configurations and address translation rules, which can easily lead to mismatches, omissions, and policy conflicts.

Method used

A chain-based retrieval method is adopted to generate a configuration table and establish security domain correspondence by parsing the configuration files of firewalls and routing devices, and to perform correlation retrieval to achieve fast and accurate configuration management.

Benefits of technology

It improves the efficiency and quality of firewall configuration management, avoids errors and omissions caused by traditional one-by-one retrieval, and enables fast and accurate configuration item query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921208A_ABST
    Figure CN118921208A_ABST
Patent Text Reader

Abstract

The invention provides a firewall configuration management method based on chained retrieval in the technical field of firewall management. The firewall configuration management method comprises the steps that S1, configuration files of a firewall and routing equipment are acquired and analyzed to obtain corresponding configuration items; s2, generating a firewall configuration table based on the configuration items of the routing rule, the address translation rule and the security policy, and generating a routing device configuration table based on the configuration items of the routing device port and the routing rule of the routing device; s3, analyzing the configuration table based on the firewall port and the routing equipment port to obtain a security domain corresponding relation; s4, performing association retrieval on the configuration items in the firewall configuration table to obtain a first association retrieval result; step S5, performing chain retrieval on the security policy based on the first association retrieval result and the corresponding relationship of each security domain to obtain a second association retrieval result; and step S6, performing configuration management based on the firewall configuration table and the second association retrieval result. The method has the advantage that the firewall configuration management efficiency and quality are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of firewall management, and in particular to a firewall configuration management method based on chain retrieval. Background Art

[0002] Firewalls are software or devices that connect internal networks and external networks and protect internal networks from external attacks. They are also often used for network partitioning in local area networks, so multiple firewalls are often deployed in local area networks.

[0003] Routing, address translation, and security policies are configuration items that implement firewall functions. In situations such as server offline, server IP address change, and new services added to the original server, it is often necessary to analyze based on the existing firewall configuration and adjust the configuration based on the analysis results. Traditionally, when managing firewall configuration, you can only manually search for configurations on a single firewall one by one, and simply compare without associating retrieval to provide further relevant information. When multiple firewalls are involved or firewall routing configurations and address translation rules are involved, mismatches, omissions, and policy conflicts often occur due to omissions in manual search and analysis.

[0004] Therefore, how to provide a firewall configuration management method based on chain retrieval to improve the efficiency and quality of firewall configuration management has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a firewall configuration management method based on chain retrieval to improve the efficiency and quality of firewall configuration management.

[0006] The present invention provides a firewall configuration management method based on chain retrieval, comprising the following steps:

[0007] Step S1, obtaining each firewall configuration file and routing device configuration file in the local area network, parsing each of the firewall configuration files to obtain configuration items including at least firewall ports, security domains, routing rules, address translation rules and security policies, and parsing each routing device configuration file to obtain configuration items including at least routing device ports and routing device routing rules;

[0008] Step S2: generating a plurality of firewall configuration tables based on the configuration items of the routing rules, address translation rules and security policies of the firewall, and generating a plurality of routing device configuration tables based on the configuration items of the routing device ports and routing device routing rules;

[0009] Step S3, based on the configuration table of each firewall port and routing device port, the corresponding relationship of the security domains is obtained by parsing;

[0010] Step S4: performing an associated search on the configuration items in the firewall configuration table based on the initial search condition to obtain a first associated search result;

[0011] Step S5: performing a chain search on the security policy based on the first association search result and the corresponding relationship between each security domain to obtain a second association search result;

[0012] Step S6: performing firewall configuration management based on the firewall configuration table and the second associated search result.

[0013] Furthermore, the step S1 is specifically as follows:

[0014] Obtain each firewall configuration file in the local area network through the security center or command line tool, parse each firewall configuration file to obtain configuration items including at least firewall ports, security domains, routing rules, address translation rules and security policies; obtain each routing device configuration file in the local area network, parse each routing device configuration file to obtain configuration items including at least routing device ports and routing device routing rules.

[0015] Furthermore, the step S2 is specifically as follows:

[0016] Create several firewall configuration tables and routing device configuration tables for storing different types of configuration items;

[0017] Fill the configuration items of each of the firewall ports, security zones, routing rules, address translation rules and security policies into the corresponding firewall configuration table;

[0018] The configuration items of each of the routing device ports and routing device routing rules are filled into the corresponding routing device configuration table.

[0019] Furthermore, the step S4 is specifically as follows:

[0020] The initial search condition whose content is an IP address or a network quintuple containing any elements is obtained, and based on the initial search condition, the configuration items of the routing rules, address conversion rules and security policies of the same firewall in the firewall configuration table are associated and searched to obtain a first associated search result.

[0021] Furthermore, the step S5 is specifically as follows:

[0022] Based on the correspondence between the first associated search result and each security domain, a horizontal search is performed on the security domain of the corresponding other firewalls for each security policy in the first associated search result in turn. If a corresponding security policy exists, an associated search is performed on the firewall to which the security policy belongs. A new round of horizontal search and associated search is performed on the security policy based on the associated search result until there is no corresponding security policy on the security domain, and a second associated search result is obtained.

[0023] The advantages of the present invention are:

[0024] The corresponding configuration items are obtained by obtaining the configuration files of each firewall and the configuration files of the routing device in the local area network and parsing them; then, a number of firewall configuration tables are generated based on the configuration items of each port, security domain, routing rule, address translation rule and security policy; a number of routing device configuration tables are generated based on the configuration items of each routing device port and routing device routing rule; based on the configuration tables of each firewall port and routing device port, the corresponding relationship of the security domain is parsed; then, based on the initial search condition, the configuration items in the firewall configuration table are associated and searched to obtain the first associated search result; based on the first associated search result and the corresponding relationship of each security domain, the security policy is chained and searched to obtain to the second associated search result, and finally perform firewall configuration management based on the firewall configuration table and the second associated search result; that is, the configuration items carried by each firewall configuration file are stored in the firewall configuration table, and the configuration items in the firewall configuration table are associated and searched based on the initial search conditions to obtain the first associated search result, and then the security policy is chained and searched based on the first associated search result and the corresponding relationship between each security domain to obtain the second associated search result, and subsequently the associated configuration items can be quickly and accurately queried based on the firewall configuration table and the second associated search result, avoiding errors and omissions caused by traditional one-by-one retrieval, and ultimately greatly improving the efficiency and quality of firewall configuration management. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0026] Figure 1 The present invention is a flowchart of a firewall configuration management method based on chain retrieval.

[0027] Figure 2 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0028] The technical solution in the embodiment of the present application has the following overall idea: the configuration items carried by each firewall configuration file are stored in the firewall configuration table, and the configuration items in the firewall configuration table are associated and searched based on the initial search conditions to obtain a first associated search result, and then the security policy is chained and searched based on the first associated search result and the corresponding relationship between each security domain to obtain a second associated search result. Subsequently, the associated configuration items can be quickly and accurately queried based on the firewall configuration table and the second associated search result, avoiding errors and omissions caused by traditional one-by-one searches, so as to improve the efficiency and quality of firewall configuration management.

[0029] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a firewall configuration management method based on chain retrieval of the present invention includes the following steps:

[0030] Step S1, obtaining each firewall configuration file and routing device configuration file in the local area network, parsing each of the firewall configuration files to obtain configuration items including at least firewall ports, security domains, routing rules, address translation rules and security policies, and parsing each routing device configuration file to obtain configuration items including at least routing device ports and routing device routing rules;

[0031] Step S2: generating a plurality of firewall configuration tables based on the configuration items of the routing rules, address translation rules and security policies of the firewall, and generating a plurality of routing device configuration tables based on the configuration items of the routing device ports and routing device routing rules;

[0032] Step S3, based on the configuration table of each firewall port and routing device port, the corresponding relationship of the security domains is obtained by parsing;

[0033] Step S4: performing an associated search on the configuration items in the firewall configuration table based on the initial search condition to obtain a first associated search result;

[0034] Step S5: performing a chain search on the security policy based on the first association search result and the corresponding relationship between each security domain to obtain a second association search result;

[0035] Step S6: performing firewall configuration management based on the firewall configuration table and the second associated search result.

[0036] The step S1 is specifically as follows:

[0037] Obtain each firewall configuration file in the local area network through the security center or command line tool, and parse each firewall configuration file through regular expressions to obtain configuration items including at least firewall ports, security domains, routing rules, address translation rules, and security policies; obtain each routing device configuration file in the local area network, parse each routing device configuration file to obtain configuration items including at least routing device ports and routing device routing rules.

[0038] The routing device is a three-layer switch or a router.

[0039] The step S2 is specifically as follows:

[0040] Create several firewall configuration tables and routing device configuration tables for storing different types of configuration items;

[0041] Fill the configuration items of each firewall port, security zone, routing rule, address translation rule and security policy into the corresponding firewall configuration table, and convert the IP addresses carried in the firewall routing rule, address translation rule and security policy into decimal for storage; that is, store the configuration items of each firewall configuration file in a unified format into the firewall configuration table;

[0042] The configuration items of each of the routing device ports and routing device routing rules are filled into the corresponding routing device configuration table.

[0043] The step S3 is specifically as follows:

[0044] Based on the configuration items of each of the firewall ports and the routing device ports, in combination with each of the routing rules, the connection relationship between each of the firewall ports and the routing device ports is obtained through analysis, and then the corresponding relationship between the security domains is obtained.

[0045] If there is a valid link between the ports under the two security domains, it is considered that there is a corresponding relationship between them, otherwise there is no corresponding relationship.

[0046] A security domain correspondence matrix of a firewall is created, and the security domain correspondence is stored in the security domain correspondence matrix.

[0047] The step S4 is specifically as follows:

[0048] The initial search condition whose content is an IP address or a network quintuple containing any elements is obtained, and based on the initial search condition, the configuration items of the routing rules, address conversion rules and security policies of the same firewall in the firewall configuration table are associated and searched to obtain a first associated search result.

[0049] For example, when retrieving an IP address as a converted address in an address conversion rule, the address conversion rule, routing rule and security policy applicable to the address conversion rule related to the IP address can be obtained by association retrieval.

[0050] The step S5 is specifically as follows:

[0051] Based on the correspondence between the first associated search result and each security domain, a horizontal search is performed on the security domain of the corresponding other firewalls for each security policy in the first associated search result in turn. If a corresponding security policy exists, an associated search is performed on the firewall to which the security policy belongs. A new round of horizontal search and associated search is performed on the security policy based on the associated search result until there is no corresponding security policy on the security domain, and a second associated search result is obtained.

[0052] In specific implementation, the chain search for a certain access relationship is not repeated on the firewall where the search has already been performed; the associated search for a certain IP is not repeated on the firewall where the search has already been performed.

[0053] The step S6 is specifically as follows:

[0054] Based on the firewall configuration table and the second associated search result, the configuration items of all firewalls related to the initial search condition are displayed, and according to the security domain correspondence, the security policies corresponding to the same access relationship are displayed in the form of a security policy chain.

[0055] In summary, the advantages of the present invention are:

[0056] The corresponding configuration items are obtained by obtaining the configuration files of each firewall and the configuration files of the routing device in the local area network and parsing them; then, a number of firewall configuration tables are generated based on the configuration items of each port, security domain, routing rule, address translation rule and security policy; a number of routing device configuration tables are generated based on the configuration items of each routing device port and routing device routing rule; based on the configuration tables of each firewall port and routing device port, the corresponding relationship of the security domain is parsed; then, based on the initial search condition, the configuration items in the firewall configuration table are associated and searched to obtain the first associated search result; based on the first associated search result and the corresponding relationship of each security domain, the security policy is chained and searched to obtain to the second associated search result, and finally perform firewall configuration management based on the firewall configuration table and the second associated search result; that is, the configuration items carried by each firewall configuration file are stored in the firewall configuration table, and the configuration items in the firewall configuration table are associated and searched based on the initial search conditions to obtain the first associated search result, and then the security policy is chained and searched based on the first associated search result and the corresponding relationship between each security domain to obtain the second associated search result, and subsequently the associated configuration items can be quickly and accurately queried based on the firewall configuration table and the second associated search result, avoiding errors and omissions caused by traditional one-by-one retrieval, and ultimately greatly improving the efficiency and quality of firewall configuration management.

[0057] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A firewall configuration management method based on chain retrieval, Features: The steps include: Step S1, obtaining each firewall configuration file and routing device configuration file in the local area network, parsing each of the firewall configuration files to obtain configuration items including at least firewall ports, security domains, routing rules, address translation rules and security policies, and parsing each routing device configuration file to obtain configuration items including at least routing device ports and routing device routing rules; Step S2: generating a plurality of firewall configuration tables based on the configuration items of the routing rules, address translation rules and security policies of the firewall, and generating a plurality of routing device configuration tables based on the configuration items of the routing device ports and routing device routing rules; Step S3, based on the configuration table of each firewall port and routing device port, the corresponding relationship of the security domains is obtained by parsing; Step S4: performing an associated search on the configuration items in the firewall configuration table based on the initial search condition to obtain a first associated search result; Step S5: performing a chain search on the security policy based on the first association search result and the corresponding relationship between each security domain to obtain a second association search result; Step S6: performing firewall configuration management based on the firewall configuration table and the second associated search result.

2. A firewall configuration management method based on chain retrieval as claimed in claim 1, Features: The step S1 is specifically as follows: Obtain each firewall configuration file in the local area network through the security center or command line tool, parse each firewall configuration file to obtain configuration items including at least firewall ports, security domains, routing rules, address translation rules and security policies; obtain each routing device configuration file in the local area network, parse each routing device configuration file to obtain configuration items including at least routing device ports and routing device routing rules.

3. A firewall configuration management method based on chain retrieval as claimed in claim 1, Features: The step S2 is specifically as follows: Create several firewall configuration tables and routing device configuration tables for storing different types of configuration items; Fill the configuration items of each of the firewall ports, security zones, routing rules, address translation rules and security policies into the corresponding firewall configuration table; The configuration items of each of the routing device ports and routing device routing rules are filled into the corresponding routing device configuration table.

4. A firewall configuration management method based on chain retrieval as claimed in claim 1, Features: The step S4 is specifically as follows: The initial search condition whose content is an IP address or a network quintuple containing any elements is obtained, and based on the initial search condition, the configuration items of the routing rules, address conversion rules and security policies of the same firewall in the firewall configuration table are associated and searched to obtain a first associated search result.

5. A firewall configuration management method based on chain retrieval as claimed in claim 1, Features: The step S5 is specifically as follows: Based on the correspondence between the first associated search result and each security domain, a horizontal search is performed on the security domain of the corresponding other firewalls for each security policy in the first associated search result in turn. If a corresponding security policy exists, an associated search is performed on the firewall to which the security policy belongs. A new round of horizontal search and associated search is performed on the security policy based on the associated search result until there is no corresponding security policy on the security domain, and a second associated search result is obtained.