Rebecca
Rebecca

Reputation: 351

Access ec2 instaces in AWS with private hostname from remote machine in a openvpn network

I have several ec2 instances in a public subnet in AWS vpc. One of the instaces is OpenVpn. when I am connected to openvpn, theoritcally my remote machine is also in the same network. (my understanding: OpenVpn has a elastic IP and my machine IP also changes to the same one on the openvp). I am only able to access the other instances from my web browser with their public hostname. Why I can not access them from my machine with their private hostname?

Upvotes: 1

Views: 321

Answers (1)

Chris Williams
Chris Williams

Reputation: 35228

When you connect to the OpenVPN instance you need to ensure that there is routing from the OpenVPN connection to your wider VPC network.

This blog post by Amazon explains how to setup the VPN to allow this routing to be added.

Upvotes: 1

Related Questions