惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
月光博客
月光博客
S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
J
Java Code Geeks
酷 壳 – CoolShell
酷 壳 – CoolShell
TaoSecurity Blog
TaoSecurity Blog
V
Visual Studio Blog
博客园 - 叶小钗
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
罗磊的独立博客
雷峰网
雷峰网
T
Tor Project blog
L
LINUX DO - 最新话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
Spread Privacy
Spread Privacy
C
CERT Recently Published Vulnerability Notes
腾讯CDC
Cloudbric
Cloudbric
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
T
Troy Hunt's Blog
T
Threatpost
C
Check Point Blog
Vercel News
Vercel News
I
Intezer
Engineering at Meta
Engineering at Meta
C
Cybersecurity and Infrastructure Security Agency CISA
D
DataBreaches.Net
SecWiki News
SecWiki News
Help Net Security
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Hacker News: Ask HN
Hacker News: Ask HN
AI
AI
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
Attack and Defense Labs
Attack and Defense Labs

Megaport Blog

A Guide to Cloud Storage How the Data Center Is Evolving in 2026 What to Expect When Attending Your First Network Operator Group (NOG) Nine Ways to Connect to Cloud Using Private Connectivity Migrate Your On-premises to the Cloud: A Step-by-Step Guide How to Lower Your Egress Fees in 2026 How to Achieve Data Sovereignty in Europe Cisco and Megaport: Redefining the Edge of Modern Networking How to Reduce Latency in Your Multicloud Environment Introducing Megaport High-Speed Cross-Cloud Encryption Are Businesses Leaving the Cloud? Using Meraki and Megaport Virtual Edge for Multicloud Networking Equinix Metal® is Going Away: Here’s What You Can Do Introducing Megaport On-ramp as a Service Megaport’s Full Solution Portfolio Is Coming to India New Bare-metal GPU Instance Now Available with NVIDIA RTX Pro 6000 A Look Back at 2025: Megaport's Biggest Updates Megaport Expands Into India With Strategic Acquisition of Extreme IX Your 2026 Predictions From AWS re:Invent 2025 What’s Next for NaaS? Top Trends for 2026 What is IPsec? When to Move From Public Internet to Private Connectivity Megaport and Latitude.sh: Bringing Compute and Connectivity Together How to Improve Your Microsoft ExpressRoute Resilience with Megaport Connectivity Comparing Ways to Connect to AWS What is API-First Networking? The Hidden Cost of Running Cloud-Hosted SD-WAN for IaaS How to Overcome NaaS Integration Challenges Introducing SCION with Anapaya and Megaport How You Can Use Network as a Service (NaaS) to Future-Proof Your Network Introducing 400G Ports All the As-a-services, Compared Introducing Megaport IPsec Tunnels High Score: Megaport Hits 1,000 Locations A Guide to Colocation Data Centers Maximizing Peering Through Flow Analysis How to Build Resilient Networks for AI Production Workloads Introducing Packet Filtering on Megaport Cloud Router Building Resilient Government IT: Strategies for Secure, Compliant, and Scalable Connectivity Future-Proofing Government IT: Balancing Innovation, Security, and Sovereignty in a Changing World Telstra Programmable Network Is Being Discontinued. Here’s How to Migrate The Future of WAN Design Depends on Network as a Service (NaaS) Cisco Webex Edge Connect Launches on Megaport Voice and Video Exchange How to Prepare for APRA CPS 230 Regulations Comparing the SD-WAN Licensing Needs of Major Vendors A Guide to Improving Network Performance How Latitude.sh, Wasabi, and Megaport Unlock Cost-Effective Multicloud Four Ways to Connect Your Clouds SD-WAN and MPLS: Weighing the Similarities, Differences, and Benefits What is Network as a Service (NaaS)? How to Arrange Bilateral Peering Sessions Comparing Major SD-WAN Vendors Software Defined Networking in the Healthcare Industry Deploying A Global Network in Minutes With Megaport AWS Direct Connect Gateway (DGW) Data Transfer Outbound Rules Bilateral and Multilateral Peering: What’s the Difference? Multi-Region SD-WAN: Why Megaport SDCI is the Right Choice Microsoft Azure is Going Secure by Default. Are You Ready? Building Production-Ready AI Infrastructure: How Megaport and Vultr Are Solving the Enterprise Challenge Introducing Megaport NAT Gateway A Guide to AWS Security Tools How to Deploy Amazon Bedrock Using AWS Direct Connect and Megaport Azure Private Link, Explained Introducing 100G MCRs Your Questions Answered on Simplifying Hybrid and Multicloud Network Connectivity How to Fix Poor AWS Latency A Look Back at 2024: Megaport’s Biggest Updates Your 2025 Predictions From AWS re:Invent 2024 Six Ways to Get a More Resilient Network in 2025 Multicloud Security: Challenges and Solutions The Real Cost of High Network Latency Why Brazil is Your Key to Unlocking Business Growth in Latin America Why You Need Integrated Network Security Six Key Differences Between Major Cloud Providers How to Automate Your Megaport Infrastructure With APIs Why Italy is Europe’s Next Cloud Expansion Hotspot How to Lower Your Cloud Costs Peering: How Local Is Local? Introducing Megaport AI Exchange Two Scenarios for Hybrid Multicloud Deployment With IBM Cloud and Microsoft Azure How to Connect Equinix and Digital Realty Megaport Enables Microsoft Azure ExpressRoute Metro for More Resilient Network Connectivity Executives, Here’s What Your Network Team Wants You to Know Easy Ways to Interconnect Your Network The Role of the Data Center in Your Network 100G VXC Expansion: Now Available From 597 Data Centers Worldwide Top 10 How-To Guides To Improve Your Network Comparing Encryption in Transit Options A Sustainable Business Strategy Starts With Your Network Solutions to Common API Issues With Megaport Transforming Financial Connectivity: Introducing Megaport Financial Services Exchange (FSX) Megaport Enhancing Connectivity in Adelaide Megaport’s Latest Portal Features and Functionalities Automate Your Network Deployments With The New Megaport Terraform Provider A Recap of the Megaport World Tour 2024 Top 5 Cloud and Networking Announcements From Cisco Live 2024 Megaport Enhancing Connectivity in Canberra AWS PrivateLink, Explained How Megaport and Wasabi Are Simplifying Cloud Storage Megaport Launches First AWS Direct Connect Network Service Offering on AWS Marketplace
A Guide to NAT Gateway
Ryan Cassily · 2026-04-08 · via Megaport Blog

