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.