Configure Intra-VCN and VCN Gateway Ingress Routing for Cloud Firewall for Oracle Cloud (OCI)

In 2022, Oracle CloudClosed Oracle Cloud is a cloud computing service offered by Oracle Corporation. It provides servers, storage, networks, applications, and services through a global network of Oracle Corporation-managed data centers. Infrastructure introduced a set of routing enhancements that significantly expand traffic control capabilities within and into Virtual Cloud Networks (VCNs). The three key additions are:

  • Intra-VCN Routing - Allows administrators to define explicit routes for traffic flowing between subnets within the same VCN, rather than relying on default local routing.

  • Internet and NAT Gateway Ingress Routing - Enables route control for inbound public traffic entering a VCN through an Internet Gateway or NAT Gateway.

  • Service Gateway Ingress Routing - Allows traffic from OCI services, arriving via a Service Gateway, to be directed to specific destinations inside a VCN.

These enhancements make it possible to deploy Check Point Cloud Firewall in a simpler, more scalable architecture — with full inspection of both intra-VCN (east-west) and ingress (north-south) traffic flows - without relying on the legacy VCN direct local routing model.

For the official Oracle announcement, refer to the Oracle Cloud Infrastructure blog.

Supported Use Case

This guide covers a single-hub topology that serves as a flexible baseline for a wide range of deployment configurations. The hub-and-spoke model places a Cloud Firewall clusterClosed Two or more Security Gateways that work together in a redundant configuration - High Availability, or Load Sharing. at the center of all traffic flows, enforcing security policyClosed Collection of rules that control network traffic and enforce organization guidelines for data protection and access to resources with packet inspection. for both internal subnet-to-subnet traffic and traffic entering the environment from the Internet or OCI services.

Prerequisites

Before proceeding, make sure the following are in place:

  • An active Oracle Cloud Infrastructure account. If you do not have one, register at the Oracle Cloud sign-up page.

  • A functioning Intra-VCN network topology, configured as described in the topology section below.

  • A Check Point Cloud Firewall cluster deployed in the Hub (Security) VCN. Cloud Firewall solution is available through the Oracle Cloud Marketplace.

  • Linux VM instances running in their respective subnets, as defined by the use-case topology.

Note - In production environments, deploy Cloud Firewall instances in a High Availability (HA) cluster configuration.

Reference Topology

Refer to this topology diagram for a visual representation of the subnet layout, VCN structure, DRG attachments, and traffic flow paths described in the configuration steps below:

Configuration

