title: Connect to a web application in private through bastion host for my local machine in aws
body: <p>I have an EC2 instance running in AWS and here's the scenario I'm trying to achieve. I have a VPC setup with 3 subnets. 2 of them are private with no access to the internet (even using a NAT gateway/NAT instance), and another is a public subnet. </p>
  
  <ul>
  <li>Bastion Host configured with Public IP (55.55.55.55 for example) in the public subnet. </li>
  <li>I have ec2 instance launched in a private subnet that hosts my application, and I want my users to be able to access the application from their workstation browsers. </li>
  </ul>
  
  <p>If I set up the SSH connection as discussed <a href="https://stackoverflow.com/a/18480977/1742825">here</a>, it works perfectly fine for the web browser page set up on my bastion host. However, for my use case, I need to achieve another level of SSH forward like above as my application is in the private subnet for that application to be accessible from my local machine. Is that possible somehow? I also need to make sure there are no issues with the DNS. </p>