You are on page 1of 20

NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

1 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Choose a CIDR block - 10.0.0.0/16 and keep the remaining options as it is.

Click - Create Virtual Cloud Network (This creates a VCN, and you can see the details page of

2 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

3 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Click **Create Route table** Don’t add any rule in it for now, we will add it later.

4 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Click on **Create Security List**, create a *private_security_list* Remove all ingress and egres

5 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

6 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

7 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

8 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

9 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

10 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Click on **Default Route Table**, and **Edit**

Target Type: Internet Gateway


Compartment: *your compartment name*
Destination CIDR : 0.0.0.0/0
Target Internet Gateway: *your internet gateway name*

11 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Source CIDR : 10.0.20.0/24


Source Type: CIDR
Protocols: All Protocols

Destination CIDR : 0.0.0.0/0


Source Type: CIDR
Protocols: All Protocols

12 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Name: Bastion Host


Availability Domain: <Choose anyone among the three>
Operation System: Oracle Linux 7.5 (use default)
Instance Type: Virtual Machine
Instance Shape: VM.Standard2.1 (Or Use the shape available in your tenancy)
Boot Volume: Use default Boot Volume 46 GB
SSH key: <use your ssh_key.pub here>
Virtual Cloud Network: TrainingVCN <Your VCN name>
Subnet: <Your Public Subnet Name>

13 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

14 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Name: Private_Instance
Availability Domain: <Choose anyone among the three>
Operation System: Oracle Linux 7.5 (use default)
Instance Type: Virtual Machine
Instance Shape: VM.Standard2.1 (Or Use the shape available in your tenancy)
Boot Volume: Use default Boot Volume 46 GB
SSH key: <use your ssh_key.pub here>
Virtual Cloud Network: TrainingVCN <Your VCN name>
Subnet: <Your Private Subnet Name>

15 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

ssh -i /pathtosshprivatekey/ opc@<Public IP of Bastion Host>

16 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

$ ssh -t -o ProxyCommand='ssh -i /pathtosshprivatekey/ opc@<Bastion Host public IP> -W %h:%p %r'


IP>

17 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Provide a Name for Nat Gateway device.


Click *Create*
*Close* the dialog box

18 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

Click *+Another Route Rule*


Target Type: Nat Gateway
Destination CIDR: 0.0.0.0/0
Compartment: <Your Compartment>
Target Type Name: Nat Gateway

19 sur 20 22/05/2019 à 16:05


NAT Gateway | Oracle Cloud Infrastructure https://oracle.github.io/learning-library/oci-library/L200-LAB/NAT_Gat...

20 sur 20 22/05/2019 à 16:05

You might also like