NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
Hello KARYA Cloud Support
The default outbound access IP is owned by Microsoft and is subject to change without notice. The end user has no visibility of this default outbound access public IP address. This default outbound access public IP isn’t recommended for production workloads
Documentation Review and Gotchas:
It's crucial to understand that if a NAT gateway is configured, but default outbound IP alerts still appear, it might be because the VMs in non-private subnets are retaining their default outbound IPs. To clear these alerts, you'd need to switch to a private subnet and then perform a stop and deallocate on the affected VMs. This process ensures that they transition to using the NAT gateway exclusively.
Refer these docs:
Why do I see an alert showing I have a default outbound IP on my VM?
Network Security Groups (NSGs):
For your NAT gateway, you do not explicitly need to set NSG rules unless you're filtering traffic. However, if any associated servers already have their own NSGs, you should ensure there are no conflicting rules that could impede the NAT gateway's operations.
Refer this doc: Use NAT gateway instead of default outbound access
NAT Gateway IP Address Configuration:
All your servers using the NAT gateway should exit through the public IP address associated with that NAT gateway. You can confirm the NAT gateway's outbound IP settings by navigating to the NAT gateway resource in the Azure portal and checking the "Outbound IP" section.
Firewall Configurations:
The NAT gateway itself does not require specific firewall rules. However, if you're controlling traffic with a Palo Alto firewall, ensure that its policies allow traffic from the NAT gateway's public IP. Ensure that any necessary ports or services intended for use are explicitly allowed through the firewall.
Refer these docs:
- Azure NAT Gateway Overview
- Disable Default Outbound Access
- Monitor Azure NAT Gateway
- NAT Gateway Troubleshooting
- Network Security Groups Overview
I hope this has been helpful!
If the above is unclear or you are unsure about something, please add a comment below.
If these answer your question, click "Upvote" and click "Accept Answer" which may be beneficial to other community members reading this thread.