An edge firewall rule becomes invalid when grouping objects, services, or service groups that are used in the rule are deleted. Invalid firewall rules cannot be published.
Consider that you have created an edge firewall rule that uses an IP set object in the destination of the rule, as shown in the following figure.
In the following procedure, you will delete the "FW-IPset" object on the edge, and then return to the firewall table to observe that NSX Edge detects the invalid rule. You will mark the rule as valid and republish the rule.
Procedure
- Force delete the IP set object on the edge.
- Log in to the vSphere Web Client.
- Click
- Double-click the edge, and navigate to .
- Click the IP Sets tab, and then select the FW-IPSet object.
- Click the Delete ( or ) icon, and then select the Proceed to force delete check box.
- Click the Firewall tab to return to the edge firewall table.
- Observe that NSX displays the following error message above the firewall table.
NSX Edge detects that the destination of the firewall rule at position 4 is invalid, and therefore the rule becomes invalid. The empty object in the destination column of the rule is enclosed in a red box, as shown in the following figure.
- (Required) Remove the empty object.
NSX Version |
Steps |
6.4.6 and later |
Point to the empty sys-gen-empty-ipset-edge-fw object, click , and then select Remove. |
6.4.5 and earlier |
Point to the empty sys-gen-empty-ipset-edge-fw object and click . |
- (Optional) Edit the rule destination to make the rule configuration valid.
NSX Version |
Steps |
6.4.6 and later |
- Point to the Destination column of the rule, click and select Edit Rule Destination.
- Add objects or IP addresses, as necessary.
|
6.4.5 and earlier |
- Point to the Destination column of the rule, click .
- Add objects or IP addresses, as necessary.
|
- (6.4.6 and later only) Click the Mark the rule as valid link in the error message.
NSX Edge displays the following warning message:
This action will mark rule as valid.
Please ensure that all elements in the rule are valid objects before performing this action.
Do you want to continue?
- To confirm that the rule can be marked as valid, click Yes. The error message is removed.
- To close the warning message and return to the firewall table to verify and edit the rule destination, click No.
Note: In
NSX 6.4.5 and earlier, the error message above the firewall table does not show the
Mark rule as valid link. After you remove the empty object, and optionally edit the rule destination,
NSX Edge removes the error message when it detects that the rule configuration has become valid.
- Click Publish Changes for the rule changes to take effect.