> For the complete documentation index, see [llms.txt](https://docs-epc.gitbook.io/ncs-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-epc.gitbook.io/ncs-documents/internet-nat-gateway/what-is-internet-nat-gateway.md).

# What is Internet NAT Gateway?

Internet NAT Gateway คือ บริการเชื่อมต่อระบบเครือข่ายภายใน VPC Network สำหรับ Compute Instance ให้สามารถเชื่อมต่ออินเตอร์เน็ตได้ โดยอาศัยเทคนิคการทำงานของ Source Network Address Translation (SNAT) โดยทำการแปลง Internal IP (Private IP) ที่กำหนดใน VPC Network ให้เป็น External IP (Public IP)

<figure><img src="/files/Ob39gfp1PXLvW5lUPaL1" alt=""><figcaption></figcaption></figure>

#### Key Benefits

* **เพิ่มความปลอดภัย** : คือ ทำหน้าที่ซ่อน IP address ของระบบภายใน เช่น Database Server และระบบต่างๆ เชื่อมต่อกับ Internet โดยที่ไม่จำเป็นต้องมีการใช้งาน Public IP (External IP) ต่อใช้งานตรงกับ  Compute Instance (Server) ทุกๆ เครื่อง ซึ่งทำให้ป้องกันการโจมตีจากผู้ไม่หวังดี (Hacker)
* **เพิ่มประสิทธิภาพการใช้งาน Public IP (External IP)** : คือ สามารถ share ใช้งาน Public IP (External IP) เพียง 1 IP สำหรับเชื่อมต่อใช้งาน Internet ให้กับ Compute Instance (Server) หลายๆ เครื่องได้ โดยไม่จำเป็นต้องต่อใช้งาน Public IP (External IP) ให้กับทุกๆ Compute Instance เมื่อต้องการเชื่อมต่อใช้งาน Internet
* **Fixed Public IP** : ระบุ Public IP (External IP) ทำให้สะดวกและง่ายในการเชื่อมต่อระหว่าง Application ต้นทางและปลายทาง ที่มีความปลอดภัยสูง เช่น Application payment ที่ต้องมีการระบุ IP ในการเชื่อมต่อระหว่างต้นทางและปลายทางสำหรับทำ Whitelist เพื่ออนุญาติให้เชื่อมต่อกันได้เฉพาะที่แจ้งเท่านั้น
* **Operational simplicity** : Admin ไม่ต้องทำการ manual เอง ซึ่งทำให้ลดงานของ Admin และง่ายต่อการใช้งาน

#### ข้อควรทราบ

* รองรับเฉพาะการการเชื่อมต่อการใช้งาน Internet แบบ Source Network Address Translation (SNAT) เท่านั้น
* เมื่อมีการใช้งาน Internet NAT Gateway และ External IP ใน VPC Network เดียวกัน จะมีผลต่อการใช้งาน Internet ขาเข้า (Ingress) และขาออก (Egress) ดังนี้
  * ขาเข้า (Ingress) คือ การเชื่อมต่อจาก Internet เข้ามายัง Compute Instance จะมี traffic เข้าถึง Compute Instance โดยตรงผ่าน External IP เช่นเดิม
  * ขาออก (Egress) คือ การเชื่อมต่อจาก Compute Instance ออกไปยัง Internet จะมี traffic ออกผ่านไปยัง Internet NAT Gateway โดยใช้งาน Public IP แทนการใช้ External IP

{% hint style="info" %}
Note : กรณีที่ VPC Network ไม่ได้มีการใช้งาน Internet NAT Gateway การเชื่อมต่อจาก Compute Instance ออกไปยัง Internet จะมี traffic ออกผ่าน External IP โดยตรง
{% endhint %}

* **ข้อจำกัด**
  * 1 Project สามารถสร้าง Internet NAT Gateway ได้สูงสุด 10 units
  * Internet NAT Gateway 1 unit สามารถเชื่อมต่อกับ VPC Network ได้สูงสุด 3 VPC Network เท่านั้น
  * รองรับการรับส่ง packet ได้สูงสุด 300 Kpps (300,000 แพ็กเกจต่อวินาที)
  * รองรับการรับส่งข้อมูล Bandwidth สูงสุด 1.5 Gbps


---

# 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, and the optional `goal` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/internet-nat-gateway/what-is-internet-nat-gateway.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
