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, click Identity & Security. Under Firewalls, click Network Firewall Policies.
    2. Click 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, click Show tagging options and enter tagging information for the policy.
    6. Click 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.