Firewall management method, system, electronic device and storage medium
The access policy is generated and sent through the system operation and maintenance platform, so that the target firewall can be automatically executed, which solves the errors and long time-consuming problems caused by the reliance on manual input for firewall activation in the existing technology, and realizes automated and efficient firewall management.
Patent Information
- Application Number
- CN202210519188.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-05-12
AI Technical Summary
In the existing technology, firewall activation relies on manual input of access policies, which has errors and takes a long time. It is especially cumbersome when there are multiple firewalls and different manufacturers.
Obtain the target network address and associated firewall through the system operation and maintenance platform, generate and send access policies, and enable the target firewall to automatically execute the policy, avoiding manual input and multiple logins.
It realizes the automated firewall activation process, reduces errors and time-consuming, improves management efficiency, and unifies firewall management of different manufacturers.
Smart Images

Figure CN115225307B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network security management, and in particular to a firewall management method, system, electronic device and storage medium. Background Art
[0002] Firewalls are the most basic equipment in computer room construction and are an important checkpoint for security protection. Internet companies often have their own data centers, which are usually divided into different areas. Access between different areas is restricted by default, and firewalls need to be opened. However, depending on the equipment and firewall manufacturers, the access policies that firewalls rely on are also different. In most existing technologies, network administrators manually enter the access policies that firewalls rely on to open, and then open the firewall. In the existing technology, manual input increases the possibility of errors, and the network opening between some areas involves multiple firewalls, so manually entering access policies will consume a lot of time for network administrators. Summary of the invention
[0003] The main technical problem solved by the present application is to provide a firewall management method, system, electronic device and storage medium, which can automatically activate the firewall.
[0004] The first aspect of the present application provides a firewall management method, which includes: obtaining a target network address of a firewall to be opened and a target firewall associated with the target network address; generating an access policy regarding the target network address for the target firewall; and sending the access policy to the target firewall so that the target firewall executes the access policy.
[0005] A second aspect of the present application provides a firewall management method, which includes: using a process management system to obtain data to be activated, and sending the data to be activated to a data storage system, wherein the data to be activated includes a target network address; the data storage system obtains identification information of the corresponding target firewall based on the data to be activated, and sends the data to be activated and the target firewall to a system operation and maintenance platform; the system operation and maintenance platform receives the data to be activated and the identification information of the target firewall sent by the data storage system, and generates an access policy about the target network address for the target firewall; and sends the access policy to the target firewall so that the target firewall executes the access policy.
[0006] The third aspect of the present application provides a firewall management system, which includes a process management system, a data storage system and a system operation and maintenance platform; wherein the process management system is used to obtain data to be activated and send the data to be activated to the data storage system, wherein the data to be activated includes a target network address; the data storage system is used to obtain identification information of the corresponding target firewall based on the data to be activated, and send the data to be activated and the target firewall to the system operation and maintenance platform; the system operation and maintenance platform is used to execute the method described in the first aspect above.
[0007] A fourth aspect of the present application provides an electronic device, which includes a memory and a processor coupled to each other, the memory storing program instructions, and the processor being used to execute the program instructions stored in the memory to implement the methods described in the first and second aspects above.
[0008] In a fifth aspect, the present application provides a computer-readable storage medium, which is used to store program instructions, and the program instructions can be executed to implement the methods described in the first and second aspects above.
[0009] The beneficial effect of the present application is that, different from the prior art, after obtaining the target network address and the firewall associated with the target network address, the present application can generate an access policy for the target firewall regarding the target network address, and send the access policy to the target firewall so that the target firewall executes the access policy and completes the policy activation. Since the system directly sends the access policy to the firewall, errors caused by human input can be avoided, and there is no need for the user to input the access policy, and it will not take a lot of time. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a flowchart of the first implementation method of the firewall management method provided by the present application;
[0011] Figure 2 is a flowchart of an implementation method of step S120;
[0012] Figure 3 This is a schematic diagram of the target command setting page;
[0013] Figure 4 This is a schematic diagram of the target instruction setting page;
[0014] Figure 5 It is a flowchart of the third implementation method of the firewall management method provided by the present application;
[0015] Figure 6 It is a flowchart of the fourth implementation method of the firewall management method provided by the present application;
[0016] Figure 7 It is a schematic diagram of the framework of an implementation scheme of a firewall management system provided by the present application;
[0017] Figure 8 It is a schematic diagram of the framework structure of the electronic device provided by the present application;
[0018] Fig. 9 It is a schematic diagram of a framework of an implementation scheme of a computer-readable storage medium provided in the present application. DETAILED DESCRIPTION
[0019] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] It should be noted that in the embodiments of the present application, there are descriptions involving "first", "second", etc., which are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0021] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0022] The existing firewall management method requires R&D personnel to send emails to notify network administrators according to their own policy requirements; network administrators find the corresponding firewall list based on data and network deployment diagrams, log in to the corresponding web terminal of the corresponding firewall, enter the corresponding data, perform the change operation, and reply to the email to inform the R&D personnel that the processing is completed. This method has many shortcomings: such as slow response to demand changes; firewall acquisition, according to the experience of network administrators, is time-consuming and error-prone; for firewalls from multiple different manufacturers, multiple logins are required, and the operations of different manufacturers are different, and the process is cumbersome.
[0023] In order to solve the deficiencies of the prior art, the present application provides a firewall management method, which manages the firewall uniformly through a system operation and maintenance platform. When a firewall needs to be opened, the system operation and maintenance platform obtains the target network address of the firewall to be opened and the target firewall associated with the target network address, generates a corresponding access policy based on the target network address, and sends the access policy to the target firewall, so that the target firewall executes the access policy to complete the policy opening. Through the method provided by the present application, the system can generate an access policy and send the access policy to the target firewall, without the need for manual input of the access policy, thus avoiding errors caused by manual input and saving time.
[0024] See also Figure 1 , Figure 1 : is a flowchart of a first implementation of a firewall management method provided by the present application, the method comprising:
[0025] S110: Obtain a target network address of a firewall to be opened and a target firewall associated with the target network address.
[0026] The firewall management method of this embodiment can be executed by a system operation and maintenance platform (also called a sysops system). The target network address of the firewall to be opened and the target firewall associated with the target network address can be sent to the system operation and maintenance platform by other systems or input by the user.
[0027] In one embodiment, obtaining the target network address of the firewall to be activated and the target firewall associated with the target network address includes: receiving the data to be activated and the identification information of the target firewall sent by the data storage system, wherein the data to be activated is input by the user through the process management system and includes the target network address and protocol information, the target network address includes the source IP address, the destination IP address, the source port and the destination port, and the identification information of the target firewall is obtained by the data storage system based on the data to be activated. The identification information of the target firewall may include: the manufacturer of the target firewall, the model of the firewall, the operation type, etc. The data storage system may be a configuration management database (CMDB) or a Mysql (relational database management system), which is not limited here. Among them, the configuration management database can be composed of several physical databases, which form a logical entity. Multiple physical databases need to be optimized when they are integrated; the SQL language used by the relational database management system is the most commonly used standardized language for accessing databases. Due to its small size, fast speed, low total cost of ownership, and especially the open source feature, the development of small and medium-sized websites all choose MySQL as the website database; the process management system can introduce a process engine and provide automated services to facilitate users to submit applications. The data can be processed and archived after approval.
[0028] Specifically, the user logs in to the process management system, selects the network activation process, and fills in the corresponding data to be activated according to the prompts of the form stored in the process management system. The completed form is submitted to the corresponding superior leader, and after the superior leader's approval, it is transferred to the network administrator. After the network administrator checks the application specifications and finds no problems, the data to be activated is sent to the data storage system. The process management system is used to review the data to be activated, and multiple users do not need to process changes through emails or other methods, which can ensure the timeliness and accuracy of change processing.
[0029] The data storage system obtains the identification information of the target firewall that needs to be passed from the source IP address to the destination IP address, which is pre-stored in the data storage system, based on the data to be activated. Among them, the target firewall that needs to be passed from the source IP address to the destination IP address can be set by the network administrator. Each IP corresponds to a server and has two attributes of a data center and a network partition. For example, the source IP belongs to the first network partition of data center A. The network administrator can set the target firewall that needs to be passed from the source IP address to the destination IP address according to the relationship of source data center + source network partition -> destination data center + destination network partition in the computer room, and store the identification information of the target firewall in the data storage system. After the data storage system receives the data to be activated input by the user through the process management system, it obtains the identification information of the target firewall according to the data to be activated. It can be understood that the target firewall that needs to be passed from the source IP address to the destination IP address can be one or more. Furthermore, the user can also send the data to be activated to the data storage system through other platforms, or manually input the data to be activated into the data storage system, so that the data storage system obtains the data to be activated and obtains the identification information of the target firewall based on the data to be activated.
[0030] S120: Generate an access policy regarding the target network address for the target firewall.
[0031] In one embodiment, after the system operation and maintenance platform obtains the target firewall associated with the target network address, it can search for the corresponding target template data according to the manufacturer, model and operation type of the target firewall. If it does not exist, the system operation and maintenance platform will issue a prompt message to prompt the network administrator to add the target template data; if the target template data exists, the target template data is executed to obtain the first execution result; based on the first execution result, the access policy is obtained. Among them, the target template data can be obtained by artificial configuration, and the target template data can include at least one target instruction, each target instruction corresponds to at least one target command, and the execution of the target template data includes: sending each target command to the target firewall for execution to obtain the second execution result of each target command; based on the second execution result of the target command corresponding to the target instruction, the second execution result of the target command is combined in different ways using groovy code to obtain the third execution result of the target instruction, and the third execution result of each target instruction is processed (such as combined) using groovy code to obtain the first execution result. The target template data may also not include the target instruction, but directly include at least one target command, execute each target command to obtain the second execution result of each target command, and process each second execution result to obtain the first execution result.
[0032] S130: Send the access policy to the target firewall so that the target firewall executes the access policy.
[0033] The system operation and maintenance platform sends the access policy to the target firewall, so that the target firewall executes the access policy. It is understandable that there may be multiple target firewalls between the target network addresses, and multiple access policies can be obtained through the system operation and maintenance platform, and the multiple access policies are sent to the corresponding target firewalls respectively, so that the multiple firewalls respectively execute the corresponding access policies.
[0034] In this embodiment, after the system operation and maintenance platform obtains the target network address of the firewall to be opened and the target firewall associated with the target network address, it can automatically generate an access policy for the target network address with the help of groovy code, and send the access policy to the target firewall so that the target firewall executes the access policy, thereby automatically opening the target firewall. Furthermore, the operation entrances of the target protection wall are concentrated on the system operation and maintenance platform, which can be uniformly managed in batches, and users do not need to log in to the target firewall for processing, which also enhances the security of access.
[0035] See also Figure 2-4 , Figure 2 is a flowchart of an implementation method of step S120, Figure 3 This is a schematic diagram of the target command setting page. Figure 4 is a schematic diagram of a setting page of a target instruction, and step S120 may include:
[0036] S121: Search for target template data corresponding to the target firewall.
[0037] In one embodiment, the target template data can be pre-set by the network administrator and stored in the system operation and maintenance platform. It is understandable that the target template data can vary based on the manufacturer, model, etc. of the target firewall. The target template data can only include a number of target commands, or a number of target instructions, each target instruction corresponding to at least one target command. Among them, the target template data, the target command and the target instruction can all be represented by groovy code, and the several target commands include a command to obtain the interface corresponding to the source IP address of the target firewall, a command to obtain the interface corresponding to the destination IP address of the target firewall, a command to obtain the area corresponding to the source IP address of the target firewall, and a command to obtain the area corresponding to the destination IP address of the target firewall.
[0038] like Figure 3As shown, when setting the target command included in the target template data, the network administrator can set the name of the target command, the target command content, the input check script, the output check script, etc. Among them, the target command content can contain variables, and the variable can be the second execution result of the previous target command. The output check script indicates what operations need to be performed on the second execution result after the target command is executed and the corresponding second execution result is obtained. For example, the second execution result is stored in the context (which can be understood as context. If a program contains external variables, the program is incomplete and cannot run independently. In order to run the program, all the values of the external variables must be passed in. The set of these values is called context).
[0039] Furthermore, after setting several target commands, several target commands corresponding to the target instruction can be set through groovy code, and after the several target commands corresponding to the target instruction are executed, the second execution results of the several target commands are obtained from the context, and the several second execution results are passed into the groovy code of the target instruction for processing to obtain the third execution result of the target instruction. Figure 4 As shown, the target instruction can correspond to five target commands, namely, juniper-source IP traffic outbound interface, which is used to obtain the interface corresponding to the target firewall and the source IP address; juniper-destination IP traffic outbound interface, which is used to obtain the interface corresponding to the target firewall and the destination IP address; juniper-source IP corresponding area, which is used to obtain the area corresponding to the target firewall and the source IP address; juniper-destination IP corresponding area, which is used to obtain the area corresponding to the target firewall and the destination IP address; juniper-policy check, which is used to determine whether the target firewall from the source IP address to the destination IP address is open. It can be understood that the target instruction can also include other target commands, which are not limited here.
[0040] S122: Execute the target template data to obtain a first execution result.
[0041] In one embodiment, the target template data includes a plurality of target commands. Executing the target template data is to respectively execute the plurality of target commands included in the target template data, send each target command to the target firewall for execution, obtain a plurality of second execution results, pass the plurality of second execution results into the groovy code corresponding to the target template data, process each second execution result, and obtain the first execution result.
[0042] In another embodiment, the target template data includes at least one target instruction, and each target instruction corresponds to at least one target command. Each target command is sent to the target firewall for execution, and the second execution result corresponding to each target command is obtained. Based on the second execution result of the target command corresponding to the target instruction, the third execution result of the target instruction is obtained, wherein the first execution result includes the third execution result of each target instruction. Specifically, after obtaining the second execution result corresponding to each target command, each second execution result can be stored in the context. After the execution of a target command corresponding to a target instruction is completed, the second execution result of each target command is obtained from the context, and the second execution result is processed (such as combined) in the groovy code of the target instruction to obtain the third execution result of the target instruction, and the third execution result is also stored in the context. The third execution result corresponding to each target instruction is obtained from the context, and each third execution result is aggregated, and each third execution result is processed in the groovy code corresponding to the target template data to obtain the first execution result.
[0043] Since there are often variables in the target command, before executing the target command, the firewall will first determine whether the target command has pre-command script processing (that is, whether the target command content contains variables). If so, the groovy code can be used to replace the variables in the target command with the data that the target command actually depends on. For example, if the execution of the current target command depends on the second execution result of other target commands, before executing the current target command, the groovy code can be used to obtain the second execution result of other target commands from the context and replace the variables in the current target command with the second execution result of other target commands (such as replacing Figure 2 targetlp in the command content is replaced by the execution result of other target commands), and the other target command can be at least one of all the target commands that have been executed.
[0044] S123: Based on the first execution result, obtain an access strategy.
[0045] In this implementation, the system operation and maintenance platform can automatically obtain the corresponding target template data based on the manufacturer and model of the target firewall, and further execute the target command and target instruction contained in the target template data based on the target network address, thereby obtaining a first execution result, and based on the first execution result, obtaining an access policy, and sending the access policy to the target firewall so that the target firewall executes the access policy to activate the policy. The system operation and maintenance platform can automatically complete the above steps with the help of code to activate the target firewall. The user only needs to upload the target network address without performing other operations.
[0046] Furthermore, the present embodiment sets the corresponding target template data according to the manufacturer and model of the target firewall, and the target template data can be represented by groovy code. Therefore, the groovy code is different for different manufacturers of the target firewall. By using groovy code, different manufacturers can be shielded. Since the groovy code can change with the change of the firewall manufacturer, the target firewalls of different manufacturers can be uniformly managed on the system operation and maintenance platform with the help of different groovy codes, without considering the difference between firewall manufacturers. If a new target firewall needs to be connected, it is only necessary to briefly configure its corresponding target template data on the web side. For example, if a new firewall needs to be added with a whitelist operation, the configuration process may include: configuring the corresponding command data, which can be extracted and verified separately. If the command already exists, it can be reused; configuring the instruction data, obtaining the command corresponding to the filtering instruction; configuring the policy data, and completing the setting according to the manufacturer, model, instruction and other data. With the help of groovy code, commands can be adjusted quickly, and new models of target firewalls can also be quickly connected, which greatly improves the management efficiency of the firewall.
[0047] See also Figure 5 , Figure 5 : is a flow chart of a second implementation of a firewall management method provided by the present application, the method comprising:
[0048] S510: Obtain a target network address of a firewall to be opened and a target firewall associated with the target network address.
[0049] S520: Generate an access policy regarding the target network address for the target firewall.
[0050] S530: Send the access policy to the target firewall so that the target firewall executes the access policy.
[0051] S540: Obtain a fourth execution result of the target firewall executing the access policy, and send the fourth execution result to the user.
[0052] The method described in this embodiment can be executed by a system operation and maintenance platform, which can include a command module, an instruction module, and a template module, wherein the command module is used to set several target commands included in the target template data, and before and after the execution of the target command, the data that the target command depends on when executing or the second execution result of the target command can be processed and replaced by groovy code; the instruction module is used to set several target commands corresponding to the target instruction, and several target commands can be sorted by groovy code according to the execution order of the target command to form a target command set; the template module is used to set the target template data, and the target command, target instruction, firewall manufacturer, firewall model, operation type and other data are integrated by groovy code. The network administrator can pre-set the target template data according to the firewall manufacturer, firewall model, operation type and other data, and the target template data contains at least one target instruction, and each target instruction corresponds to at least one target command.
[0053] When it is necessary to open the target firewall that the source IP address passes through to the destination IP address, the user can enter the target network address of the firewall to be opened into the process management system, which will be sent to the data storage system after review. The data storage system obtains the target firewall associated with the target network address based on the target network address, and sends the target network address and the target firewall associated with the target network address to the system operation and maintenance platform.
[0054] The system operation and maintenance platform searches for target template data corresponding to the target firewall based on the manufacturer and model of the target firewall. The target template data may include several target instructions, and the several target instructions correspond to at least one target command. Based on the target network address, the firewall executes several target commands to obtain the second execution results corresponding to the several target commands, and the several second execution results are stored in the context by using groovy code. When the several target commands contained in the target instruction are all executed, the groovy code is used to obtain the second execution results corresponding to the several target commands contained in the target instruction from the context, and the several second execution results are passed into the groovy code of the corresponding target instruction for processing, so as to obtain the third execution result of the target instruction, and the groovy code is used to store the third execution result in the context. When the several target instructions contained in the target template data are all executed, the groovy code is used to obtain the third execution results corresponding to the several target instructions contained in the target template data from the context, and after aggregating the several second execution results, the groovy code corresponding to the target template data is passed into the groovy code of the corresponding target template data for processing, and the corresponding access policy is obtained. The access policy is sent to the corresponding target firewall, so that the target firewall executes the access policy, and the fourth execution result of the target firewall executing the access policy is obtained, and the fourth execution result is sent to the user.
[0055] See also Figure 6 , Figure 6 : is a flowchart of a third implementation of a firewall management method provided by the present application, the method comprising:
[0056] S610: Acquire the data to be activated by using the process management system, and send the data to be activated to the data storage system.
[0057] In one embodiment, the user logs in to the process management system, selects the network activation process, and fills in the corresponding data to be activated according to the prompts of the form stored in the process management system. The data to be activated includes the target network address and protocol information, and the target network address includes the source IP address, the destination IP address, the source port and the destination port. The data to be activated is sent to the data storage system after being reviewed by the superior leader and the network administrator. Specifically, the data to be activated can be sent to the superior leader and the network administrator in the form of a link. The superior leader and the network administrator can click on the link to view the data to be activated. If there is no problem, it can be approved. If there is a problem, it can be returned to the user for modification.
[0058] Furthermore, the process management system may include a corresponding notification mechanism. For example, when the data to be activated is sent to the superior leader, the process management system may notify the superior leader for approval via SMS or email; when the data to be activated is sent to the data storage system, the user may be notified via SMS or email that the data to be activated has been sent to the data storage system.
[0059] S620: The data storage system obtains identification information of the corresponding target firewall based on the data to be activated, and sends the data to be activated and the target firewall to the system operation and maintenance platform.
[0060] In one embodiment, the data storage system can search for the corresponding target firewall based on the data center and network partition corresponding to the source IP address and the destination IP address in the data to be opened, and obtain the identification information of the target firewall. The identification information of the target firewall can include the manufacturer and model of the target firewall. The specific implementation steps of searching for the corresponding target firewall can refer to the description of the first embodiment of the firewall management method mentioned above, and will not be repeated here.
[0061] S630: The system operation and maintenance platform receives the data to be activated sent by the data storage system and the identification information of the target firewall, generates an access policy about the target network address for the target firewall, and sends the access policy to the target firewall so that the target firewall executes the access policy.
[0062] In one embodiment, after receiving the data to be activated and the identification information of the target firewall sent by the data storage system, the system operation and maintenance platform searches for the corresponding target template data based on the identification information of the target firewall, and obtains a plurality of target instructions contained in the target template data, wherein the target instruction corresponds to at least one target command. Based on the data to be activated, the plurality of target commands are respectively executed to obtain a second execution result of the target command. Further based on the second execution result of the target command, the target instruction is executed to obtain a third execution result of the target instruction. The third execution results of the plurality of target instructions are combined in the order of the plurality of target instructions contained in the target template data to obtain a first execution result, and an access policy for the target network address is generated based on the first execution result. The access policy is sent to the target firewall so that the target firewall executes the access policy. After the target firewall executes the access policy, the fourth execution result obtained is sent to the user.
[0063] In this implementation manner, the specific execution details of step S630 may refer to the relevant descriptions of steps S120 and S130 of the first implementation manner of the above-mentioned firewall management method, and will not be repeated here.
[0064] See also Figure 7 , Figure 7 It is a schematic diagram of the framework of an implementation method of a firewall management system provided by the present application. The firewall management system 70 includes a process management system 71, a data storage system 72 and a system operation and maintenance platform 73. The process management system 71 is used to obtain the data to be activated and send the data to be activated to the data storage system, wherein the data to be activated includes the target network address; the data storage system 72 is used to obtain the identification information of the corresponding target firewall based on the data to be activated, and send the data to be activated and the target firewall to the system operation and maintenance platform 73; the system operation and maintenance platform 73 is used to obtain the target network address of the firewall to be activated and the target firewall associated with the target network address; generate an access policy about the target network address for the target firewall; and send the access policy to the target firewall so that the target firewall executes the access policy.
[0065] Among them, generating an access policy about the target network address for the target firewall includes: searching for target template data corresponding to the target firewall, wherein the target template data includes a number of target commands; executing the target template data to obtain a first execution result; and obtaining an access policy based on the first execution result.
[0066] Among them, the target template data also includes at least one target instruction, each target instruction corresponds to at least one target command; executing the target template data includes: sending each target command to the target firewall for execution, and obtaining a second execution result of each target command; based on the second execution result of the target command corresponding to the target instruction, obtaining a third execution result of the target instruction, wherein the first execution result includes the third execution result of each target instruction.
[0067] Among them, the target network address includes a source IP address and a destination IP address, and the plurality of target commands include a command for obtaining an interface of a target firewall corresponding to the source IP address, a command for obtaining an interface of a target firewall corresponding to the destination IP address, a command for obtaining an area of a target firewall corresponding to the source IP address, and a command for obtaining an area of a target firewall corresponding to the destination IP address; and / or, the execution step of the target command includes: determining whether the execution of the target command depends on a second execution result of other target commands; if so, sending the target command to the target firewall for execution based on the second execution result of other target instructions.
[0068] Among them, obtaining the target network address of the firewall to be activated and the target firewall associated with the target network address includes: receiving the data to be activated and the identification information of the target firewall sent by the data storage system, wherein the data to be activated is input by the user through the process management system and includes the target network address and protocol information, the target network address includes the source IP address, the destination IP address, the source port and the destination port, and the identification information of the target firewall is obtained by the data storage system based on the search of the data to be activated.
[0069] After sending the access policy to the target firewall so that the target firewall executes the access policy, the method further includes: obtaining a fourth execution result of the target firewall executing the access policy, and sending the fourth execution result to the user.
[0070] The process management system 71, data storage system 72 and system operation and maintenance platform 73 included in the firewall management system 70 provided in the present application can be used to execute the corresponding steps in the first implementation manner of the above-mentioned firewall management method respectively. The specific steps executed by the process management system 71, data storage system 72 and system operation and maintenance platform 73 can refer to the first implementation manner of the above-mentioned firewall management method and will not be repeated here.
[0071] See also Figure 8 , Figure 8 It is a schematic diagram of the framework structure of the electronic device provided in this application.
[0072] The electronic device 80 includes a memory 81 and a processor 82 coupled to each other, the memory 81 stores program instructions, and the processor 82 is used to execute the program instructions stored in the memory 81 to implement the steps of any of the above method implementations. In a specific implementation scenario, the electronic device 80 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 80 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.
[0073] Specifically, the processor 82 is used to control itself and the memory 81 to implement the steps of any of the above-mentioned organizational system construction method implementation methods. The processor 82 can also be called a CPU (Central Processing Unit). The processor 82 may be an integrated circuit chip with signal processing capabilities. The processor 82 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 82 can be implemented by an integrated circuit chip.
[0074] See also Fig. 9 , Fig. 9 It is a schematic diagram of a framework of an implementation scheme of a computer-readable storage medium provided in the present application.
[0075] The computer-readable storage medium 90 stores program instructions 91 , which are used to implement the steps in any of the above method embodiments when executed by a processor.
[0076] The computer-readable storage medium 90 may specifically be a medium that can store computer programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the computer program. The server may send the stored computer program to other devices for execution, or may also execute the stored computer program itself.
[0077] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A firewall management method, characterized in that: The method comprises: Obtaining a target network address of a firewall to be opened and a target firewall associated with the target network address; Execute a target command in the target template data to obtain a first execution result, and generate an access policy for the target network address for the target firewall based on the first execution result; wherein the first execution result is obtained by processing each second execution result, and the second execution result is obtained by the target firewall executing the target command; The access policy is sent to a target firewall so that the target firewall executes the access policy.
2. The method according to claim 1, characterized in that The execution target template data generates an access policy for the target network address for the target firewall, including: The target template data corresponding to the target firewall is searched, wherein the target template data includes a plurality of target commands.
3. The method according to claim 2, characterized in that The target template data also includes at least one target instruction, each of which corresponds to at least one target command; The executing the target template data comprises: Sending each of the target commands to the target firewall for execution, and obtaining a second execution result of each of the target commands; Based on the second execution result of the target command corresponding to the target instruction, a third execution result of the target instruction is obtained, wherein the first execution result includes the third execution result of each of the target instructions.
4. The method according to claim 3, characterized in that The target network address includes a source IP address and a destination IP address, and the plurality of target commands include a command for obtaining an interface of the target firewall corresponding to the source IP address, a command for obtaining an interface of the target firewall corresponding to the destination IP address, a command for obtaining an area of the target firewall corresponding to the source IP address, and a command for obtaining an area of the target firewall corresponding to the destination IP address; And / or, the execution step of the target command includes: If the execution of the target command depends on the second execution result of other target commands, the target command is sent to the target firewall for execution based on the second execution results of other target commands.
5. The method according to claim 1, characterized in that The step of obtaining a target network address of a firewall to be opened and a target firewall associated with the target network address includes: Receive the data to be activated and the identification information of the target firewall sent by the data storage system, wherein the data to be activated includes the target network address and protocol information, the target network address includes the source IP address, the destination IP address, the source port and the destination port, and the identification information of the target firewall is obtained by the data storage system based on the search of the data to be activated.
6. The method according to claim 1, characterized in that After sending the access policy to the target firewall so that the target firewall executes the access policy, the method further includes: A fourth execution result of the target firewall executing the access policy is obtained, and the fourth execution result is sent to a user.
7. A firewall management method, characterized in that: The method comprises: Using the process management system to obtain the data to be activated, and sending the data to be activated to the data storage system, wherein the data to be activated includes the target network address; The data storage system obtains identification information of the corresponding target firewall based on the data to be activated, and sends the data to be activated and the target firewall to the system operation and maintenance platform; The system operation and maintenance platform receives the data to be activated and the identification information of the target firewall sent by the data storage system, executes the target command in the target template data, obtains a first execution result, generates an access policy about the target network address for the target firewall based on the first execution result; sends the access policy to the target firewall so that the target firewall executes the access policy, wherein the first execution result is obtained by processing each second execution result, and the second execution result is obtained by the target firewall executing the target command.
8. A firewall management system, characterized in that: The firewall management system includes a process management system, a data storage system and a system operation and maintenance platform; The process management system is used to obtain the data to be activated and send the data to be activated to the data storage system, wherein the data to be activated includes a target network address; The data storage system is used to obtain identification information of the corresponding target firewall based on the data to be activated, and send the data to be activated and the target firewall to the system operation and maintenance platform; The system operation and maintenance platform is used to execute the method described in any one of claims 1-6.
9. An electronic device, characterized in that: comprising a memory and a processor coupled to each other, The memory stores program instructions; The processor is used to execute the program instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program instructions, and the program instructions can be executed to implement the method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
