- Newest
- Most votes
- Most comments
The change in the external IP address of your Site-to-Site VPN tunnel can indeed be due to AWS maintenance, but there are other factors that could cause this as well.
AWS periodically updates tunnel endpoints for various reasons, including software upgrades, addressing health issues, or retiring underlying hardware. These updates can result in a replacement of one of the tunnel endpoints, which may lead to a change in the external IP address.
However, the fact that other tunnels under manual maintenance through tunnel endpoint lifecycle control did not experience IP changes suggests that this might not be a regular or uniform process across all VPN connections.
Some other factors that could potentially cause IP changes include:
-
Modifications to your VPN connection: If you or someone in your organization modified certain components of the VPN connection, such as changing the target gateway, customer gateway, or VPN connection options, this could trigger a replacement of one or both tunnel endpoints.
-
Dynamic IP allocation: If your VPN connection is set up with dynamic IP allocation, the IP address might change more frequently.
-
Network issues or reconfigurations: Sometimes, network-level changes or issues could result in a reassignment of IP addresses.
It's important to note that these changes don't follow a regular pattern and can occur irregularly. AWS typically tries to maintain stability, but changes can happen for various operational reasons.
Regarding the difficulty and cost associated with changing the VPN configuration on your peer when the external IP changes, this is a valid concern. To mitigate this issue, you might consider:
- Using DNS names instead of IP addresses where possible in your VPN configuration.
- Implementing automation for updating your peer VPN configuration.
- Discussing with AWS support about options for more stable IP assignments or notifications of impending changes.
Remember, AWS designs Site-to-Site VPN connections with two tunnels for redundancy. Ensuring both tunnels are properly configured can help maintain connectivity even if one tunnel experiences changes.
Sources
AWS Site-to-Site VPN tunnel endpoint replacements - AWS Site-to-Site VPN
VPCのtunnel断について | AWS re:Post
I suggest using monitoring checks (ie. ping, http(s), etc.) to keep tunnels in-use. This can prevent tunnel replacement from waiting for 'interesting' traffic before bringing a tunnel up again.
Note: AWS Site-to-Site VPN updates one of your tunnels at a time. When Site-to-Site VPN replaces your tunnel endpoint, your endpoint's outside IP address doesn't change.
Reference: https://repost.aws/knowledge-center/vpn-tunnel-endpoint-replacement
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
