Skip to content

Commit 4311e51

Browse files
connection reuse caveat
1 parent 174ee88 commit 4311e51

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/virtual-network/troubleshoot-nat.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.devlang: na
1212
ms.topic: overview
1313
ms.tgt_pltfrm: na
1414
ms.workload: infrastructure-services
15-
ms.date: 04/28/2020
15+
ms.date: 05/19/2020
1616
ms.author: allensu
1717
---
1818

@@ -178,6 +178,14 @@ _**Solution:**_ Deploy NAT gateway on a subnet without IPv6 prefix.
178178

179179
You can indicate interest in additional capabilities through [Virtual Network NAT UserVoice](https://aka.ms/natuservoice).
180180

181+
### Connection doesn't originate from NAT gateway IP(s)
182+
183+
NAT gateway is deployed, completely configured, subnet is configured with NAT gateway resource, but connections from virtual machine instances that existed before the NAT gateway was deployed, do not use the IP address(es) associated with the NAT gateway.
184+
185+
_**Solution:**_
186+
187+
[Virtual Network NAT](nat-overview.md) replaces the outbound connectivity for the subnet it is configured on. When transitioning from default SNAT or load balancer outbound SNAT to using NAT gateways, new connections will immediately begin using the IP address(es) associated with the NAT gateway resource. However, if a virtual machine still has an established connection during the switch to NAT gateway resources, the connection will continue using the old SNAT IP address that was assigned when the connection was established. Make sure you are really establishing a new connection rather than reusing a connection that already existed because the OS or the browser was caching the connections in a connection pool. For example, when using _curl_ in PowerShell, make sure to specify the _-DisableKeepalive_ parameter to force a new connection to be reused.
188+
181189
## Next steps
182190

183191
* Learn about [Virtual Network NAT](nat-overview.md)

0 commit comments

Comments
 (0)