Create a Firewall Policy

Create a firewall policy that you can associate with a firewall. Firewall policies contain the rules that control how the firewall inspects, allows, or denies network traffic.

Important

If the firewall policy you use with a firewall doesn't have any rules specified, the firewall denies all traffic.
    1. Open the navigation menu, and select Identity & Security. Under Firewalls, select Network Firewall policies.
    2. Select Create Network Firewall policy.
    3. In the Name box, enter a name for the policy. Avoid entering confidential information.
    4. In the Create in compartment list, select the compartment to create the policy in.
    5. If you want to add tags, select Add tag and enter tagging information for the policy.

      If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.

    6. Select Create Network Firewall policy.
  • Use the network-firewall network-firewall-policy create command and required parameters to create a policy.
    oci network-firewall network-firewall-policy create 
    --compartment-id compartment_id ...[OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Use the CreateNetworkFirewallPolicy operation to create a policy.