Skip to content

Commit b4bf8f8

Browse files
authored
Merge pull request #191676 from asudbring/in-nat-overview
Inbound NAT rule overview
2 parents 2b3e876 + 2fbf459 commit b4bf8f8

File tree

6 files changed

+63
-0
lines changed

6 files changed

+63
-0
lines changed

articles/load-balancer/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
href: concepts.md
9494
- name: Distribution modes
9595
href: distribution-mode-concepts.md
96+
- name: Inbound NAT rules
97+
href: inbound-nat-rules.md
9698
- name: SKUs
9799
href: skus.md
98100
- name: Health monitoring
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: Inbound NAT rules
3+
titleSuffix: Azure Load Balancer
4+
description: Overview of what is inbound NAT rule, why to use inbound NAT rule, and how to use inbound NAT rule.
5+
author: asudbring
6+
ms.service: load-balancer
7+
ms.topic: conceptual
8+
ms.custom:
9+
ms.date: 2/17/2022
10+
ms.author: allensu
11+
#Customer intent: As a administrator, I want to create an inbound NAT rule so that I can forward a port to a virtual machine in the backend pool of an Azure Load Balancer.
12+
---
13+
14+
# Inbound NAT rules
15+
16+
An inbound NAT rule is used to forward traffic from a load balancer frontend to one or more instances in the backend pool.
17+
18+
## Why use an inbound NAT rule?
19+
20+
An inbound NAT rule is used for port forwarding. Port forwarding lets you connect to virtual machines by using the load balancer frontend IP address and port number. The load balancer will receive the traffic on a port, and based on the inbound NAT rule, forwards the traffic to a designated virtual machine on a specific backend port.
21+
22+
## Types of inbound NAT rules
23+
24+
There are two types of inbound NAT rule available for Azure Load Balancer, single virtual machine and multiple virtual machines.
25+
26+
### Single virtual machine
27+
28+
A single virtual machine inbound NAT rule is defined for a single target virtual machine. The load balancer's frontend IP address and the selected frontend port are used for connections to the virtual machine.
29+
30+
:::image type="content" source="./media/inbound-nat-rules/inbound-nat-rule.png" alt-text="Diagram of a single virtual machine inbound NAT rule.":::
31+
32+
### Multiple virtual machines and virtual machine scale sets
33+
34+
A multiple virtual machines inbound NAT rule references the entire backend pool in the rule. A range of frontend ports are pre-allocated based on the rule settings of **Frontend port range start** and **Maximum number of machines in the backend pool**.
35+
36+
:::image type="content" source="./media/inbound-nat-rules/add-inbound-nat-rule.png" alt-text="Screenshot of a multiple virtual machines inbound NAT rule.":::
37+
38+
During inbound port rule creation, port mappings are made to the backend pool from the pre-allocated range that's defined in the rule.
39+
40+
When the backend pool is scaled down, existing port mappings for the remaining virtual machines persist. When the backend pool is scaled up, new port mappings are created automatically for the new virtual machines added to the backend pool. An update to the inbound NAT rule settings isn't required.
41+
42+
:::image type="content" source="./media/inbound-nat-rules/inbound-nat-rule-port-mapping.png" alt-text="Diagram of a multiple virtual machine inbound NAT rule.":::
43+
44+
>[!NOTE]
45+
> If the pre-defined frontend port range doesn't have a sufficient number of frontend ports available, scaling up the backend pool will be blocked. This blockage could result in a lack of network connectivity for the new instances.
46+
47+
## Port mapping retrieval
48+
49+
You can use the portal to retrieve the port mappings for virtual machines in the backend pool. For more information, see [Manage inbound NAT rules](manage-inbound-nat-rules.md#view-port-mappings).
50+
51+
## Next steps
52+
53+
For more information about Azure Load Balancer inbound NAT rules, see:
54+
55+
* [Manage inbound NAT rules](manage-inbound-nat-rules.md)
56+
57+
* [Tutorial: Create a multiple virtual machines inbound NAT rule using the Azure portal](tutorial-nat-rule-multi-instance-portal.md)
58+
59+
* [Tutorial: Create a single virtual machine inbound NAT rule using the Azure portal](tutorial-load-balancer-port-forwarding-portal.md)
60+
61+
95.6 KB
Loading
32.8 KB
Loading
22.6 KB
Loading
23.1 KB
Loading

0 commit comments

Comments
 (0)