How to handle Multiple NAT Gateway with Single Static Public IP for outbound connections

Harsh Thakor 116 Reputation points
2022-06-07T13:48:57.233+00:00

We are having two set up in two different regions, and we are using NAT Gateway for static Public IP. Inside NAT Gateway we are using Public IP prefixes, due to which for each setup we are having 2 static Public IP. In total, we are having 4 static Public Ip for 2 setups. We are looking for a solution using which instead of those 4 IPs all outbound calls should go from 1 or max 2 public IPs. Please let me know how the same can be achieved.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,264 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
91 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,269 questions
{count} votes

Accepted answer
  1. msrini-MSFT 9,266 Reputation points Microsoft Employee
    2022-06-09T04:21:53.077+00:00

    @Harsh Thakor ,

    I understand that your app service needs more than 1 IP to make sure that the IP exhaustion is not happening. Since you have DR setup the minimum IP that you might need to whitelist is 4. If you still need to reduce the IP count, you can reduce it to 3 IP by having 1 IP in the DR App service.

    There are other service such as Azure firewall which can be used for SNAT but since you mentioned that there will be 25k to 50k connections, that will consume more IPs than NAT gateway.

    The best option is to go with NAT gateway where you can reduce the IP of the DR setup by 1. You need to work with your On-Premises to whitelist these 3 IPs for your service.

    Regards,
    Karthik Srinivas


0 additional answers

Sort by: Most helpful