Change a Firewall Policy
Change the information for a firewall policy in Oracle Cloud Infrastructure.
You can't change a firewall policy that is associated with one or more firewalls. 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.
- Select the compartment that contains the policy that you want to edit.
- Click the policy.
- (Optional)
Rename the policy:
- Click Rename.
- Enter a new name for the policy.
- Click Save changes.
- (Optional)
Change a policy component:
- Under Policy Resources, click a component type to view a list of available component resources.
- For the component resource that you want to edit, click the the Creating Policy Components. , and select Edit. For information about components and the changes you can make to them, see
- Click 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.