OCI: Gateway Types and Network Routing Fundamentals Part-4

When working with Oracle Cloud Infrastructure (OCI), understanding the different types of gateways is essential for designing secure and efficient network connectivity. In this article, I will explain Internet Gateway, NAT Gateway, Service Gateway, and Dynamic Routing Gateway (DRG) in simple terms.

Internet Gateway (IGW)

An Internet Gateway (IGW) is an optional gateway that can be attached to a Virtual Cloud Network (VCN) to enable direct connectivity between the VCN and the internet.

The Internet Gateway supports both inbound and outbound internet traffic.

By default, a compute instance deployed in a public subnet cannot access the internet unless:

  • An Internet Gateway is created and attached to the VCN.
  • The route table is configured to direct internet traffic through the Internet Gateway.
  • The instance has a public IP address assigned.

Oracle manages the availability, redundancy, and maintenance of the Internet Gateway internally.

Key Points

Used primarily for public subnets.

Enables inbound and outbound internet connectivity.

Requires proper route table configuration.

Instances typically need a public IP address to communicate through the Internet Gateway.


Network Address Translation (NAT) Gateway

A NAT Gateway enables instances in a private subnet to access the internet without exposing them to inbound internet connections.

If a server is deployed in a private subnet and needs to download operating system updates, RPM packages, application patches, or access external repositories, a NAT Gateway can be used.

The private subnet itself does not have direct internet connectivity. The NAT Gateway provides outbound internet access while keeping the instances private.

Key Points

  • Used by resources in private subnets.
  • Supports outbound internet traffic only.
  • Prevents inbound internet access to private instances.
  • Allows patch downloads, OS updates, and access to external repositories.
  • Public IP addresses are not required on private instances.
  • OCI automatically assigns a public IP to the NAT Gateway itself.

Common Use Cases

  • Downloading operating system updates.
  • Downloading RPM packages.
  • Downloading Oracle patches.
  • Accessing external repositories and APIs.

 

Service Gateway (SGW)

A Service Gateway allows resources in a private subnet to access Oracle Cloud services without using the internet.

Service Gateways are created at the VCN level. During creation, you can choose whether the gateway should provide access only to Object Storage or to all supported Oracle services.

Examples of OCI Services Accessed Through Service Gateway

  • Oracle Cloud Object Storage
  • Oracle Autonomous Database
  • Oracle Functions
  • Other supported OCI services

Common Use Cases

  • Backing up databases to Object Storage.
  • Connecting to Autonomous Database.
  • Accessing Oracle-managed cloud services privately.

Before Service Gateway

  • Private instances access Object Storage through the Internet Gateway.
  • Traffic leaves the VCN and uses public endpoints.
  • NAT or public internet access may be required.
  • Security exposure is higher.

After Service Gateway

  • Private instances access Object Storage through the Service Gateway.
  • Traffic remains within Oracle's private backbone network.
  • No public IP is required.
  • Security is improved and network exposure is reduced.

 

Dynamic Routing Gateway (DRG)

  • A Dynamic Routing Gateway (DRG) is a virtual router that connects your OCI VCN to networks outside OCI.
  • DRG is commonly used to establish private connectivity between OCI and external environments.

Supported Connections

  • On-premises data centers
  • Another OCI region through Remote Peering
  • Other cloud providers such as AWS, Azure, and Google Cloud
  • Site-to-Site VPN connections
  • FastConnect connections

Key Points

  • Acts as a virtual router between OCI and external networks.
  • Enables private communication between OCI and on-premises environments.
  • Supports VPN and FastConnect connectivity.
  • Used for hybrid cloud architectures and multi-cloud deployments.

Common Use Cases

  • Connecting an on-premises data center to OCI.
  • Accessing Oracle E-Business Suite hosted in OCI from a corporate network.
  • Building hybrid cloud solutions.
  • Establishing connectivity between OCI regions.

 

Gateway Type

Purpose

Internet Gateway (IGW)

Provides inbound and outbound internet access for public subnet resources

NAT Gateway

Provides outbound internet access for private subnet resources

Service Gateway

Provides private access to OCI services without using the internet

Dynamic Routing Gateway (DRG)

Provides private connectivity between OCI and external networks such as on-premises data centers, other OCI regions, and other cloud providers

 Related posts:

Comments

Popular posts from this blog

How to troubleshoot long running concurrent request in R12.2

JSP Compilation in R12.2

How to find EBS URL in R12.2