# 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 22.2.1 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:

1. 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:

<table><thead><tr><th width="206">Column</th><th>Description</th></tr></thead><tbody><tr><td>Destination Address</td><td>The IP address that will be the destination.</td></tr><tr><td>Translation Address</td><td>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.</td></tr><tr><td>Description</td><td>Explanation of the SNAT type configuration to be created.</td></tr></tbody></table>

2. 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.

<table><thead><tr><th width="214">Column</th><th>Description</th></tr></thead><tbody><tr><td>Protocol</td><td><p>The types of protocols used in data packets are:</p><ol><li>TCP (Transmission Control Protocol)</li><li>UDP (User Datagram Protocol)</li></ol></td></tr><tr><td>Translation Port</td><td>Ports commonly used on the selected protocol.</td></tr><tr><td>Destination Port</td><td>The port used to alias the port used in the Translation Port.</td></tr><tr><td>Destination Address</td><td>IP address taken from Floating IP.</td></tr><tr><td>Translation Address</td><td>The IP address or Instance that will use the created DNAT configuration</td></tr><tr><td>Description</td><td>Explanation of NAT configuration.</td></tr></tbody></table>

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

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

* Select the type of NAT configuration to use.

* Select the Floating IP address previously created.

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

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

* A notification appears "NAT \[NAT name] has been successfully created" that the NAT has been successfully created.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/guidance-for-individual/deka-flexi/nat-gateway/configuration-nat-gateway/add-nat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