By Ryan Cassily, Solutions Architect

What it is, how it works, when to use it, and how to optimize it.

Table of Contents

Network Address Translation (NAT) has been around for a long time, playing a critical role in extending the lifespan of IPv4 as well as providing breathing room for deploying IPv6. Enterprises have been using it for decades in their corporate and data center networks as an integral part of their network management and security portfolio.

As organizations change the way they use cloud-based services, IT teams look to tighten their security while scaling their private subnets with ease. To solve this problem, NAT gateway is a natural addition to their network. We look at how it works, when to use it, and how you can get more from it.

What is a NAT gateway?

A Network Address Translation (NAT) gateway allows your resources located in a private subnet to safely access the public internet and other external resources, without allowing inbound connections back to them. These resources are virtual machines (VMs) like databases, app servers, or even managed services, often running with extensive data requirements.

Acting as a conduit, a NAT gateway essentially translates private IP addresses to public ones for outbound traffic.

How do NAT gateways work?

Say a resource in one of your private subnets needs to download an update from the internet. The NAT gateway will receive and handle that request, replacing the IP with its own public IP before sending the request out and returning the response. Only solicited inbound responses will be allowed, so your resource will receive the required update but any other requests will be denied.

NAT gateway offerings from major cloud providers

AWS

AWS provides both public and private NAT gateways. Public (default) instances allow resources in a private subnet to connect to the internet by translating the private source IP address to a public IP address. The instances can’t receive unsolicited inbound connections from the internet.

Private instances allow resources in a private subnet to connect to other VPCs or your on-premises network through a private NAT gateway, but the instances can’t receive unsolicited inbound connections from the other VPCs or the on-premises network.

Both instances are highly scalable and managed by AWS, supporting 5 Gbps bandwidth and automatically scaling up to 100 Gbps.

Azure

Azure NAT Gateway is attached to your VNet subnet and doesn’t require any additional routing configurations. It allows you to initiate connections from your virtual network to the internet while blocking unsolicited inbound connections. Each NAT Gateway automatically scales up to 50 Gbps.

Google Cloud

Google Cloud NAT provides both public and private NAT types. Public NAT allows internal virtual machines with private IP addresses to reach destinations on the internet while also blocking unsolicited traffic; private NAT allows internal virtual machines to communicate between VPC networks.

Google Cloud NAT auto-scales to accommodate egress bandwidth limits for routing outside a VPC network per-instance, up to 25 Gbps.

Oracle

Oracle NAT Gateway attaches to a Virtual Cloud Network (VCN) and allows outbound connectivity to the internet from a private network while blocking unsolicited traffic. You can configure only one NAT Gateway per VCN, which supports up to 20,000 concurrent connections to a single destination.

There is no cost for the NAT Gateway, however, there is an outbound data charge.

