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. On the navigation menu, go to Identity & Security. Under Firewalls, go to Network Firewall Policies.
    2. Select Create network firewall policy.
    3. In the Name box, enter a name for the policy.
    4. In the Create in compartment list, select the compartment.
    5. If you want to add tags, select Show tagging options and enter tagging information for the policy.
    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.