Change a Firewall Policy

Change the information for a firewall policy in Oracle Cloud Infrastructure.

You can't change a firewall policy that's associated with a firewall. To change a policy that's associated with a firewall, do one of the following:
  • Associate the firewall with a different policy, change the original policy, and then associate the original policy with the firewall again.
  • Clone a firewall policy, and change the policy during the cloning process. Then, change a firewall to associate it with the new policy.
Important

When you make the following changes, the update causes a connection reset in any associated firewall:
  • Updating mapped secret information in a policy associated with a firewall.
  • Changing the firewall policy to one that uses different mapped secret information than the current policy.

Editing other types of information in the associated policy does not result in a connection reset.

    1. Open the navigation menu, and select Identity & Security. Under Firewalls, select Network Firewall policies.
    2. Select the compartment that contains the policy that you want to edit.
    3. Select the policy.
    4. (Optional) Rename the policy:
      1. Select the Actions menu, and then select Rename.
      2. Enter a new name for the policy.
      3. Select Update.
    5. (Optional) Change a policy component:
      1. Select the tab for the type of policy component that you want to edit, for example, Applications.
      2. For the component resource that you want to edit, select the Actions menu (three dots), and select Edit.
      3. Make the necessary changes, and then select Save changes.
  • Use the network-firewall network-firewall-policy update command and required parameters to edit a firewall.
    oci network-firewall network-firewall-policy update 
    --network-firewall-policy-id network_firewall_policy_id [OPTIONS]

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

  • Run the UpdateNetworkFirewallPolicy operation to update a firewall.