This section covers the minimum required configuration to establish Cloud Firewall-based inspection for intra-VCN and ingress traffic on OCI.

  1. VCN and Subnet Layout

    Create the following subnets within the Security/DMZ VCN and the Internal VCN. In the OCI Console, navigate to Virtual Cloud Networks > Virtual Cloud Network Details to create and manage subnets.

    • Security VCN - 10.100.0.0/16:

      • Frontend Subnet - 10.100.0.0/24

      • Backend Subnet - 10.100.1.0/24

      • DMZ Subnet - 10.100.2.0/24

    • Internal VCN - 10.10.0.0/16:

      • Web Subnet - 10.10.0.0/24

      • Database Subnet - 10.10.1.0/24

    Then deploy the Cloud Firewall instances with network interfaces attached to the Frontend and Backend subnets.

  2. Cloud Firewall Gateway Configuration

    Deploy the Cloud Firewall cluster by following the instructions in the Deploying a Check Point Cluster in Oracle Cloud Infrastructure chapter.

    After deployment, add the following static routes on each cluster memberClosed Security Gateway that is part of a cluster.:

    Destination

    Next Hop

    0.0.0.0/0 (Default) 10.100.0.1
    10.100.0.0/16 10.100.1.1
    10.100.2.0/24 10.100.1.1
  3. Network Load Balancer

    1. Before creating the load balancer, deploy a server instance in the Web Subnet of the Internal VCN and note its private IP address.

    2. Then configure the Network Load Balancer (NLB) as follows:

      1. In the OCI Console, create a Network Load Balancer, selecting the Security VCN and the DMZ Subnet for networking.

      2. Create a Listener with protocol TCP and port 8080.

      3. Create a Backend Set with a health check policy targeting port 80 on the server instance created above. Do not add any backends at this stage.

    3. After the NLB is provisioned, navigate to the existing Backend Set, click Edit, and set the load balancing policy to 5-Tuple Hash. The Preserve Source IP option does not need to be enabled.

    4. Save the changes, then click Add Backends. Select IP Addresses (not Compute Instances), enter the server's private IP address, and set the backend port to 80.

  4. Dynamic Routing Gateway (DRG)

    Create a DRG and attach it to both VCNs using the following attachment configuration:

    Attachment Name

    VCN

    DRG Route Table

    VCN Route Type

    sec-drg-att Security FromFirewall Subnet CIDRs
    serv-drg-att Servers 2Firewall VCN CIDRs

    DRG Route Table — FromFirewall (for sec-drg-att):

    Destination CIDR

    Next Hop Attachment Type

    Next Hop Attachment Name

    10.10.0.0/16 Virtual Cloud Network sec-drg-att

    VCN Route Table — rt-to-FW (associated with sec-drg-att):

    Destination

    Target Type

    Target

    Route Type

    0.0.0.0/0 Private IP 10.100.1.4 Static

    DRG Route Table — 2Firewall (for serv-drg-att):

    Destination CIDR

    Next Hop Attachment Type

    Next Hop Attachment Name

    0.0.0.0/0 Virtual Cloud Network sec-drg-att

    No VCN Route Table is required for serv-drg-att. Do not enable route redistribution on this attachment.

  5. VCN Route Tables

    1. Security VCN

      Default Route Table for Security VCN:

      Destination

      Target Type

      Target

      Route Type

      0.0.0.0/0 Internet Gateway sec-IGW Static
      10.0.0.0/8 Private IP 10.100.0.4 Static

      Route Table — backend-default:

      Destination

      Target Type

      Target

      Route Type

      0.0.0.0/0 Private IP 10.100.1.4 Static
      10.0.0.0/8 Dynamic Routing Gateway mydrg Static

      Route Table — ingressRT:

      Destination

      Target Type

      Target

      Route Type

      10.100.2.0/24 Private IP 10.100.0.4 Static

      Route Table — DMZ_RT:

      Destination

      Target Type

      Target

      Route Type

      0.0.0.0/0 Private IP 10.100.1.4 Static

      Route Table — VCN-Ingress:

    2. Destination

      Target Type

      Target

      Route Type

      0.0.0.0/0 Internet Gateway sec-IGW Static
      10.10.0.0/16 Private IP 10.100.0.4 Static

      10.100.0.0/16

      Private IP

      10.100.0.4

      Static

    3. Servers VCN

      Default Route Table for Servers VCN:

      Destination

      Target Type

      Target

      Route Type

      0.0.0.0/0 Dynamic Routing Gateway mydrg Static
  6. Security Policy Configuration

    NAT Rules

    Create the following network objects and associated NAT rules in SmartConsoleClosed Check Point GUI application used to manage a Check Point environment - configure Security Policies, configure devices, monitor products and events, install updates, and so on.:

    Network Name

    Address / Mask

    NAT Type

    Translated Address

    Servers 10.10.0.0 / 255.255.255.0 Hide 10.100.1.4
    Frontend 10.100.0.0 / 255.255.255.0 Hide Gateway

    Backend

    10.100.1.0 / 255.255.255.0

    Hide

    Gateway

    DMZ

    10.100.2.0 / 255.255.255.0

    Hide

    10.100.1.4

    Gateway Topology

    1. Create a Network Group object containing the following networks:

      1. Frontend

      2. Servers

      3. DMZ

      4. Backend

    2. In the Gateway Object, set the topology for eth1 to the Network Group created above.

    3. Set the topology for eth0 to External.

    Access Control Policy

    • Define rules specifying the appropriate destination hosts or networks in the Destination column.

    • Ensure a Cleanup Rule is in place with an action of Drop for all unmatched traffic.

    • Enable logging on relevant rules to facilitate troubleshooting and visibility.