NAT Gateway ဆိုတာဘာလဲ?
NAT Gateway ဆိုတာက AWS ရဲ့ Network Address Translation လုပ်ပေးတဲ့ managed service Gateway အမျိုးအစားတစ်ခု ဖြစ်ပါတယ်။
NAT Gateway ဘယ်အချိန်မှာ သုံးသင့်လဲ?
VPC ထဲက private resources တွေ (ဥပမာ - Database Server, Application Server) အတွက် သုံးပါတယ်။ ဒီ server တွေကို:
- Inbound traffic လက်မခံချင်ဘူး (isolate လုပ်ချင်တယ်)
- ဒါပေမယ့် patch update, package install လုပ်ဖို့အတွက် internet ကို outbound သုံးချင်တယ်
ဆိုတဲ့အခြေအနေမျိုးမှာ NAT Gateway ကို အသုံးပြုနိုင်ပါတယ်။
NAT Gateway vs NAT Instance
NAT Gateway နဲ့အတူ NAT Instance ကိုလည်း သုံးလို့ရပါတယ်။
| Feature | NAT Gateway | NAT Instance |
|---|---|---|
| Type | Managed AWS Service | EC2 Instance |
| Management | AWS managed | Self-managed |
| Bandwidth | Up to 100 Gbps | Instance size ပေါ်မူတည် |
| High Availability | Automatic | Manual setup required |
NAT Instance ဆိုတာ EC2 instance တစ်လုံးကို Amazon ရဲ့ NAT AMI (Amazon Machine Image) သုံးပြီး launch လုပ်ထားတဲ့ instance ဖြစ်ပါတယ်။
NOTE!
NAT gateway နဲ့ NAT instance ရဲ့ကွာခြားချက်တွေကို ဒီမှာ ဖတ်နိုင်ပါတယ်။
NAT Gateway Setup Steps
NAT Gateway ကို create လုပ်မယ်ဆိုရင် အောက်ပါအဆင့်တွေ လိုအပ်ပါတယ်:
1.. NAT Gateway Placement
- NAT Gateway ကို Public Subnet ထဲမှာ create လုပ်ရပါမယ်
- Public Subnet ဆိုတာ Route Table ထဲမှာ 0.0.0.0/0 → Internet Gateway route ပါတဲ့ subnet ဖြစ်ပါတယ်
2.. Route Table Configuration
- Private Subnet ရဲ့ Route Table မှာ အောက်ပါ route ကို ထည့်ပေးရပါမယ်:
| Destination | Target |
|---|---|
| 0.0.0.0/0 | nat-xxxxxxxxx (NAT Gateway ID) |
ဒီ setup ကြောင့် private subnet ထဲက resources တွေက internet ကို outbound access ရရှိသွားမှာ ဖြစ်ပါတယ်။
Discussion
Join the conversation
How do you feel about this article?
Comments
Sign in to join the conversation
Sign in to be the first to comment!
Share Your Article
Share with your professional network
Recent Articles

AWS - Application Load Balancer
Elastic Load Balancing (ELB) ELB ဆိုတာကတော့ request တွေကို တစ်နေရာတည်းမှ လက်ခံကာ Amazon EC2 instances၊ containers, etc.....

Terraform Day 3: Benefits of Terraform State
Terraform ကိုလေ့လာ တဲ့အခါ ကျွန််တော်တို့ရဲ့ Project Folder ထဲမှာ terraform.tfstate ဆိုတဲ့ ဖိုင်လေးကို တွေ့ဖူးကြပါလိမ့်မယ...

Terraform Day 2: Essential IaC Principles You Must Know
မနေ့ကတော့ Terraform အကြောင်း အကြမ်းဖျင်း Concept ကို ပြောပြခဲ့ပြီးပြီဆိုတော့ ဒီနေ့မှာတော့ Terraform ကို Professional ကျက...

TCP/IP Protocol
အားလုံးပဲမင်္ဂလာပါ။ ဒီနေ့ ကျွန်တော်တို့ TCP/IP Protocol အကြောင်း ဆွေးနွေးသွားပါမယ်။ ပထမဆုံးအနေနဲ့ TCP/IP ရဲ့ History လေး...

Terraform Day 1: Introduction to IAC and Terraform
ကျွန်တော်တို့ cloud အကြောင်း စပြောကြပြီဆိုရင် အရင်ဆုံး ခေါင်းထဲရောက်လာတာ Console ထဲဝင်၊ UI ကနေ ခလုတ်လေးတွေ လိုက်နှိပ်ပြီ...
