For some Oracle Cloud services or services that support instances, you can add your own Internet Protocol (IP) whitelist and blacklist rules, and activate the firewall for the cloud service.
Use the Firewall page in Infrastructure Classic Console or Applications Console to create your whitelist and blacklist rules and enable the firewall.
- Sign in to Applications Console or Infrastructure Classic Console.Sign in to the Applications Console if you want to work with Oracle Cloud Applications. Sign in to Infrastructure Classic Console if you want to access Oracle Cloud infrastructure and platform services. If you see Infrastructure Classic at the top of the page when you sign in to Oracle Cloud, then you are using Infrastructure Classic Console and your subscription does not support access to the Infrastructure Console.
- Navigate to the service listing for which you want to create and enable firewall rules.
- Click the service name to open the details page for the service.
- Click the Firewall tile. This tile is hidden for some Oracle Cloud Application services in mid-market environments.
- If your service has instances, select an instance from the list.
- In the right pane, under the Rules section, click Create Rule.The Create Firewall Rule dialog box is displayed.
- Select the type of rule you want to create.The options are:
- By Address: To allow or block an IP address, such as 126.96.36.199.
- By Range: To allow or block a range of IP addresses such as range from 188.8.131.52 to 184.108.40.206.
- By CIDR: To allow or block IP addresses allocated by Classless Inter-Domain Routing (CIDR), such as range from 220.127.116.11 to 18.104.22.168.
- By Subnet/Mask: To allow or block IP addresses based on subnet masks, such as range from 22.214.171.124 to 126.96.36.199. The system rejects addresses such as 0.0.0.0 or 255.255.255.255. The system also rejects addresses if their binary equivalents don’t contain a continuous sequence of 1s. For example, the system rejects 255.0.255.0 because this is equivalent to 11111111 00000000 11111111 00000000 in binary format.
- Select Allow or Deny from the Rule Type list as per your requirement.
- Specify the address, range, CIDR, or subnet mask based on what you selected in Step 6.
- Click Create.
- Under the Activation section, click Enable.
You can also modify or remove firewall rules by clicking Action, and then selecting Modify or Remove accordingly. After you are done making updates to the rules, click Apply. The Apply button is disabled when you select Whitelist from the Disposition list. Click Cancel if you wish to revert your updates.
If you specify None as the Disposition, then firewall rules are disabled. You’ll be prompted for confirmation when disabling firewall rules. The Create Rule button is disabled when you select None as the Disposition.