Add a Security Rule to a Firewall Policy
Security rules contain a set of criteria against which a network packet is matched and then allowed or blocked.
- Create application lists, service lists, address lists, and URL lists to use when creating the rule.
The specified source and destination match condition for the traffic consists of lists that you configure in the policy before you construct the rule. You can create a maximum of 10,000 security rules for each policy.
Important
If no match criteria are defined in the security rule (an empty list is specified for the rule), then the rule matches to wildcard ("any") criteria. This behavior applies to all traffic examined in the rule.
If no match criteria are defined in the security rule (an empty list is specified for the rule), then the rule matches to wildcard ("any") criteria. This behavior applies to all traffic examined in the rule.
Use the network-firewall security-rule create command and required parameters to create a decryption rule:
oci network-firewall security-rule create --name my_security_rule --network-firewall-policy-id network firewall policy OCID --action ALLOW --condition '[{"sourceAddress":"IP_address"}]' ...[OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateSecurityRule operation to create a security rule.