Configuring an Internet Gateway
On Compute Cloud@Customer, you can configure an Internet Gateway (IGW) which provides the VCN with outside access through the on-premises data center network.
The IGW is configured within the VCN, so the IGW is automatically attached to the VCN in which it's configured. The source and destination must have routable, public IP addresses, and a VCN can have only one IGW. Any traffic using public IP addresses goes through the IGW. The IGW isn't required to be in the same compartment as the VCN. A subnet route table determines which public subnets can use the IGW, and the subnet security list defines the types of traffic that can use the IGW. Like a physical router, the IGW can be disabled, severing internet access no matter what permissions are established.
For more conceptual information, see Internet Gateway.
Avoid entering confidential information in names and tags.
-
In the Compute Cloud@Customer Console navigation menu, click Networking, then click Virtual Cloud Networks.
- At the top of the page, select the compartment that contains the VCN where the internet gateway will be created.
-
Click the name of the VCN.
The VCN details page is displayed.
- Under Resources, click Internet Gateways.
-
Click Create Internet Gateway.
-
Enter the following information:
-
Name: Provide a descriptive name for the internet gateway. Avoid entering confidential information
-
Create in Compartment: Select the compartment in which to create the Internet Gateway.
-
Enabled: Use the toggle to decide if the gateway is enabled at creation or not. The default is to enable the gateway:
-
(Yes: Gateway Enabled: By default, the VCN uses the gateway when created.
-
(No: Gateway Disabled): You can set the gateway not see traffic until it's explicitly enabled to do so.
-
-
Tagging: (Optional) Add one or more tags to this resource. Tags can also be applied later. For more information about tagging resources, see Resource Tags.
-
-
Click Create Internet Gateway.
The Internet Gateway is now ready for the addition of route rules or security settings. See Configuring VCN Rules and Options.
-
Use the oci network internet-gateway create command and required parameters to create a new internet gateway for the specified VCN.
oci network internet-gateway create [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateInternetGateway operation to create a new internet gateway for the specified VCN.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.