A method and system for configuring a micro-isolation policy
By configuring micro-segmentation policies locally on the host, the network latency and failure issues caused by virtual gateways are resolved, achieving efficient inter-host isolation and improving network performance.
Patent Information
- Application Number
- CN202311301140.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-09
AI Technical Summary
In existing micro-segmentation technologies, configuring micro-segmentation policies on virtual gateways results in limited access speeds between hosts, high network latency, and the risk of network failures.
By executing the executable file locally on the host, micro-segmentation policies can be configured directly on the firewall, avoiding the performance bottleneck of the virtual gateway. The policy control device sends the executable file to the host, and the host executes the file to configure the firewall policy.
It achieves micro-isolation between hosts, avoiding the network latency and failure risks brought by virtual gateways, while reducing CPU and memory usage and improving network access speed.
Smart Images

Figure CN117294504B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network security technology, and in particular to a configuration method and system for a micro-segmentation strategy. Background Technology
[0002] Traditional security measures assume that the enterprise intranet is trustworthy, focusing on detecting and protecting against north-south (external) traffic at the intranet boundary. However, with the development of network technologies such as virtualization and containers, and the expansion of enterprise business scale, the internal (east-west) traffic of the enterprise intranet has increased significantly. If east-west traffic is assumed to be trustworthy, once external threats breach the enterprise intranet protection boundary, they will run rampant inside, causing incalculable losses.
[0003] To provide security protection for east-west traffic, micro-segmentation (MSG) technology was developed. Micro-segmentation is a finer-grained network isolation technology that can meet the needs of enterprise intranets for isolating east-west traffic, achieving the security goals of reducing the exposure surface and preventing lateral movement of attacks. For example... Figure 1 As shown, current micro-segmentation solutions require configuring micro-segmentation policies on the enterprise intranet's virtual gateway (VFW). These policies are used to block or allow traffic, thus controlling the flow. For example, when virtual host VM1 accesses virtual host VM2, VM1's traffic needs to be redirected to the VFW. The VFW's micro-segmentation policies then block or allow traffic to VM2, thereby controlling communication between VM1 and VM2.
[0004] The aforementioned micro-segmentation scheme configures the micro-segmentation policy on the virtual gateway, requiring all communication between hosts to pass through the virtual gateway. The performance of the virtual gateway significantly impacts the speed of communication between hosts within the enterprise intranet. Therefore, low virtual gateway performance can lead to significant network latency or even network failures within the enterprise intranet. Summary of the Invention
[0005] This application provides a method and system for configuring micro-segmentation policies, which can configure micro-segmentation policies for hosts without the need for a virtual gateway, thus avoiding the drawbacks of virtual gateways.
[0006] Firstly, a method for configuring a micro-segmentation policy is provided, applied to a micro-segmentation policy configuration system. The system includes a policy control device and at least one host, wherein the policy control device is communicatively connected to at least one host. The method includes:
[0007] The policy control device obtains the first policy to be configured corresponding to the target host. The first policy is used by the firewall of the target host to control the traffic accessing the target host. The target host belongs to at least one host.
[0008] The strategy control device determines an executable file based on a first strategy. The executable file includes the first strategy and commands for configuring the first strategy.
[0009] The policy control device sends an executable file to the target host;
[0010] The target host receives the executable file from the policy control device;
[0011] The target host configures the first policy for the firewall by executing the executable file.
[0012] In one feasible design, the strategy control device determines an executable file based on a first strategy. The executable file includes the first strategy and commands for configuring the first strategy, including:
[0013] The policy control device obtains the backup policy file corresponding to the target host from the database. The backup policy file includes at least one second policy that has been successfully configured to the target host.
[0014] The strategy control device determines an executable file based on a first strategy and at least one second strategy. The executable file includes the first strategy, at least one second strategy, and a command to configure the first strategy.
[0015] In a feasible design, the method also includes the following steps before configuring the first policy on the firewall:
[0016] The target host obtains at least one third policy currently used by the firewall to control traffic accessing the target host;
[0017] The target host determines whether each second policy and the corresponding third policy are the same based on at least one second policy and at least one third policy;
[0018] Configuring the first policy for the firewall includes:
[0019] If each second policy and its corresponding third policy are identical, configure the first policy in the firewall.
[0020] In a feasible design, if the second policy and the corresponding third policy are different, configuring the first policy for the firewall includes:
[0021] Replace at least one third strategy with at least one second strategy;
[0022] Configure the first policy for the firewall.
[0023] In a feasible design, the method also includes the following steps before configuring the first policy on the firewall:
[0024] The target host verifies whether the firewall is available;
[0025] Configuring the first policy for the firewall includes:
[0026] If the firewall is available, configure the first policy on the firewall.
[0027] In a feasible design, if the firewall is available, configure a first policy for the firewall, including:
[0028] Generate a text file containing the first strategy based on the first strategy in the executable file;
[0029] The first policy of the text file is written to the firewall by invoking the firewall's command.
[0030] In a feasible design, if the first policy is successfully configured on the firewall, the method also includes:
[0031] The target host generates a backup policy file based on at least one policy currently used by the firewall to control traffic accessing the target host;
[0032] The target host sends a backup policy file to the policy control device.
[0033] In a feasible design, if the first policy is successfully configured on the firewall, the method also includes:
[0034] The target host generates the first task status, which indicates that the first policy configuration was successful.
[0035] The target host sends the first task status to the policy control device.
[0036] In a feasible design, if the first policy fails to be configured on the firewall, the method also includes:
[0037] The target host generates a second task status, which indicates that the first policy configuration failed.
[0038] The target host sends the second task status to the policy control device.
[0039] Secondly, a micro-segmentation strategy configuration system is provided, the system including a strategy control device and at least one host, the strategy control device being communicatively connected to at least one host;
[0040] The policy control device is used to obtain the first policy to be configured corresponding to the target host. The first policy is used by the firewall of the target host to control the traffic accessing the target host. The target host belongs to at least one host.
[0041] The strategy control device is used to determine an executable file according to a first strategy, the executable file including the first strategy and commands for configuring the first strategy;
[0042] The policy control unit is used to send executable files to the target host;
[0043] The target host is used to receive executable files from the policy control device;
[0044] The target host is used to configure the first policy for the firewall by executing the executable file.
[0045] The host in this application can be a physical host or a virtual host. Since the policy control device of this application sends an executable file to the target host, the executable file includes a first policy and commands for configuring the first policy. The target host adds the first policy to its own firewall by executing the commands in the executable file, thus completing the policy configuration. This allows the target host to achieve micro-segmentation through its own firewall, avoiding the drawbacks of virtual gateways. Furthermore, compared to installing a proxy plugin on the target host and then using the proxy plugin to update the micro-segmentation policies in the firewall, in this application, since the target host can complete the policy configuration simply by executing the commands in the executable file, there is no need to install and run a proxy plugin on the target host, thus avoiding the proxy plugin consuming CPU, memory, etc., of the target host. Attached Figure Description
[0046] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a schematic diagram of the configuration system structure of an example micro-segmentation strategy provided in an exemplary embodiment of this application;
[0048] Figure 2 This is a schematic flowchart illustrating a configuration method for a micro-segmentation strategy provided in an exemplary embodiment of this application;
[0049] Figure 3 This is a schematic flowchart illustrating another example of a micro-segmentation strategy configuration method provided in an exemplary embodiment of this application. Detailed Implementation
[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] Figure 1 This is a schematic diagram of a configuration system structure for a micro-segmentation strategy provided in an exemplary embodiment of this application, as shown below. Figure 1 As shown, the system includes a policy control device and at least one host, with the policy control device communicatively connected to the at least one host. This application sends an executable file to a target host among the at least one host via the policy control device. The target host then executes the commands in the executable file to configure a first policy on its firewall. The host can be a virtual host or a physical host. This system eliminates the need for a virtual gateway, allowing the target host to achieve micro-segmentation through its own firewall, avoiding the drawbacks of virtual gateways. The drawbacks of virtual gateways include: a) introducing a bottleneck (i.e., a virtual gateway) into the network, making its own performance a bottleneck for forwarding speed, potentially leading to network latency or even network failure; b) low applicability of virtual gateways to traditional IT environments.
[0052] based on Figure 1 The system shown in this application provides a configuration method for a micro-segmentation strategy, such as... Figure 2 As shown, the method includes:
[0053] S110, the policy control device obtains the first policy to be configured corresponding to the target host.
[0054] The first strategy is used by the firewall of the target host to control traffic accessing the target host, and the target host belongs to at least one host.
[0055] For example, the first policy includes, but is not limited to, the control direction (inbound / outbound), policy action (allow / block), policy-issuing host IP, remote address IP, access protocol (TCP / UDP), protocol port, and other information.
[0056] S120, the strategy control device determines an executable file according to the first strategy, the executable file including the first strategy and the command to configure the first strategy.
[0057] In one feasible design, the strategy control device determines the executable file according to a first strategy in the following way:
[0058] The policy control device obtains the backup policy file corresponding to the target host from the database. The backup policy file includes at least one second policy that has been successfully configured on the target host.
[0059] The strategy control device determines an executable file based on a first strategy and at least one second strategy. The executable file includes the first strategy, at least one second strategy, and a command to configure the first strategy.
[0060] In the example above, the policy control device retrieves at least one second policy from the backup policy file corresponding to the target host from the database and includes this at least one second policy in the executable file. This allows the target host, upon receiving the executable file, to verify the at least one second policy against at least one third policy currently used by its firewall to control whether traffic can access the target host. This prevents incomplete or manually modified policies on the target host from affecting subsequent execution of the first policy, ensuring that the target host remains secure when micro-segmentation policies are configured.
[0061] S130, the policy control device sends an executable file to the target host.
[0062] For example, the policy control device communicates with the target host in encrypted form via the Secure Shell (SSH) protocol to send executable files to the target host, and users can also securely log in to the target host through the policy control device.
[0063] For example, the policy control device securely logs into the target host using a key certificate via the Secure Socket Layer (SSL) protocol to securely send an executable file to the target host. S140, the target host receives the executable file from the policy control device.
[0064] S150: The target host configures the first policy for the firewall by executing an executable file.
[0065] For example, after the policy control device sends the executable file to the target host, the target host executes the commands in the executable file to write the first policy into its own firewall's policy list (e.g., iptables / nftables). The firewall then controls whether to allow or block traffic based on the content of the first policy. This achieves the isolation between legitimate communication traffic and unknown / risky traffic, enabling fine-grained isolation and control at the IP and port levels.
[0066] In a feasible design, the method also includes the following steps before configuring the first policy on the firewall:
[0067] The target host obtains at least one third policy currently used by the firewall to control traffic accessing the target host.
[0068] The target host determines whether each second policy and the corresponding third policy are the same based on at least one second policy and at least one third policy.
[0069] If each second policy and its corresponding third policy are the same, configure the first policy in the firewall.
[0070] For example, the at least one third policy is included in the policy list of the aforementioned firewall.
[0071] It should be understood that the second and third policies are used to control the same traffic accessing the target host, meaning the traffic originates from the same host. For example, the target host is host A, and the traffic accessing host A originates from host B. A particular third policy is a policy in the firewall of the current target host used to control traffic originating from host B, and the corresponding second policy is a previously used policy stored in the policy control device to control traffic originating from host B. Different third policies correspond to different hosts accessing the target host; similarly, different second policies correspond to different hosts accessing the target host. All third policies are stored in the firewall's policy list.
[0072] In the above example, if each second policy and its corresponding third policy are identical, it indicates that the target host's policy is complete and has not been manually modified, and the target host is in a secure state. In this case, it is safe to configure the first policy to the firewall.
[0073] In a feasible design, if the second policy and the corresponding third policy are different, configuring the first policy to the firewall includes:
[0074] Replace at least one third strategy with at least one second strategy;
[0075] Then, configure the first policy for the firewall.
[0076] At least one third policy can be replaced with at least one second policy, a process known as firewall policy restoration.
[0077] In the above example, if the second policy and the corresponding third policy are different, then at least one third policy is replaced with at least one second policy to restore the firewall policy before the first policy is securely configured to the firewall.
[0078] For example, if at least one third policy is successfully replaced with at least one second policy, and then the first policy is configured in the firewall, it is ensured that the policies in the firewall are complete when the target host is configured with the first policy.
[0079] For example, if it fails to successfully replace at least one third policy with at least one second policy, the target host updates the contents of the flag file to complete and sends the flag file to the policy control device.
[0080] Furthermore, the target host generates a second task status, which indicates that configuring the first policy has failed.
[0081] The target host sends a second task status to the policy control device, exiting the current micro-segmentation policy configuration task.
[0082] In the example above, the target host sends the flag file and the second task status to the policy control device so that the policy control device and administrators can keep track of the progress of the current micro-segmentation policy configuration task.
[0083] In a feasible design, the method also includes the following steps before configuring the first policy on the firewall:
[0084] The target host verifies whether the firewall is available;
[0085] If the firewall is available, configure the first policy on the firewall.
[0086] For example, verifying whether a firewall is available includes:
[0087] Verify if the firewall is enabled. If the firewall is enabled, determine that the firewall is available; otherwise, determine that the firewall is unavailable.
[0088] Alternatively, determine whether the firewall type and version support the first policy. If they do, determine that the firewall is available; otherwise, determine that the firewall is unavailable.
[0089] In the example above, before configuring the first policy on the firewall, the target host verifies whether the firewall is available. If the firewall is available, the first policy is configured on the firewall. This avoids configuration failure if the first policy is configured on the firewall directly without verification and the firewall is unavailable.
[0090] In a feasible design, if the firewall is available, configure a first policy on the firewall, including:
[0091] Generate a text file containing the first strategy based on the first strategy in the executable file;
[0092] The first policy of the text file is written to the firewall by invoking the firewall's command.
[0093] In the example above, if the firewall is available, a text file containing the first policy is generated based on the first policy in the executable file. Since the first policy may be a collection of multiple policies, this text file can be used to write the first policies to the firewall in batches. Compared to writing each policy in the first policy set of the executable file to the firewall one by one, the above example improves efficiency.
[0094] In a feasible design, if the first policy is successfully configured in the firewall, the method also includes:
[0095] The target host generates a backup policy file based on at least one policy currently used by the firewall to control traffic accessing the target host;
[0096] The target host sends a backup policy file to the policy control device.
[0097] In the example above, if the first policy is successfully configured on the firewall, the target host generates a backup policy file and sends it to the policy control device based on at least one policy currently used by the firewall to control whether traffic can access the target host. When the policy control device configures a micro-segmentation policy for the target host the next time, it determines the executable file based on the latest backup policy file, enabling the target host to determine whether the firewall policy is complete and whether it has been manually modified based on the latest at least one second policy.
[0098] In a feasible design, if the first policy is successfully configured in the firewall, the method also includes:
[0099] The target host generates the first task status, which indicates that the first policy configuration was successful.
[0100] The target host sends the first task status to the policy control device.
[0101] For example, if the first policy is successfully configured on the firewall, the target host updates the contents of the flag file to complete and sends the flag file to the policy control device.
[0102] For example, after the target host sends the first task status to the policy control device, it exits the configuration task of the current micro-segmentation policy.
[0103] In the example above, if the first policy is successfully configured on the firewall, the target host will send the flag file and the first task status to the policy control device so that the policy control device and administrators can keep track of the progress of the current micro-segmentation policy configuration task and whether the micro-segmentation policy configuration task has been successful.
[0104] In a feasible design, if the first policy fails to be configured on the firewall, the target host generates a second task state, which indicates that the first policy configuration has failed.
[0105] The target host sends the second task status to the policy control device.
[0106] For example, if the first policy is not successfully configured on the firewall, the target host updates the contents of the flag file and sends the flag file to the policy control device.
[0107] In the example above, if the first policy is not successfully configured on the firewall, the target host will send the flag file and the first task status to the policy control device so that the policy control device and administrators can keep track of the progress of the current micro-segmentation policy configuration task and whether the micro-segmentation policy configuration task is successful.
[0108] Based on the above embodiments, such as Figure 3 As shown, this application also provides a schematic flowchart of a micro-segmentation strategy configuration method, the steps of which include:
[0109] 1. The policy control device obtains the first policy to be configured corresponding to the target host.
[0110] 2. The policy control device retrieves the backup policy file corresponding to the target host from the database.
[0111] 3. Generate an executable file based on at least one second strategy from the first strategy and the backup strategy file.
[0112] 4. Log in via SSH account and password or SSL key certificate to establish a communication connection between the policy control device and the target host.
[0113] 5. Verify if the target host firewall is available. If the firewall is available, proceed to step 6; if the firewall is unavailable, generate a second task status and send it to the policy control device, then exit the task.
[0114] 6. Generate a text file containing the first policy, to be used later when the firewall is invoked to perform an update.
[0115] 7. Obtain at least one third-party policy currently used by the firewall to control traffic to access the target host.
[0116] 8. Determine whether at least one third strategy is consistent with at least one second strategy. If they are consistent, proceed to step 9; if they are inconsistent, proceed to step 12.
[0117] 9. Use firewall commands to add the first policy to the firewall's policy list.
[0118] 10. Determine whether the first policy has been successfully configured on the firewall. If successful, proceed to step 11. If unsuccessful, update the flag file content to complete, generate the second task status, send the flag file and the second task status to the policy control device, and exit the task.
[0119] 11. Based on at least one policy currently used by the firewall to control whether traffic can access the target host, generate a backup policy file; update the flag file content to complete, generate the first task status, send the backup policy file, flag file and the first task status to the policy control device, and exit the task.
[0120] 12. Restore firewall policies.
[0121] 13. Determine whether the strategy recovery was successful. If unsuccessful, update the flag file to complete, generate the second task status, send the flag file and the second task status to the strategy control device, and exit the task. If successful, proceed to step 9.
[0122] The host in this application can be a physical host or a virtual host. Since the policy control device of this application sends an executable file to the target host, the executable file includes a first policy and commands for configuring the first policy. The target host adds the first policy to its own firewall by executing the commands in the executable file, thus completing the policy configuration. This allows the target host to achieve micro-segmentation through its own firewall, avoiding the drawbacks of virtual gateways. Furthermore, compared to installing a proxy plugin on the target host and then using the proxy plugin to update the micro-segmentation policies in the firewall, in this application, since the target host can complete the policy configuration simply by executing the commands in the executable file, there is no need to install and run a proxy plugin on the target host, thus avoiding the proxy plugin consuming CPU, memory, etc., of the target host.
[0123] Based on the above-described micro-segmentation strategy configuration method, this application also provides a micro-segmentation strategy configuration system. This system includes a strategy control device and at least one host, wherein the strategy control device is communicatively connected to the at least one host, such as... Figure 1 As shown, the system includes a policy control device and at least one host, and the policy control device is communicatively connected to at least one host.
[0124] The policy control device is used to obtain the first policy to be configured corresponding to the target host. The first policy is used by the firewall of the target host to control the traffic accessing the target host. The target host belongs to at least one host.
[0125] The strategy control device is used to determine an executable file according to a first strategy, the executable file including the first strategy and commands for configuring the first strategy;
[0126] The policy control unit is used to send executable files to the target host;
[0127] The target host is used to receive executable files from the policy control device;
[0128] The target host is used to configure the first policy for the firewall by executing the executable file.
[0129] In one feasible design, the policy control device is used to determine an executable file based on a first policy. The executable file includes the first policy and commands for configuring the first policy, including:
[0130] The policy control device is used to obtain the backup policy file corresponding to the target host from the database. The backup policy file includes at least one second policy that has been successfully configured to the target host.
[0131] The strategy control device is used to determine an executable file based on a first strategy and at least one second strategy. The executable file includes the first strategy, at least one second strategy, and a command to configure the first strategy.
[0132] In a feasible design, before configuring the first policy to the firewall,
[0133] The target host is used to obtain at least one third policy currently used by the firewall to control whether traffic can access the target host;
[0134] The target host is used to determine whether each second policy and the corresponding third policy are the same based on at least one second policy and at least one third policy;
[0135] Configuring the first policy for the firewall includes:
[0136] If each second policy and its corresponding third policy are the same, configure the first policy in the firewall.
[0137] In a feasible design, if the second policy and the corresponding third policy are different, configuring the first policy to the firewall includes:
[0138] Replace at least one third strategy with at least one second strategy;
[0139] Configure the first policy for the firewall.
[0140] In a feasible design, the target host is also used to verify the availability of the firewall before configuring the first policy to the firewall.
[0141] Configuring the first policy for the firewall includes:
[0142] If the firewall is available, configure the first policy on the firewall.
[0143] In a feasible design, if the firewall is available, configure a first policy for the firewall, including:
[0144] Generate a text file containing the first strategy based on the first strategy in the executable file;
[0145] The first policy of the text file is written to the firewall by invoking the firewall's command.
[0146] In a feasible design, if the first policy is successfully configured on the firewall, the target host generates a backup policy file based on at least one policy currently used by the firewall to control whether traffic can access the target host.
[0147] The target host is used to send backup policy files to the policy control device.
[0148] In a feasible design, if the first policy is successfully configured on the firewall, the target host is used to generate the first task state, which indicates that the first policy is successfully configured.
[0149] The target host is used to send the first task status to the policy control device.
[0150] In one feasible design, if the first policy is not successfully configured on the firewall, the target host generates a second task state, which indicates that the first policy configuration has failed.
[0151] The target host is used to send the second task status to the policy control device.
[0152] For other implementation methods and effects of the above system embodiments, please refer to the configuration method embodiment of the micro-segmentation strategy, which will not be repeated here.
[0153] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.
[0154] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0155] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0156] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.
[0157] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0158] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A configuration method for a micro-segmentation strategy, characterized in that, A configuration system for a micro-segmentation strategy, the system comprising a policy control device and at least one host, the policy control device being communicatively connected to the at least one host, the method comprising: The policy control device obtains a first policy to be configured corresponding to the target host. The first policy is used by the firewall of the target host to control traffic accessing the target host. The target host belongs to the at least one host. The policy control device determines an executable file based on the first policy. The executable file includes the first policy and commands for configuring the first policy. Specifically, the policy control device determines the executable file based on the first policy, and the executable file includes the first policy and commands for configuring the first policy, comprising: The policy control device obtains the backup policy file corresponding to the target host from the database. The backup policy file includes at least one second policy that has been successfully configured to the target host. The policy control device determines an executable file based on the first policy and at least one second policy, the executable file including the first policy, at least one second policy, and a command to configure the first policy; The policy control device sends the executable file to the target host; The target host receives an executable file from the policy control device; The target host obtains at least one third policy currently used by the firewall to control traffic accessing the target host; The target host determines whether each second policy and the corresponding third policy are the same based on the at least one second policy and the at least one third policy; If each of the second policy and the corresponding third policy is the same, the target host configures the first policy to the firewall by executing the executable file.
2. The method according to claim 1, characterized in that, If the second strategy and the corresponding third strategy are different, the method further includes: Replace the at least one third strategy with the at least one second strategy; Configure the first policy on the firewall.
3. The method according to claim 1 or 2, characterized in that, Before configuring the first policy to the firewall, the method further includes: The target host verifies whether the firewall is available; Configuring the first policy on the firewall includes: If the firewall is available, configure the first policy on the firewall.
4. The method according to claim 3, characterized in that, If the firewall is available, configuring the first policy on the firewall includes: Generate a text file including the first strategy according to the first strategy in the executable file; The first policy of the text file is written into the firewall by invoking the firewall's command.
5. The method according to claim 1 or 2, characterized in that, If the first policy is successfully configured in the firewall, the method further includes: The target host generates a backup policy file based on at least one policy currently used by the firewall to control traffic accessing the target host. The target host sends the backup policy file to the policy control device.
6. The method according to claim 1 or 2, characterized in that, If the first policy is successfully configured in the firewall, the method further includes: The target host generates a first task status, which indicates that the first policy configuration was successful. The target host sends the first task status to the policy control device.
7. The method according to claim 1 or 2, characterized in that, If the first policy fails to be configured on the firewall, the method further includes: The target host generates a second task status, which indicates that the first policy configuration has failed. The target host sends the second task status to the policy control device.
8. A configuration system for a micro-segmentation strategy, characterized in that, The system includes a policy control device and at least one host, wherein the policy control device is communicatively connected to the at least one host. The policy control device is used to obtain a first policy to be configured corresponding to the target host. The first policy is used by the firewall of the target host to control the traffic accessing the target host. The target host belongs to the at least one host. The policy control device is used to determine an executable file according to the first policy. The executable file includes the first policy and commands for configuring the first policy. The process of determining the executable file according to the first policy, including the first policy and commands for configuring the first policy, comprises: The policy control device obtains the backup policy file corresponding to the target host from the database. The backup policy file includes at least one second policy that has been successfully configured to the target host. The policy control device determines an executable file based on the first policy and at least one second policy, the executable file including the first policy, at least one second policy, and a command to configure the first policy; The policy control device is used to send the executable file to the target host; The target host is used to receive executable files from the policy control device; The target host is used to obtain at least one third policy currently used by the firewall to control traffic accessing the target host; The target host is used to determine whether each second policy and the corresponding third policy are the same, based on the at least one second policy and the at least one third policy; If each of the second policy and the corresponding third policy is the same, the target host is used to configure the first policy to the firewall by executing the executable file.
Citation Information
Patent Citations
Network access control method and system
CN104580078A
