AWS VPN NATing basic

0 votes

I have a VPN connection to AWS and need to access my EC2 instance at, say, 10.1.0.40.    I already have a subnet locally for 10.1.0.x/24. How can I NAT the address in AWS so that when it receives data through this VPN, it maps, say 10.1.50.40 to 10.1.0.40?

I can't seem to find the any suitable solution on AWS. NAT instances and NAT gateways all talk about accessing the Internet from a private server and seem to have little to do with this simple address translation from a VPN connection.

Better ideas?

Jul 18, 2018 in AWS by Archana
• 4,170 points
587 views

1 answer to this question.

0 votes

You cannot solve the problem of CIDR overlap when setting up a VPN connection by using AWS NAT Gateway. For this to work either

  • NATing should happen from On-Premise.
  • Create a new private subnet to represent EC2 instance in your VPC side.
  • You can adopt to Third-party VPN solution hosting on an EC2 instance, instead of using VPC native VPN to support your use case.
answered Jul 20, 2018 by datageek
• 2,540 points

Related Questions In AWS

+3 votes
2 answers

AWS VPN architecture diagram creation.

Yes you can go ahead and use ...READ MORE

answered Jul 13, 2018 in AWS by Priyaj
• 58,020 points
2,168 views
0 votes
1 answer
0 votes
1 answer

Difference between AWS Site-to-Site VPN and AWS VPC peering?

AWS Site to Site enables access to ...READ MORE

answered Feb 15, 2022 in AWS by anonymous
1,259 views
0 votes
0 answers

Restrict access to VPC with AWS VPN Client using security group

Feb 22, 2022 in AWS by Rahul
• 2,120 points
551 views
+3 votes
1 answer

aws cloudformation for atomic stack-update

When you perform a stack update, only ...READ MORE

answered Mar 27, 2018 in AWS by DareDev
• 6,890 points
1,123 views
+3 votes
4 answers

How to host a website on AWS?

Certainly, it can be used to do ...READ MORE

answered Mar 30, 2018 in AWS by brat_1
• 7,200 points
2,967 views
+3 votes
3 answers

Terraform AWS Cognito App Client

This feature is not currently supported by ...READ MORE

answered Aug 28, 2018 in AWS by eatcodesleeprepeat
• 4,710 points
3,658 views
0 votes
1 answer

How to link AWS Lambda function to Amazon CloudWatch ?

In order to create Log Group and ...READ MORE

answered Jul 20, 2018 in AWS by datageek
• 2,540 points
1,584 views
+1 vote
2 answers

AWS Lambda Function Issues

If you have created AWS Lambda Deployment JAR ...READ MORE

answered Sep 14, 2018 in AWS by datageek
• 2,540 points
783 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP