> For the complete documentation index, see [llms.txt](https://ccsa.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ccsa.adot8.com/check-point/nat.md).

# NAT

## &#x20;Concept

NAT works the same on the Firewall/Security Gateway the same way it works with modern Routers. It uses **Connection Tracking** to track which conversation belongs to which device. It takes the private IP and translates it to the configured Public IP; when it receives a reply back it will check its **Connection Tracking table** and translate the reply back to the private IP and forward the packet.&#x20;

## Check Point NAT

### NAT Types

<figure><img src="https://94989084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS4a9UbODk0dnsPGWNUN%2Fuploads%2F5ymUxZhWZgmYuQFDDVHf%2Fimage.png?alt=media&amp;token=4b6b9f2a-a684-48e3-bac6-faff4db62d7c" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Hide NAT is like NAT Overload in Cisco terms
{% endhint %}

<figure><img src="https://94989084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS4a9UbODk0dnsPGWNUN%2Fuploads%2F5ev7cPShq2FLLFUeaw7A%2Fimage.png?alt=media&amp;token=fdd6158d-3bc2-4a9d-9bac-2df6a30af34f" alt=""><figcaption><p>Static NAT</p></figcaption></figure>

<figure><img src="https://94989084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS4a9UbODk0dnsPGWNUN%2Fuploads%2F8649DVCZszYLvbNk3Zne%2Fimage.png?alt=media&amp;token=1ffff82b-87fe-42d5-910a-01d6169215a7" alt=""><figcaption><p>Hide NAT</p></figcaption></figure>

### NAT Rules

* **Automatic NAT Rules**
  * The Security Gateway will automatically create NAT rules based off the object's properties
* **Manual NAT Rules**
  * Specified IP addresses (dst & src) or services (ports)
  * Static NAT in only one direction
  * Translation of source and destination IP addresses in the same packet
  * Translation of services (dst ports)
  * Translation of IP addresses and dynamic objects

### NAT Rule Enforcement

* Automatic
  * Two automatic NAT rules that matcha connection can be enforced
    * One rule for the source
      * One rule for the destination
* Manual
  * The first manual NAT rule that matches a connection is enforced. It will skip the others after

### Proxy Arp

This is a technique by which a proxy server on a given network answers the ARP queries for an IP address that is not on that network

The proxy is aware of the location of the traffic destination and offers its own MAC as the destination. The traffic directed to the proxy address is typically routed to the intended destination using another interface or tunnel

## Practice Questions

<figure><img src="https://94989084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS4a9UbODk0dnsPGWNUN%2Fuploads%2FmEIEk18ezUvH2s3tIjnl%2Fimage.png?alt=media&amp;token=1e0aa3f8-62f7-47d9-887e-645a4db85833" alt=""><figcaption></figcaption></figure>
