Updating Rules in a Security List

Update the rules used in a security list in a Virtual Cloud Network (VCN).

You can add and remove rules from the security list. A security list can have no rules. Notice that when you update a security list in the API, the new set of rules replaces the entire existing set of rules.

    1. On the Virtual Cloud Networks list page, select the VCN that contains the security list you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Security tab, go to the Security Lists section.
      • Under Resources, select Security Lists.
    3. Select the security list you're interested in. Depending on the option that you see:
      • Select the Security rules tab. Ingress Rules is the first table of security rules on the page. Egress Rules is the second table of security rules on the page.
      • Under Resources, you can select Ingress Rules or Egress Rules to switch between the different types of rules.
    4. To add a rule, select Add Ingress Rules (or Add Egress Rules). See details of adding a rule in Creating a Security List.
    5. To delete an existing rule, depending on the option that you see:
      • Select the checkbox next to the rule and then select Actions and then select Remove.
      • Select the checkbox next to the rule and then select Remove.
    6. If you wanted to edit an existing rule, depending on the option that you see:
      • Select the checkbox next to the rule and then select Actions and then select Edit.
      • Select the checkbox next to the rule and then select Edit.
  • Use the network security-list update command and required parameters to update the rules used in a particular security list:

    oci network security-list update --security-list-id securitylist-ocid ... [--egress-security-rules | --ingress-security-rules] rules [OPTIONS]

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

  • Run the UpdateSecurityList operation to update the rules used in a particular security list.