Benefits of NAT gateway

  • Tighter security: Keeps private resources hidden from the internet while still allowing outbound traffic.
  • High availability: Can operate across multiple fault-isolated zones or data centers (e.g. AWS Availability Zones).
  • Simplified management: Typically offered as a managed service, reducing maintenance and operational overhead.
  • Consistent outbound identity: Uses a fixed public IP address for all outbound traffic, making access control and allow-listing easier.
  • Better performance: Designed to handle large volumes of network traffic automatically.
  • Seamless integration: Works easily with virtual networks, route tables, and hybrid connectivity setups in any cloud environment.

When to use NAT gateway

If your organization is mid- to enterprise-sized and moves a lot of data, NAT gateway is worth implementing. Key use cases include:

  • Private instance internet access: Allow EC2 instances in private subnets to access the internet for updates, patches, or software downloads.
  • Access external APIs or services: Enable backend servers to call external APIs or third-party services without exposing their IPs.
  • Secure data transfer: Let private resources send data to the internet (e.g. upload to S3 or external analytics) while preventing inbound access.
  • Hybrid connectivity: Support on-premises systems that connect to cloud resources through a VPN or Direct Connect, where only outbound internet access is required.
  • Compliance or security isolation: Maintain strict network segmentation for compliance while still allowing outbound connectivity for controlled operations.
  • Managed service access: Allow private subnets to connect to public endpoints without giving the instances public IPs.

How to deploy NAT Gateway

NAT Gateway needs to be deployed through your cloud provider (if they offer this) or a third-party provider like Megaport.

Megaport NAT Gateway offers a seamless deployment and management experience directly from the Megaport Portal. Provision in minutes and get central visibility alongside your other Megaport services for simpler network admin and resource monitoring.

Beyond the basic usage statistics displayed in the portal for all Megaport services, users requiring more in-depth insights and advanced service monitoring capabilities can also use the comprehensive suite of Megaport API endpoints. These powerful tools allow users to programmatically access detailed statistics, configure service parameters, and integrate NAT gateway monitoring into their existing network management systems.

An API-first approach provides the flexibility needed for large-scale deployments, automation, and complex operations, giving users complete control and transparency over their NAT gateway performance and usage.

How to optimize NAT Gateway

Performance

Look for a provider that offers multiple performance tiers you can move between virtually to scale with your needs. Megaport NAT Gateway’s performance options make it easy to cater to any deployment scenario – from cloud provider internet access to connectivity between overlapping IP address space.

Security

To optimize the security of your NAT gateway, pair it with strict egress filtering to control what your private resources can reach on the internet. This covers the outbound portion of your setup.


Megaport NAT Gateway allows connectivity to be initiated from your private subnets (located in a cloud provider network) to the internet, while blocking unsolicited inbound internet traffic from reaching your private networks. Combine this with firewall service chaining from Megaport Virtual Edge (MVE)for multi-layered protection.

Cost

Cost is the big conversation here. NAT gateways are an example of a metered service, meaning they balloon with scale. For businesses moving huge amounts of data, the costs associated with NAT can grow exponentially if left unchecked.

Between hyperscaler egress fees and the inherent inefficiencies of traditional connectivity solutions, enterprises can be left with an eye-watering data bill—often over $5 million (and sometimes up to $50 million) per annum—thanks to:

  • Compounding egress fees: Every GB you move out of a hyperscaler network costs you money. At scale, these fees can become astronomical.
  • Inefficient scaling: While some solutions work well at a smaller size, pricing models don’t always scale efficiently with your growth.
  • Locked vendor pricing: Traditional cloud providers dictate your NAT costs, limiting flexibility and potential savings.

Again, by far the easiest and most efficient way to reduce and manage costs is to introduce a private connectivity solution for your underlying connectivity, so you don’t have to pay hyperscaler rates. This caps your fees, becoming incredibly cost-effective when you’re managing and moving large amounts of data.

Megaport NAT Gateway

If you’re running a high-volume software operation, managing enterprise-scale cloud infrastructure, or dealing with petabytes of NAT traffic, you’ll see significant cost savings with Megaport NAT Gateway – up to 70% or even more.

  • Scalable cost savings: While smaller workloads may have a breakeven point, the bigger your NAT needs, the more you save. For example, a business handling 1 petabyte of data a month can save over $78,000, or 76% of its NAT bill, monthly – translating to nearly $1 million in annual savings.
  • Drastically lower egress fees: Instead of paying hyperscaler rates, you can take advantage of Megaport’s more cost-effective network backbone to reduce expensive ingress and egress charges.
  • High availability and scalability: Our solution is built to handle enterprise-scale workloads while maintaining network resilience, with 1,100 + global locations and available bandwidth of up to 100G.
  • Flexibility to grow with you: With our vendor-neutral, scalable network underlay, you’re never locked into a single provider’s pricing and your network can simply grow alongside your business needs.

Discover Megaport NAT Gateway.