Skip to main content

Configuration NAT Gateway

This guide explains the configurations that can be done on the page Configuration NAT Gateway. Make sure you have created an Expert type VPC in your project. If you have created an Expert type VPC, press the Configuration button to list the NAT Gateway created.


Network Page



Configuration NAT Gateway


The NAT Gateway Configuration page displays four labels:
a. Router displays the name of the router used in the NAT Gateway configuration along with the status.
b. Floating IP used to add and delete floating IP configurations.
c. Static Route used to add and delete static IP address configurations to determine the traffic rules that will be used.
d. NAT used Add and delete NAT configurations with SNAT type or DNAT type.

Add Floating IP

The following is a guide for adding a Floating IP that will be used on the NAT Gateway:

  • On the NAT Gateway Configuration page, select the Floating IP label then click Create Floating IP.


Add Floating IP


  • Select the network used and click Create to continue the process.


Add Floating IP


  • The notification “Floating IP [floating IP name] has been successfully created” appears that the Floating IP has been successfully added to the NAT Gateway.


Add Floating IP


Delete Floating IP

Before deleting the Floating IP configuration on the NAT Gateway Configuration page, make sure you have removed the Static Route configuration and NAT configuration. Here’s a guide to deleting the Floating IP configuration.

  • Select the Floating IP label in the Action column, click the Delete button.


Delete Floating IP


  • There is a Delete Floating IP window, press the Confirm button to continue the process of deleting the Floating IP on the NAT Gateway.


Delete Floating IP


  • The notification “Floating IP [floating ip name] has been successfully deleted” appears that the Floating IP has been successfully deleted from the NAT Gateway.


Delete Floating IP


Add Static Route

To be able to add a static route to the NAT Gateway, you must create a virtual machine in the Instance menu that uses a VPC accompanied by a NAT Gateway. Here are the steps to add Static Route on the NAT Gateway: On the NAT Gateway Configuration page, select the Static Route label then click Create Static Route.


Add Static Route


  • The Create Static Route form appears, fill in all the columns available on the form.


Add Static Route


Static Route


Column Description
Destination CIDR Configuration that determines the destination network to be translated by the NAT Gateway.
Nexthop Configure by adding a Gateway IP address which is useful for forwarding data packets to the destination.
Description Configuration information about the static route created.
  • If all forms have been filled in, click the Create button and wait until the process is complete.


Add Static Route


  • Static route is available and can be used.


Add Static Route


Delete Static Route

Here’s a guide to deleting static routes:

  • On the NAT Gateway Configuration page, on the Static Route label in the Action column, click the Delete button.


Delete Static Route


  • A notification appears, click Confirm to continue the process and wait until the process is complete and the static route configuration is deleted.


Delete Static Route


Add NAT

In order to add NAT to the NAT Gateway, make sure you have added a Floating IP which can be seen in the sub-chapter Add Floating IP. There are two types of adding NAT, namely SNAT and DNAT. The following is a brief explanation of the SNAT and DNAT types:


a. SNAT (Source Network Address Translation) used to change the source IP address in a data packet that is passing, usually used when a data packet leaves the internal network to the internet network. If you choose the SNAT type, fill in the Create NAT form fields:


SNAT Type


SNAT


Column Description
Destination Address The IP address that will be the destination.
Translation Address Changing the source IP address of data packets as they pass through the router so that data packets can pass through the network easily and safely.
Description Explanation of the SNAT type configuration to be created.


b. DNAT (Destination Network Address Translation) used to change the destination IP address to the data packet that is passing, usually used when data packets enter the internal network of the internet network. JIf you choose the DNAT type then the Create NAT form column is filled in.


DNAT Type


DNAT


Column Description
Protocol The types of protocols used in data packets are:
a. TCP (Transmission Control Protocol)
b. UDP (User Datagram Protocol)
Translation Port Ports commonly used on the selected protocol.
Destination Port The port used to alias the port used in the Translation Port.
Destination Address IP address taken from Floating IP.
Translation Address The IP address or Instance that will use the created DNAT configuration
Description Explanation of NAT configuration.

Here’s a guide to adding NAT to a NAT Gateway:

  • Select the NAT label then press the Create NAT button.


Add NAT


  • Select the type of NAT configuration to use.


Add NAT


  • Select the Floating IP address previously created.


Add NAT


  • In the Translation Address column, select the instance that will use the NAT configuration.


Add NAT


  • Fill in the description column and press the Create button and wait until the process is complete.


Add NAT


  • A notification appears “NAT [NAT name] has been successfully created” that the NAT has been successfully created.


Add NAT


Delete NAT

The following is a guide to removing the NAT configuration in the Cloudeka portal service;

  • Select the NAT label in the Action column, click Delete and wait until the process is complete.


Delete NAT


  • Press the Confirm button to continue the process of deleting the NAT configuration.


Delete NAT


  • A notification appears NAT [name of nat] has been successfully deleted.


Delete NAT


×