I have a Virtual Private Cloud (VPC) instance on Amazon AWS. Inside the VPC, I have a private instance which is running the database and a public instance which has the front-end web pages for accessing the database.
There is no way to login into the private instance directly from outside as it does not have any public ip. However, I can login into it from the public instance using its private ip.
I want to create a VPN gateway inside my VPC which will allow me to directly connect to the private instance from outside using software VPNs like OpenVPN or OpenSwan.
My questions are -
- Is this possible at all?
- If yes, what are the steps to setup this mechanism?
Thanks in advance.