Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i'm looking for a temporary solution to allow my public web application running in EC2 to make server-side HTTP requests to a web server inside my firewall. I looked into amazon VPC, but that seems to make new EC2 instances that are not open to the public at all. the ec2 instances in question are running ubuntu.

what are my options for allowing my existing ec2 machine to connect to my existing inside-the-vpn web server?

share|improve this question
Could you please elaborate on how you used port forwarding to achieve the same. – user96407 Sep 30 '11 at 4:26
up vote 3 down vote accepted

OpenVPN is a reliable way to achieve this. Depending on your AMI, you'll have to download it through your package management system or to compile it.

share|improve this answer
this was successful in connecting via vpn, but due to other issues we decided to go with a port forwarding solution (since this is only needed for a few days) – afex Jan 27 '11 at 18:58

OpenSwan ipsec will let you setup a site to site VPN between the a linux instance and your firewall. There are tutorials all over the net for connecting to cisco, checkpoint, etc.

share|improve this answer

You can use the amazon VPC which is designed for just this purpose. The other solution, since you said its temporary, is to setup SSH with key based authentication between your servers, and do port forwarding... For example, forward port 8080 on the AWS server over the tunnel to port 80 on the other server. (you can forward or Reverse tunnel with SSH). If you add your ssh connection command (and key based authentication) into upstart, it will restart ssh and rebuild the tunnel if it goes down.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.