Skip to content

Commit 9ceed81

Browse files
authored
Merge pull request #232838 from cherylmc/NAT-fix
screenshots and limitations
2 parents 017952a + f08471a commit 9ceed81

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed
80.3 KB
Loading
72.8 KB
Loading
Binary file not shown.
Binary file not shown.

articles/vpn-gateway/nat-howto.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: 'Configure NAT on Azure VPN Gateway'
2+
title: 'Configure NAT on VPN Gateway'
33
titleSuffix: Azure VPN Gateway
4-
description: Learn how to configure NAT on Azure VPN Gateway.
4+
description: Learn how to configure NAT for Azure VPN Gateway.
55
author: cherylmc
66
ms.service: vpn-gateway
77
ms.topic: how-to
8-
ms.date: 05/11/2022
8+
ms.date: 03/30/2023
99
ms.author: cherylmc
1010

1111
---
12-
# How to configure NAT on Azure VPN Gateways
12+
# How to configure NAT for Azure VPN Gateway
1313

14-
This article helps you configure NAT (Network Address Translation) on Azure VPN Gateway using the Azure portal.
14+
This article helps you configure NAT (Network Address Translation) for Azure VPN Gateway using the Azure portal.
1515

1616
## <a name="about"></a>About NAT
1717

1818
NAT defines the mechanisms to translate one IP address to another in an IP packet. It's commonly used to connect networks with overlapping IP address ranges. NAT rules or policies on the gateway devices connecting the networks specify the address mappings for the address translation on the networks.
1919

20-
For more information about NAT support on Azure VPN gateway, see [About NAT on Azure VPN Gateways](nat-overview.md).
20+
For more information about NAT support for Azure VPN Gateway, see [About NAT and Azure VPN Gateway](nat-overview.md).
2121

2222
> [!IMPORTANT]
2323
> * NAT is supported on the the following SKUs: VpnGw2~5, VpnGw2AZ~5AZ.
@@ -36,7 +36,7 @@ Verify that you have an Azure subscription. If you don't already have an Azure s
3636

3737
## <a name ="vnet"></a>Part 1: Create VNet and gateways
3838

39-
In this section, you create a virtual network, VPN gateway, and the local network gateway resources to correspond to the resources shown in [Diagram 1](#diagram).
39+
In this section, you create a virtual network, a VPN gateway, and the local network gateway resources to correspond to the resources shown in [Diagram 1](#diagram).
4040

4141
To create these resources, use the steps in the [Site-to-Site Tutorial](tutorial-site-to-site-portal.md) article. Complete the following sections of the article, but don't create any connections.
4242

@@ -73,16 +73,16 @@ Before you create connections, you must create and save NAT rules on the VPN gat
7373

7474
| Name | Type | Mode | Internal | External | Connection |
7575
| --- | --- | --- | --- | --- | --- |
76-
| VNet | Static | EgressSNAT | 10.0.1.0/24 | 100.0.1.0/24 | Both connections |
76+
| VNet | Static | EgressSNAT | 10.0.1.0/24 | 100.0.1.0/24 | Both connections |
7777
| Branch_1 | Static | IngressSNAT | 10.0.1.0/24 | 100.0.2.0/24 | Branch 1 connection |
7878
| Branch_2 | Static | IngressSNAT | 10.0.1.0/24 | 100.0.3.0/24 | Branch 2 connection |
7979

8080
Use the following steps to create all the NAT rules on the VPN gateway.
8181

8282
1. In the Azure portal, navigate to the **Virtual Network Gateway** resource page and select **NAT Rules**.
83-
1. Using the **NAT rules table** above, fill in the values.
83+
1. Using the **NAT rules table**, fill in the values.
8484

85-
:::image type="content" source="./media/nat-howto/nat-rules.png" alt-text="Screenshot showing NAT rules." lightbox="./media/nat-howto/nat-rules.png":::
85+
:::image type="content" source="./media/nat-howto/disable-bgp.png" alt-text="Screenshot showing NAT rules." lightbox="./media/nat-howto/disable-bgp.png":::
8686
1. Click **Save** to save the NAT rules to the VPN gateway resource. This operation can take up to 10 minutes to complete.
8787

8888
## <a name ="connections"></a>Part 3: Create connections and link NAT rules
@@ -91,7 +91,7 @@ In this section, you create the connections, and then associate the NAT rules wi
9191

9292
### 1. Create connections
9393

94-
Follow the steps in [Create a site-to-site connection](tutorial-site-to-site-portal.md) article to create the two connections as shown below:
94+
Follow the steps in [Create a site-to-site connection](tutorial-site-to-site-portal.md) article to create the two connections as shown in the following screenshot:
9595

9696
:::image type="content" source="./media/nat-howto/connections.png" alt-text="Screenshot showing the Connections page." lightbox="./media/nat-howto/connections.png":::
9797

@@ -109,9 +109,9 @@ In this step, you associate the NAT rules with each connection resource.
109109

110110
1. Repeat the steps to apply the NAT rules for other connection resources.
111111

112-
1. If BGP is used, select **Enable BGP Route Translation** in the NAT rules page and click **Save**. Note that the table now shows the connections linked with each NAT rule.
112+
1. If BGP is used, select **Enable BGP Route Translation** in the NAT rules page and click **Save**. Notice that the table now shows the connections linked with each NAT rule.
113113

114-
:::image type="content" source="./media/nat-howto/nat-rules-linked.png" alt-text="Screenshot showing Enable BGP." lightbox="./media/nat-howto/nat-rules-linked.png":::
114+
:::image type="content" source="./media/nat-howto/enable-bgp.png" alt-text="Screenshot showing Enable BGP." lightbox="./media/nat-howto/enable-bgp.png":::
115115

116116
After completing these steps, you'll have a setup that matches the topology shown in [Diagram 1](#diagram).
117117

includes/vpn-gateway-nat-limitations.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
author: cherylmc
33
ms.service: vpn-gateway
44
ms.topic: include
5-
ms.date: 05/11/2022
5+
ms.date: 03/30/2023
66
ms.author: cherylmc
77
---
88

99
> [!IMPORTANT]
1010
> There are a few constraints for the NAT feature.
11-
1211
* NAT is supported on the following SKUs: VpnGw2~5, VpnGw2AZ~5AZ.
1312
* NAT is supported for IPsec/IKE cross-premises connections only. VNet-to-VNet connections or P2S connections aren't supported.
1413
* NAT rules can't be associated with connection resources during the create connection process. Create the connection resource first, then associate the NAT rules in the Connection Configuration page.
15-
* Address spaces for different local network gateways (on-premises networks or branches) can be the same with *IngressSNAT* rules to map to non-overlapping prefixes as shown in the configuration for [Diagram 1](../articles/vpn-gateway/nat-howto.md#diagram) in the NAT configuration article.
14+
* Address spaces for different local network gateways (on-premises networks or branches) can be the same with *IngressSNAT* rules to map to nonoverlapping prefixes as shown in the configuration for [Diagram 1](../articles/vpn-gateway/nat-howto.md#diagram) in the NAT configuration article.
1615
* NAT rules aren't supported on connections that have *Use Policy Based Traffic Selectors* enabled.
17-
* The maximum supported external mapping subnet size for Dynamic NAT is /26.
16+
* The maximum supported external mapping subnet size for Dynamic NAT is /26.
17+
* NAT configuration isn't available for Dynamic NAT.
18+
* Port ranges can't be entered at this time. Individual ports need to be entered. Port ranges can be configured with Static NAT types only. This can be configured for Static NAT type only.
19+
* Port mappings can be used for both TCP and UDP protocols.

0 commit comments

Comments
 (0)